unprocessed mails zammad 7.2

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?

Best Regards,

Adelio

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.

Environment
Installation method: package
Operating system: Debian GNU/Linux 13 (trixie)
Zammad: 7.2.1
Database + version: psql (PostgreSQL) 17.11
Elasticsearch version: elasticsearch 8.19.21
Browser + version: Opéra, Google, Firefox

zammad run rake db:migrate --trace
** 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

As I understand it, is db:migrate executed during the post-install phase every time the Zammad package is installed?

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?

best Regards.
Adélio

Can no one help me with this problem?

I was hoping an update might fix the error, but it didn’t.

This is Zammad version 7.2.2-1791798710.24a62d0.debian13

My ticketing system is only 10% operational; most emails are not being processed.

Any help is welcome.

Thanks in advance…

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.

The interesting question would be who and why it was removed.

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…

It’s finally functional again; I’ve recovered my 0015 filter—along with any others that might have been missing.

The secret lies in the Zammad installation process.

Thank you to everyone, and for everything…
best regards,

Good to hear that everything is functional again!