LoadError: cannot load such file -- listen

Infos:

Dears, I’m using the installation manual from here:
https://docs.zammad.org/en/latest/install/source.html
and at Step 5 i got this error:


zammad@gtzammand:/opt/zammad$ rake assets:precompile
rake aborted!
LoadError: cannot load such file -- listen

zammad@gtzammand:/opt/zammad$ rails s -p 3000
=> Booting Puma
=> Rails 6.1.6 application starting in development
=> Run bin/rails server --help for more startup options
Exiting
/usr/share/rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:15:in require': cannot load such file -- listen (LoadError) from /usr/share/rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:15:in require’
from /usr/share/rvm/gems/ruby-3.0.4/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in require' from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in block in require’
from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:299:in load_dependency' from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in require’
from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/evented_file_update_checker.rb:6:in <main>' from /usr/share/rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require’
from /usr/share/rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /usr/share/rvm/gems/ruby-3.0.4/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in require’
from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in block in require' from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:299:in load_dependency’
from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in require' from /opt/zammad/config/environments/development.rb:60:in block in ’
from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/railtie.rb:234:in instance_eval' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/railtie.rb:234:in configure’
from /opt/zammad/config/environments/development.rb:3:in <main>' from /usr/share/rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require’
from /usr/share/rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /usr/share/rvm/gems/ruby-3.0.4/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in require’
from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in block in require' from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:299:in load_dependency’
from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in require' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/engine.rb:571:in block (2 levels) in class:Engine
from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/engine.rb:570:in each' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/engine.rb:570:in block in class:Engine
from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/initializable.rb:32:in instance_exec' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/initializable.rb:32:in run’
from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/initializable.rb:61:in block in run_initializers' from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:228:in block in tsort_each’
from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:422:in block (2 levels) in each_strongly_connected_component_from’
from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:431:in each_strongly_connected_component_from' from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:421:in block in each_strongly_connected_component_from’
from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/initializable.rb:50:in each' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/initializable.rb:50:in tsort_each_child’
from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:415:in call' from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:415:in each_strongly_connected_component_from’
from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:349:in block in each_strongly_connected_component' from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:347:in each’
from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:347:in call' from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:347:in each_strongly_connected_component’
from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:226:in tsort_each' from /usr/share/rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:205:in tsort_each’
from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/initializable.rb:60:in run_initializers' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/application.rb:391:in initialize!’
from /opt/zammad/config/environment.rb:7:in <main>' from /usr/share/rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require’
from /usr/share/rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /usr/share/rvm/gems/ruby-3.0.4/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in require’
from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in block in require' from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:299:in load_dependency’
from /usr/share/rvm/gems/ruby-3.0.4/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in require' from config.ru:5:in block in ’
from /usr/share/rvm/gems/ruby-3.0.4/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in eval' from /usr/share/rvm/gems/ruby-3.0.4/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in new_from_string’
from /usr/share/rvm/gems/ruby-3.0.4/gems/rack-2.2.3.1/lib/rack/builder.rb:105:in load_file' from /usr/share/rvm/gems/ruby-3.0.4/gems/rack-2.2.3.1/lib/rack/builder.rb:66:in parse_file’
from /usr/share/rvm/gems/ruby-3.0.4/gems/rack-2.2.3.1/lib/rack/server.rb:349:in build_app_and_options_from_config' from /usr/share/rvm/gems/ruby-3.0.4/gems/rack-2.2.3.1/lib/rack/server.rb:249:in app’
from /usr/share/rvm/gems/ruby-3.0.4/gems/rack-2.2.3.1/lib/rack/server.rb:422:in wrapped_app' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/commands/server/server_command.rb:77:in log_to_stdout’
from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/commands/server/server_command.rb:37:in start' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/commands/server/server_command.rb:144:in block in perform’
from internal:kernel:90:in tap' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/commands/server/server_command.rb:135:in perform’
from /usr/share/rvm/gems/ruby-3.0.4/gems/thor-1.2.1/lib/thor/command.rb:27:in run' from /usr/share/rvm/gems/ruby-3.0.4/gems/thor-1.2.1/lib/thor/invocation.rb:127:in invoke_command’
from /usr/share/rvm/gems/ruby-3.0.4/gems/thor-1.2.1/lib/thor.rb:392:in dispatch' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/command/base.rb:69:in perform’
from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/command.rb:48:in invoke' from /usr/share/rvm/gems/ruby-3.0.4/gems/railties-6.1.6/lib/rails/commands.rb:18:in
from /usr/share/rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /usr/share/rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require’
from bin/rails:10:in `’
zammad@gtzammand:/opt/zammad$

Can you please link some help how to continue?

Regards,
Tamas

Start over and follow the installation documentation step by step.
You really only have to copy paste and adjust to your system.

If you keep on getting those errors please consider using the package installation which is even easier.

I got the same error message somehow. I double-checked the documentation found here Install from source — Zammad documentation and there is this paragraph:

# Install gems for zammad
$ su - zammad
$ bundle set config without "test development postgres"
$ bundle install

For me bundle set config... produces an error but bundle config set... seems to work. Typo or error in my setup?

Thx, Uli

BTW: I got the error message because I’ve set the environment variables in the wrong startup script (.bashrc vs .profile) and changed executing the commands from an interactive session to a non-interactive one

The documentation has been verified against all supported package installation systems. Not more not less.
If your system does not match those systems, it’s not verified to be working.

The documentation contains the correct commands. Shouldn’t make a difference ruby wise.

OK, thx. But why has the documentation been changed from “bundle set config …” to “bundle config set …”? To me, this looks like it has been wrong and is fixed now. But never mind.

Well sorry, the times I have every documentation page and issue in my head are over I’m afraid.

Documentation currently states bundle config set without "test development mysql" which should be considered the correct style as of now. Docs will of course change when needed. So having a look at this page should help when ever needed: Install from source — Zammad documentation

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