Rake aborted! LoadError: cannot load such file -- zeitwerk

Infos:

  • Used Zammad version: 6.2.0-1709902372.e5509ee8.jammy
  • Used Zammad installation type: package,
  • Operating system: ubuntu 22.04

Actual behavior:

Get:1 https://dl.packager.io/srv/deb/zammad/zammad/stable/ubuntu 22.04/main amd64 zammad amd64 6.2.0-1709902372.e5509ee8.jammy [163 MB]                                                          [220/677]
Fetched 163 MB in 7s (22.6 MB/s)
(Reading database ... 167021 files and directories currently installed.)
Preparing to unpack .../zammad_6.2.0-1709902372.e5509ee8.jammy_amd64.deb ...
rake aborted!
LoadError: cannot load such file -- zeitwerk
/opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
/opt/zammad/vendor/bundle/ruby/3.1.0/gems/vite_ruby-3.3.4/lib/vite_ruby.rb:8:in `<main>'
/opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/opt/zammad/vendor/bundle/ruby/3.1.0/gems/vite_rails-3.0.17/lib/vite_rails.rb:3:in `<main>'
/opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/opt/zammad/config/application.rb:13:in `<top (required)>'
/opt/zammad/Rakefile:7:in `require_relative'
/opt/zammad/Rakefile:7:in `<top (required)>'
/opt/zammad/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/opt/zammad/bin/bundle:121:in `load'
/opt/zammad/bin/bundle:121:in `<main>'
(See full trace by running task with --trace)
# Code does not yet fit, skipping automatic package uninstall.
... This is not an error and will work during your next upgrade ...
Unpacking zammad (6.2.0-1709902372.e5509ee8.jammy) over (6.2.0-1709819739.c4f4ca8b.jammy) ...
Setting up zammad (6.2.0-1709902372.e5509ee8.jammy) ...
# Enforcing Redis...
# Creating Redis bootstart
Synchronizing state of redis-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable redis-server
# Starting Redis server
# Redis server is running.
# (Re)creating init scripts
Nothing to do.
Nothing to do.
Nothing to do.
# Enabling Zammad on boot
# Stopping Zammad
# Clear cache...
/opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require': cannot load such file -- zeitwerk (LoadError)
        from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/vite_ruby-3.3.4/lib/vite_ruby.rb:8:in `<main>'
        from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.17.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.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
        from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/vite_rails-3.0.17/lib/vite_rails.rb:3:in `<main>'
        from /opt/zammad/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'

Somehow “zeitwork” fails, this happend after an upgrade, downgrade doesn’t fix it, so I suspect a depency issue.

Anyone any clue? I’m reallt stuck with this right now and can’t use zammad because it’s failing and won’t start.

Why don’t a get any reply at all?

Please help me, I can’t get zammad back to a working state and I don’t know how to fix this.

This is a free community without any guarantee of help.
You seem to tell half of the story. E.g. from where you tried to upgrade would be relevant.

Closing in favor of

Please don’t create duplicate posts and don’t bump. People may not like this behavior.