How exactly did you backup and restore? With all files or just attachments…? This information is quite crucial. Also we do not know which steps you have taken.
I mean we can assume that you’ve followed the documentation, but you might have slipped a step.
I couldn’t find the mentioned definition on my current 6.5.2 installation, so I’m gonna guess that your database does not match your filesystem.
This is what you should see in a rails console (nothing more, nothing less):
To double tab this, run /opt/zammad/contrib/packager.io/postinstall.sh which will do everything that happens during an update. Just be be sure there’s not more luring at you.
What does zammad run rake db:migrate --trace return? It should have pending migrations… unless you have custom addons that hook into mail processing that you forgot to install?
root@debian-12-server:/home/technique# zammad run rake db:migrate --trace
WARNING: Nokogiri was built against libxml version 2.9.10, but has dynamically loaded 2.9.14
WARNING: Nokogiri was built against libxslt version 1.1.34, but has dynamically loaded 1.1.35
** Invoke db:migrate (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:load_config
** Execute db:migrate
** Invoke db:_dump (first_time)
** Execute db:_dump
root@debian-12-server:/home/technique#
Do you have the file app/models/channel/filter/identify_session_user.rb? If yes, could you check if it’s matching to the version that is available on GitHub?
I just checked the app/models/channel/filter folder, and it matches the contents of the installation package. However, I can’t find the identify_session_user.rb file.
I have no idea what you did to have this situation. The file app/models/channel/filter/identify_session_user.rb is quite a new one and is part of Zammad 7.0.
If you’re using package installs that point to stable, this file is not present and is also not used from within the code base.