Get error uninitialized constant Channel::EmailParser::UNPROCESSABLE_MAIL_DIRECTORY

Hello!

  • Used Zammad version: 6.3
  • Used Zammad installation type: source
  • Operating system: 22.04.1-Ubuntu
  • Browser + version: Microsoft Edge for Business Version 124.0.2478.80

Expected behavior:

  • Access monitoring page and see status.

Actual behavior:

  • Got this error:

StatusCode: 500

uninitialized constant Channel::EmailParser::UNPROCESSABLE_MAIL_DIRECTORY

on logs:

I, [2024-05-09T02:25:29.441212#56727-149380] INFO -- : Processing by MonitoringController#health_check as JSON
I, [2024-05-09T02:25:29.441281#56727-149380] INFO -- : Parameters: {"_"=>"1715232291539"}
E, [2024-05-09T02:25:29.474957#56727-149380] ERROR -- : uninitialized constant Channel::EmailParser::UNPROCESSABLE_MAIL_DIRECTORY (NameError)
lib/monitoring_helper/health_checker/unprocessable_mail.rb:8:in `run_health_check'
lib/monitoring_helper/health_checker/backend.rb:13:in `check_health'
lib/monitoring_helper/health_checker.rb:13:in `block in check_health'
lib/monitoring_helper/health_checker.rb:12:in `check_health'
app/controllers/monitoring_controller.rb:34:in `health_check'
app/controllers/application_controller/has_download.rb:17:in `block (4 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:16:in `block (3 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:15:in `block (2 levels) in <module:HasDownload>'
app/controllers/application_controller/handles_transitions.rb:16:in `handle_transaction'
I, [2024-05-09T02:25:29.479746#56727-149380] INFO -- : Completed 500 Internal Server Error in 38ms (Views: 0.2ms | ActiveRecord: 21.9ms | Allocations: 12003)

Steps to reproduce the behavior:

  • This error has started after update to 6.3.

Please share all steps you’ve taken to upgrade Zammad. Also let us know from which version you’ve upgraded please.

Had the same problem after updating to 6.3. I assume you have a source installation?

I had to remove the file /opt/zammad/lib/monitoring_helper/health_checker/unprocessable_mail.rb manually after the update to make the monitoring page working again. It looks like it was removed in the this commit.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.