Email_parser.rb RuntimeError

  • Used Zammad version: 4.1.x
  • Used Zammad installation source: Ubuntu
  • Operating system: W10
  • Browser + version: Firefox + Chrome latest

Ruby-Version mention in gemfile

> # core - base
> ruby '2.6.8'
> gem 'rails', '5.2.4.6'

I found 80 unprocessed E-Mails. Fetching from mailbox works but not the parsing.
When sending

sudo zammad run rails r ‘Channel::EmailParser.process_unprocessable_mails’

I get the a email_parser runtime error.
Already deleted all unprocessed mails, send a blank testmail. Restartet and updatet (i guess) everything.

> /opt/zammad/log$ sudo zammad run rails r 'Channel::EmailParser.process_unprocessable_mails'
> "ERROR: Can't process email, you will find it for bug reporting under /opt/zammad/tmp/unprocessable_mail/5b6acb004f16eefc89cf8cdb6f4f37a9.eml, please create an issue at https://github.com/zammad/zammad/issues"
> "ERROR: #<NameError: uninitialized constant Channel::Filter::FollowUpAssignment\nDid you mean?  Channel::Filter::FollowUpPossibleCheck>"
> /opt/zammad/app/models/channel/email_parser.rb:135:in `rescue in process': #<NameError: uninitialized constant Channel::Filter::FollowUpAssignment (RuntimeError)
> Did you mean?  Channel::Filter::FollowUpPossibleCheck>
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/inflector/methods.rb:285:in `const_get'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/inflector/methods.rb:285:in `block in constantize'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/inflector/methods.rb:281:in `each'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/inflector/methods.rb:281:in `inject'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/inflector/methods.rb:281:in `constantize'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/core_ext/string/inflections.rb:68:in `constantize'
> /opt/zammad/app/models/channel/email_parser.rb:154:in `block in _process'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.6/lib/active_record/relation/delegation.rb:71:in `each'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.6/lib/active_record/relation/delegation.rb:71:in `each'
> /opt/zammad/app/models/channel/email_parser.rb:153:in `_process'
> /opt/zammad/app/models/channel/email_parser.rb:120:in `block in process'
> /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/timeout.rb:93:in `block in timeout'
> /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/timeout.rb:33:in `block in catch'
> /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/timeout.rb:33:in `catch'
> /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/timeout.rb:33:in `catch'
> /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/timeout.rb:108:in `timeout'
> /opt/zammad/app/models/channel/email_parser.rb:119:in `process'
> /opt/zammad/app/models/channel/email_parser.rb:505:in `block in process_unprocessable_mails'
> /opt/zammad/app/models/channel/email_parser.rb:504:in `glob'
> /opt/zammad/app/models/channel/email_parser.rb:504:in `process_unprocessable_mails'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands/runner/runner_command.rb:41:in `<main>'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands/runner/runner_command.rb:41:in `eval'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands/runner/runner_command.rb:41:in `perform'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/command/base.rb:69:in `perform'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/command.rb:46:in `invoke'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands.rb:18:in `<main>'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:291:in `block in require'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:257:in `load_dependency'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:291:in `require'
> /opt/zammad/bin/rails:9:in `<main>'
>         from /opt/zammad/app/models/channel/email_parser.rb:117:in `process'
>         from /opt/zammad/app/models/channel/email_parser.rb:505:in `block in process_unprocessable_mails'
>         from /opt/zammad/app/models/channel/email_parser.rb:504:in `glob'
>         from /opt/zammad/app/models/channel/email_parser.rb:504:in `process_unprocessable_mails'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands/runner/runner_command.rb:41:in `<main>'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands/runner/runner_command.rb:41:in `eval'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands/runner/runner_command.rb:41:in `perform'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/command/base.rb:69:in `perform'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/command.rb:46:in `invoke'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands.rb:18:in `<main>'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:291:in `block in require'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:257:in `load_dependency'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:291:in `require'
>         from /opt/zammad/bin/rails:9:in `<main>'
> /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/inflector/methods.rb:285:in `const_get': uninitialized constant Channel::Filter::FollowUpAssignment (NameError)
> Did you mean?  Channel::Filter::FollowUpPossibleCheck
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/inflector/methods.rb:285:in `block in constantize'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/inflector/methods.rb:281:in `each'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/inflector/methods.rb:281:in `inject'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/inflector/methods.rb:281:in `constantize'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/core_ext/string/inflections.rb:68:in `constantize'
>         from /opt/zammad/app/models/channel/email_parser.rb:154:in `block in _process'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.6/lib/active_record/relation/delegation.rb:71:in `each'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.6/lib/active_record/relation/delegation.rb:71:in `each'
>         from /opt/zammad/app/models/channel/email_parser.rb:153:in `_process'
>         from /opt/zammad/app/models/channel/email_parser.rb:120:in `block in process'
>         from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/timeout.rb:93:in `block in timeout'
>         from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/timeout.rb:33:in `block in catch'
>         from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/timeout.rb:33:in `catch'
>         from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/timeout.rb:33:in `catch'
>         from /opt/zammad/vendor/ruby-2.6.8/lib/ruby/2.6.0/timeout.rb:108:in `timeout'
>         from /opt/zammad/app/models/channel/email_parser.rb:119:in `process'
>         from /opt/zammad/app/models/channel/email_parser.rb:505:in `block in process_unprocessable_mails'
>         from /opt/zammad/app/models/channel/email_parser.rb:504:in `glob'
>         from /opt/zammad/app/models/channel/email_parser.rb:504:in `process_unprocessable_mails'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands/runner/runner_command.rb:41:in `<main>'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands/runner/runner_command.rb:41:in `eval'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands/runner/runner_command.rb:41:in `perform'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/command/base.rb:69:in `perform'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/command.rb:46:in `invoke'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.6/lib/rails/commands.rb:18:in `<main>'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:291:in `block in require'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:257:in `load_dependency'
>         from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.6/lib/active_support/dependencies.rb:291:in `require'
>         from /opt/zammad/bin/rails:9:in `<main>'

The error isn’t solved but the server is up and running again.

Upgraded to latest Zammad, Elastic search (deleted olf indexes before), ES, Plugins, Java from 8 to 11 because 8 will not be supportet in later ES version.

But what was causing the malefunction isnt clear.