Scheduler may not run

Infos:

  • Used Zammad version: 4.0.x
  • Operating system: Ubuntu 16.04.7 LTS
  • Browser + version: doesn´t matter

Expected behavior:

  • Emails should be fetched as usual

Actual behavior:

  • Emails are not fetched and following error message appears:

We did not change anything the last days or weeks nor did any updates.
With command “zammad run rails r “Channel.fetch””, emails are fetched as usual and it workes fine.

scheduler_err.log:
#<Thread:0x0000560dc9b58808@/opt/zammad/vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:471 run> terminated with exception (report_on_exception is true):
/opt/zammad/lib/sessions.rb:780:in rescue in thread_client': STOP thread_client for client .47152681522500 after 10 tries (RuntimeError) from /opt/zammad/lib/sessions.rb:755:in thread_client’
from /opt/zammad/lib/sessions.rb:778:in rescue in thread_client' from /opt/zammad/lib/sessions.rb:755:in thread_client’
from /opt/zammad/lib/sessions.rb:778:in rescue in thread_client' from /opt/zammad/lib/sessions.rb:755:in thread_client’
from /opt/zammad/lib/sessions.rb:711:in block (3 levels) in jobs' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in block in create_with_logging_context’
/opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache/file_store.rb:91:in delete': No such file or directory @ apply2files - /opt/zammad/tmp/cache_file_store_production/464/BC0/Ticket%3A%3A1138 (Errno::ENOENT) from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache/file_store.rb:91:in delete_entry’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache/strategy/local_cache.rb:155:in delete_entry' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:350:in block in read’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:663:in block in instrument' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/notifications.rb:170:in instrument’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:663:in instrument' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:345:in read’
from /opt/zammad/lib/cache.rb:47:in get' from /opt/zammad/app/models/application_model/has_cache.rb:50:in cache_get’
from /opt/zammad/app/models/application_model/can_lookup.rb:28:in lookup' from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:155:in block (2 levels) in push’
from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:152:in each' from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:152:in block in push’
from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:139:in each' from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:139:in push’
from /opt/zammad/lib/sessions/client.rb:67:in each' from /opt/zammad/lib/sessions/client.rb:67:in block in fetch’
from /opt/zammad/lib/sessions/client.rb:23:in loop' from /opt/zammad/lib/sessions/client.rb:23:in fetch’
from /opt/zammad/lib/sessions/client.rb:7:in initialize' from /opt/zammad/lib/sessions.rb:756:in new’
from /opt/zammad/lib/sessions.rb:756:in thread_client' from /opt/zammad/lib/sessions.rb:778:in rescue in thread_client’
from /opt/zammad/lib/sessions.rb:755:in thread_client' from /opt/zammad/lib/sessions.rb:778:in rescue in thread_client’
from /opt/zammad/lib/sessions.rb:755:in thread_client' from /opt/zammad/lib/sessions.rb:711:in block (3 levels) in jobs’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in block in create_with_logging_context' /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache/file_store.rb:91:in delete’: No such file or directory @ apply2files - /opt/zammad/tmp/cache_file_store_production/466/C10/Ticket%3A%3A1086 (Errno::ENOENT)
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache/file_store.rb:91:in delete_entry' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache/strategy/local_cache.rb:155:in delete_entry’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:350:in block in read' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:663:in block in instrument’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/notifications.rb:170:in instrument' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:663:in instrument’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:345:in read' from /opt/zammad/lib/cache.rb:47:in get’
from /opt/zammad/app/models/application_model/has_cache.rb:50:in cache_get' from /opt/zammad/app/models/application_model/can_lookup.rb:28:in lookup’
from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:155:in block (2 levels) in push' from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:152:in each’
from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:152:in block in push' from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:139:in each’
from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:139:in push' from /opt/zammad/lib/sessions/client.rb:67:in each’
from /opt/zammad/lib/sessions/client.rb:67:in block in fetch' from /opt/zammad/lib/sessions/client.rb:23:in loop’
from /opt/zammad/lib/sessions/client.rb:23:in fetch' from /opt/zammad/lib/sessions/client.rb:7:in initialize’
from /opt/zammad/lib/sessions.rb:756:in new' from /opt/zammad/lib/sessions.rb:756:in thread_client’
from /opt/zammad/lib/sessions.rb:778:in rescue in thread_client' from /opt/zammad/lib/sessions.rb:755:in thread_client’
from /opt/zammad/lib/sessions.rb:711:in block (3 levels) in jobs' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in block in create_with_logging_context’
/opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache/file_store.rb:91:in delete': No such file or directory @ apply2files - /opt/zammad/tmp/cache_file_store_production/3FF/340/Ticket%3A%3A35 (Errno::ENOENT) from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache/file_store.rb:91:in delete_entry’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache/strategy/local_cache.rb:155:in delete_entry' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:350:in block in read’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:663:in block in instrument' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/notifications.rb:170:in instrument’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:663:in instrument' from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/cache.rb:345:in read’
from /opt/zammad/lib/cache.rb:47:in get' from /opt/zammad/app/models/application_model/has_cache.rb:50:in cache_get’
from /opt/zammad/app/models/application_model/can_lookup.rb:28:in lookup' from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:155:in block (2 levels) in push’
from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:152:in each' from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:152:in block in push’
from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:139:in each' from /opt/zammad/lib/sessions/backend/ticket_overview_list.rb:139:in push’
from /opt/zammad/lib/sessions/client.rb:67:in each' from /opt/zammad/lib/sessions/client.rb:67:in block in fetch’
from /opt/zammad/lib/sessions/client.rb:23:in loop' from /opt/zammad/lib/sessions/client.rb:23:in fetch’
from /opt/zammad/lib/sessions/client.rb:7:in initialize' from /opt/zammad/lib/sessions.rb:756:in new’
from /opt/zammad/lib/sessions.rb:756:in thread_client' from /opt/zammad/lib/sessions.rb:711:in block (3 levels) in jobs’
from /opt/zammad/vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context’

You’re affected by this issue:

Restart your scheduler and cross fingers it doesn’t die too fast.
systemctl restart zammad-worker

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