I updated Zammad from version 6.5 to version 7, passing through versions 7.0.1 and 7.1.3 before reaching 7.2.0.
Everything seemed to work fine in version 7.0.1 when upgrading to 7.1.3.
In version 7.1.3, I started receiving alerts about unprocessed emails—one or two per day.
In version 7.2, the number of unprocessed emails is increasing day by day. Given potential Ruby version conflicts,
I uninstalled Zammad 7.2 and deleted the Zammad directory at /opt/zammad to perform a clean reinstallation, knowing that the entire configuration is stored in the database.
It is impossible to process the 57 pending emails. I created Issue 6420 on GitHub; upon checking, it turns out that the rule 0015_postmaster_filter_identify_session_user is missing from system.report, so I suspect other rules are likely missing as well.
Could you tell me if it is possible to restore the default Zammad rules and verify their consistency with the system?
Or do you see the best way to resolve this problem quickly?
It’s a little bit hard to help you without the template you discarded. The Elasticsearch version is crucial. For my ease, I’m going to assume that you have a package installation in place, if not, ommit `zammad run`.
`zammad run rake db:migrate` should basically return nothing if the database is in the correct state. I’m assuming, that you’re missing migrations. If not and if the (potential) error message does not return anything useful, add `–trace` to the command, it will return more. I am assuming that you are already on Elasticsearch 8.15 or higher as minimum version for ES.
Will I have to keep using these three commands for much longer? zammad run rake zammad:email_parser:failed_email:export_all FailedEmail.delete_all zammad run rake zammad:email_parser:failed_email:import Before using these three commands, the “Current Status” under System > Monitoring in the Zammad UI showed: “emails that could not be processed: 8”; after executing the three commands above, the status changed to “no issues”. The command below returns the error “RuntimeError: No x-zammad-session-user-id, no sender set!” in the production logs. zammad run rake zammad:email_parser:failed_email:reprocess_all How does the command above differ from the import command described earlier?
Your database is missing most of its email pre-filters. Updates and db:migrate won’t bring them back. The migrations that created these filters already ran on your system, and a migration only runs once.
The default filters are defined in db/seeds/settings.rb. Please check which filters are missing and then re-create the missing filters in the Rails console. Please take a backup before you change anything.
Once the filters are back, zammad run rake zammad:email_parser:failed_email:reprocess_all should process the failed emails.
I tried looking through each unprocessed email to see if I could spot any errors; apart from some sender names having inconsistent use of uppercase or lowercase letters, I didn’t find anything else.
I am going to take an inventory of the filters and compare them against the ones on GitHub.
This is indeed a clean installation using the .deb packages from Package io.
I have at least one lead to follow…
Thanks…