Hello everyone,
I installed the latest zammad version on Ubuntu 22.04 LTS. Also , I had a latest version of zammad on a Ubuntu server 16.04 LTS.
I created a backup on Ubuntu 16.04 with backup script and that was successful. Then I restored the backup on new server .
The backup restore was successful . Just I see this log during the restore process. Also, I have
/opt/zammad/vendor/bundle/ruby/3.1.0/gems/openssl-3.1.0/lib/openssl.so
file in this path .
After that I run below commands as documentation:
dpkg -r --force-depends zammad
apt install zammad
zammad run rails r "Rails.cache.clear"
But I have an error in this step.
zammad run rails r "Rails.cache.clear"
/opt/zammad/lib/mixin/required_sub_paths.rb:16:in `eager_load_recursive': wrong number of arguments (given 1, expected 2) (ArgumentError)
from /opt/zammad/app/models/object_manager/attribute/validation/backend.rb:26:in `<main>'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.8/lib/zeitwerk/kernel.rb:30:in `require'
from /opt/zammad/app/models/object_manager/attribute/validation/future_past.rb:1:in `<main>'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.8/lib/zeitwerk/kernel.rb:30:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/inflector/methods.rb:287:in `const_get'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/inflector/methods.rb:287:in `block in constantize'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/inflector/methods.rb:283:in `each'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/inflector/methods.rb:283:in `inject'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/inflector/methods.rb:283:in `constantize'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/core_ext/string/inflections.rb:74:in `constantize'
from /opt/zammad/lib/mixin/required_sub_paths.rb:27:in `block in eager_load_recursive'
from /opt/zammad/lib/mixin/required_sub_paths.rb:19:in `each'
from /opt/zammad/lib/mixin/required_sub_paths.rb:19:in `eager_load_recursive'
from /opt/zammad/lib/mixin/has_backends.rb:15:in `block in <module:HasBackends>'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/concern.rb:136:in `class_eval'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/concern.rb:136:in `append_features'
from /opt/zammad/app/models/object_manager/attribute/validation.rb:2:in `include'
from /opt/zammad/app/models/object_manager/attribute/validation.rb:2:in `<class:Validation>'
from /opt/zammad/app/models/object_manager/attribute/validation.rb:1:in `<main>'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.8/lib/zeitwerk/kernel.rb:30:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/inflector/methods.rb:287:in `const_get'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/inflector/methods.rb:287:in `block in constantize'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/inflector/methods.rb:283:in `each'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/inflector/methods.rb:283:in `inject'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/inflector/methods.rb:283:in `constantize'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/core_ext/string/inflections.rb:74:in `constantize'
from /opt/zammad/lib/models.rb:44:in `block in all'
from <internal:dir>:220:in `glob'
from /opt/zammad/lib/models.rb:34:in `all'
from /opt/zammad/lib/models.rb:79:in `searchable'
from /opt/zammad/config/initializers/models_searchable.rb:9:in `block in <main>'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:427:in `instance_exec'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:427:in `block in make_lambda'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:603:in `catch'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:603:in `block in default_terminator'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:199:in `block in halting'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:512:in `block in invoke_before'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:512:in `each'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:512:in `invoke_before'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/callbacks.rb:105:in `run_callbacks'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/reloader.rb:88:in `prepare!'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/initializable.rb:32:in `instance_exec'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/initializable.rb:32:in `run'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/initializable.rb:61:in `block in run_initializers'
from /opt/zammad/vendor/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
from /opt/zammad/vendor/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /opt/zammad/vendor/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /opt/zammad/vendor/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /opt/zammad/vendor/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:347:in `each'
from /opt/zammad/vendor/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:347:in `call'
from /opt/zammad/vendor/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
from /opt/zammad/vendor/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
from /opt/zammad/vendor/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/initializable.rb:60:in `run_initializers'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/application.rb:391:in `initialize!'
from /opt/zammad/config/environment.rb:7:in `<main>'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.8/lib/zeitwerk/kernel.rb:38:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/dependencies.rb:332:in `block in require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/dependencies.rb:299:in `load_dependency'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7.4/lib/active_support/dependencies.rb:332:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/application.rb:367:in `require_environment!'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/command/actions.rb:28:in `require_environment!'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/commands/runner/runner_command.rb:33:in `perform'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/command/base.rb:69:in `perform'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/command.rb:48:in `invoke'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/railties-6.1.7.4/lib/rails/commands.rb:18:in `<main>'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /opt/zammad/bin/rails:5:in `<main>'
Also I have a 502 error on nginx log , which is related to upstream : upstream: “http://127.0.0.1:3000/”
How can I solve this problem?
- Used Zammad version: latest
- Used Zammad installation type: package
- Operating system: Ubuntu 22.04 LTS