zammad not working after upgrade (undefined method)

Infos:

  • Used Zammad version: updated from v5.2.1-1662981933.34638627.bullseye to v6.5.0-1748614016.9c7e10a3.bullseye
  • Used Zammad installation type: (source, package, docker-compose, …) : package
  • Operating system: Debian Bullseye
  • Browser + version:

Expected behavior:

  • New Zammad version after update is working

Actual behavior:

Error 500 when accessing the front page

In the logs:

E, [2025-06-02T12:11:13.457439#217760-196520] ERROR -- : undefined method `[]' for nil:NilClass (NoMethodError)
app/controllers/sessions_controller.rb:320:in `config_frontend'
app/controllers/sessions_controller.rb:19:in `rescue in show'
app/controllers/sessions_controller.rb:12:in `show'
app/controllers/application_controller/handles_transitions.rb:16:in `handle_transaction'
E, [2025-06-02T12:11:13.459008#217760-196520] ERROR -- : Error ID VYCDAESL: undefined method `[]' for nil:NilClass
I, [2025-06-02T12:11:13.459461#217760-196520]  INFO -- : Completed 500 Internal Server Error in 65ms (Views: 0.2ms | ActiveRecord: 3.2ms (92 queries, 86 cached) | GC: 0.7ms)

Same problem as this ticket: Error "undefined method [] for nil:NilClass (NoMethodError)" after upgrade

Steps to fix :

To fix the issue, as in the ticket #17639, i downgraded my Zammad installation from v6.5.0-1748614016.9c7e10a3.bullseye to v6.5.0-1746624096.1f7ec9fc.bullseye and it’s working again.

apt install zammad=6.5.0-1746624096.1f7ec9fc.bullsey

Hope it helps someone else.

Hi @quenenni. Your database is not up-to-date, this is why this error is raised.

Could you please do zammad run rails console and in the Rails console, please execute ActiveRecord::Migration.check_all_pending!? What’s the output?