Rake aborted due missing setting

Infos:

  • Used Zammad version: 4.1.0 → 5.2.1
  • Used Zammad installation type: docker-compose
  • Operating system: Ubuntu 20.04.3
  • Browser + version: various

Expected behavior:

I installed a docker-compose driven Zammad by adjusting the version tag in “.env”-file to “-4.1.0”. After that I imported the database from a previous installation (package installation, same version) and all worked fine :grinning: as expected.

I tried to update from 4.1.0 to 5.2.1 by doing the following (which should work):

$ docker-compose down
$ git pull

in fact this just adjusted the version tag in “.env”

$ docker-compose pull
$ docker-compose up -d

Actual behavior:

rake do not come up, it throws a “setting-not-found”-error (“Can’t find config setting ‘product_logo’”)

zammad-docker-compose-521-zammad-init-1           | initialising / updating database...
zammad-docker-compose-521-zammad-init-1           | I, [2022-08-01T13:36:36.655877 #23-8060]  INFO -- : Using memcached as Rails cache store.
zammad-docker-compose-521-zammad-init-1           | I, [2022-08-01T13:36:36.656069 #23-8060]  INFO -- : Using Redis as web socket session store.
zammad-docker-compose-521-zammad-init-1           | rake aborted!
zammad-docker-compose-521-zammad-init-1           | Can't find config setting 'product_logo'
zammad-docker-compose-521-zammad-init-1           | /opt/zammad/app/models/setting.rb:37:in `set'
zammad-docker-compose-521-zammad-init-1           | /opt/zammad/lib/static_assets.rb:135:in `read'
zammad-docker-compose-521-zammad-init-1           | /opt/zammad/lib/static_assets.rb:173:in `sync'
zammad-docker-compose-521-zammad-init-1           | /opt/zammad/config/initializers/logo.rb:11:in `block in <main>'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in `instance_exec'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:427:in `block in make_lambda'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in `catch'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:603:in `block in default_terminator'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:199:in `block in halting'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in `block in invoke_before'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in `each'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:512:in `invoke_before'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/callbacks.rb:105:in `run_callbacks'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/reloader.rb:88:in `prepare!'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/railties-6.1.6/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/railties-6.1.6/lib/rails/initializable.rb:32:in `instance_exec'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/railties-6.1.6/lib/rails/initializable.rb:32:in `run'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/railties-6.1.6/lib/rails/initializable.rb:61:in `block in run_initializers'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/railties-6.1.6/lib/rails/initializable.rb:60:in `run_initializers'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/railties-6.1.6/lib/rails/application.rb:391:in `initialize!'
zammad-docker-compose-521-zammad-init-1           | /opt/zammad/config/environment.rb:7:in `<main>'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in `require'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in `block in require'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:299:in `load_dependency'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in `require'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/railties-6.1.6/lib/rails/application.rb:367:in `require_environment!'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/railties-6.1.6/lib/rails/application.rb:533:in `block in run_tasks_blocks'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bin/bundle:23:in `load'
zammad-docker-compose-521-zammad-init-1           | /usr/local/bin/bundle:23:in `<main>'
zammad-docker-compose-521-zammad-init-1           | Tasks: TOP => db:create => db:load_config => environment
zammad-docker-compose-521-zammad-init-1           | (See full trace by running task with --trace)

This one does not help:

rails r Rails.cache.clear
rake db:migrate

Any ideas?

Best regards
Gregor

Hint:

in the running 4.1.0 instance, “product_logo” seems to be set correctly:

zammad@7fef2308cf6b:~$ rails r "p Setting.get('product_logo')"
I, [2022-08-02T10:43:13.697547 #34-47267672996180]  INFO -- : Setting.set('models_searchable', ["Organization", "User", "KnowledgeBase::Answer::Translation", "Ticket", "Chat::Session"])
"2621c28588009d25157c6c65472c97.png"

Somehow those settings got lost during update… :thinking:

Best regards,
Gregor