Failed to install Zammad via Package on Debian

Infos:

  • Used Zammad version: 6.3.1-1718860451.0f341764.bookworm
  • Used Zammad installation type: package - via apt-get following the installation guide
  • Operating system:
    5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux
  • Browser + version: Edge - newest

Expected behavior:

  • zammad should work

Actual behavior:

  • zammad isn’t starting

I created a new debian distribution under wsl and installed zammad via the apt-get package as stated in the installation guide.

The first problem was that the database was not created under postgres because the permission was missing. I did this manually (sudo -u zammad /bin/rails/ db:create & sudo -u zammad /bin/rails/ db:migrate)

Now zammad still doesn’t start and I don’t know what the problem is. However, I also have to say that I am currently still a newbie when it comes to Linux.

Here is the journalctl -report with the error.

Does anyone have any idea why this might be?

Jun 20 09:35:42 SE02 zammad-web-1.service[59396]: => Booting Puma
Jun 20 09:35:42 SE02 zammad-web-1.service[59396]: => Rails 7.0.8.4 application starting in production
Jun 20 09:35:42 SE02 zammad-web-1.service[59396]: => Run `bin/rails server --help` for more startup options
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]: Exiting
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]: bundler: failed to load command: script/rails (script/rails)
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]: /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8.4/lib/active_support/inflector/methods.rb:278:in `const_get': wrong constant name Store::Provider:: (NameError)
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:       Object.const_get(camel_cased_word)
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:             ^^^^^^^^^^
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8.4/lib/active_support/inflector/methods.rb:278:in `constantize'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8.4/lib/active_support/core_ext/string/inflections.rb:74:in `constantize'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/config/initializers/store_provider_check.rb:11:in `block in <main>'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8.4/lib/active_support/lazy_load_hooks.rb:92:in `block in execute_hook'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8.4/lib/active_support/lazy_load_hooks.rb:85:in `with_execution_control'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8.4/lib/active_support/lazy_load_hooks.rb:90:in `execute_hook'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8.4/lib/active_support/lazy_load_hooks.rb:76:in `block in run_load_hooks'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8.4/lib/active_support/lazy_load_hooks.rb:75:in `each'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8.4/lib/active_support/lazy_load_hooks.rb:75:in `run_load_hooks'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/application/finisher.rb:87:in `block in <module:Finisher>'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:32:in `instance_exec'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:32:in `run'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:61:in `block in run_initializers'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/tsort.rb:228:in `block in tsort_each'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/tsort.rb:431:in `each_strongly_connected_component_from'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/tsort.rb:349:in `block in each_strongly_connected_component'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/tsort.rb:347:in `each'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/tsort.rb:347:in `call'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/tsort.rb:347:in `each_strongly_connected_component'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/tsort.rb:226:in `tsort_each'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/tsort.rb:205:in `tsort_each'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:60:in `run_initializers'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/application.rb:372:in `initialize!'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/config/environment.rb:7:in `<main>'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from <internal:/opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from <internal:/opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from config.ru:5:in `block in <main>'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/builder.rb:116:in `eval'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/builder.rb:116:in `new_from_string'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/builder.rb:105:in `load_file'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/builder.rb:66:in `parse_file'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/server.rb:349:in `build_app_and_options_from_config'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/server.rb:249:in `app'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/server.rb:422:in `wrapped_app'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/server.rb:312:in `block in start'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/server.rb:379:in `handle_profiling'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/rack-2.2.9/lib/rack/server.rb:311:in `start'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/commands/server/server_command.rb:38:in `start'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/commands/server/server_command.rb:143:in `block in perform'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from <internal:kernel>:90:in `tap'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/commands/server/server_command.rb:134:in `perform'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/command/base.rb:87:in `perform'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/command.rb:48:in `invoke'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/commands.rb:18:in `<main>'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from <internal:/opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from <internal:/opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from script/rails:8:in `<top (required)>'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/cli/exec.rb:58:in `load'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/cli/exec.rb:58:in `kernel_load'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/cli/exec.rb:23:in `run'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/cli.rb:492:in `exec'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/cli.rb:34:in `dispatch'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/cli.rb:28:in `start'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/exe/bundle:37:in `block in <top (required)>'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/exe/bundle:29:in `<top (required)>'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/bin/bundle:121:in `load'
Jun 20 09:35:43 SE02 zammad-web-1.service[59396]:         from /opt/zammad/bin/bundle:121:in `<main>'
Jun 20 09:35:43 SE02 systemd[1]: zammad-web-1.service: Main process exited, code=exited, status=1/FAILURE
Jun 20 09:35:43 SE02 systemd[1]: zammad-web-1.service: Failed with result 'exit-code'.
Jun 20 09:35:43 SE02 systemd[1]: zammad-web-1.service: Scheduled restart job, restart counter is at 261.

Steps to reproduce the behavior:

WSL(2) is not a suitable host system as many, many things are not available in that kind of virtualization. systemd is such a candidate for example. Please use a proper virtual machine beside of WSL.

Yes, I thought that was the reason. I was hoping that I could test it before I put in a lot of effort to set up a VM so that it doesn’t run directly in the live system.

By the way, it runs smoothly under Ubuntu in WSL.

Thanks for the fast respond!

Use virtualbox to run it locally on a windows machine and you’re good.
Can’t speak for Ubuntu, just know that Debian is drastically castraded on WSL.

I run Zammad on Debian 12 on WSL2 fine. Only difference compared to the Zammad package installation documentation was to enable systemd-support:

This was the only extra step that I needed to do. So, I guess you ran into some issues in the installation process. As you mention “apt-get”, you may have used a 3rd-party installation manual? The official documentation uses “apt”. There is not much of a difference between “apt” and “apt-get”, I just take that as a hint, that you didn’t use the official documentation to install Zammad.

So my suggestion:

Thanks for the detailed information. That solves my problem :slight_smile:

Topic can be closed.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.