Problem with emails and activities (scheduler may not run)

  • Used Zammad version: 6.2.0-1709902372.e5509ee8.bookworm
  • Used Zammad installation type: package
  • Operating system: Debian 12
  • Browser + version: Latest MS Edge + all others

Expected behavior:

  • Scheduler should run normally

Actual behavior:

  • Scheduler doesn’t run normally

Steps to reproduce the behavior:

  • Can’t really reproduce the issue. We had the issue a few times now, i see it because the activity monitor doesn’t refresh and it just looks like this in the settings

What helps is just restarting the scheduler by “systemctl restart zammad-worker” - but i had to do that twice today.

Can’t really find something in the production log - maybe someone has a keyword on what to search?

1 Like

+1 we’ve the same prob → any solutions ?

inv:

  • Debian 12
  • 6.3.1-1720594112.300297ce.bookworm

You’re outdated.

The solution is to check if the scheduler is really dead and if not what delays it.

You’re outdated.

Check will update soon. But problem occurs form version 4.xxxx to still 6.3.1.

The solution is to check if the scheduler is really dead

How can we check ? With puma ?

No offense, but the documentation is answering that question:
https://docs.zammad.org/en/latest/install/package.html#manage-services-of-zammad

Apart from that, you only screamed “me too”, so I won’t be able to help in more detail.

Great that solve all of our probs. Nice greetz to Berlin Marcel

Error message:

Mär 07 14:35:59 deb3-zmmd zammad-worker-1.service[1008432]: bMär 07 14:35:59 deb3-zmmd zammad-worker-1.service[1008432]: bundler: failed to load command: script/background-worker.rb (script/background-worker.rb)undler: failed to load command: script/background-worker.rb (script/background-worker.rb)

prelog:

Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]: #<Thread:0x00007f6f7e8b5d68 /opt/zammad/lib/sessions.rb:445 run> terminated with exception (report_on_exception >
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]: /opt/zammad/lib/sessions.rb:515:in `rescue in thread_client': STOP thread_client for client .932360 after 10 tri>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:490:in `thread_client'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:513:in `rescue in thread_client'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:490:in `thread_client'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:446:in `block (3 levels) in jobs'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]: /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/co>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/monitor.rb:202:in `synchronize'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/monitor.rb:202:in `mon_synchronize'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handlin>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handlin>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/core.rb:433:in `ca>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/core.rb:317:in `fi>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/app/models/application_model/can_lookup.rb:30:in `block in lookup'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/auth/request_cache.rb:11:in `fetch_value'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/app/models/application_model/can_lookup.rb:29:in `lookup'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions/client.rb:36:in `block in fetch'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions/client.rb:25:in `loop'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions/client.rb:25:in `fetch'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions/client.rb:9:in `initialize'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:491:in `new'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:491:in `thread_client'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:513:in `rescue in thread_client'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:490:in `thread_client'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:446:in `block (3 levels) in jobs'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]: /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/co>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/monitor.rb:202:in `synchronize'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/monitor.rb:202:in `mon_synchronize'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapter>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handlin>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handlin>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/core.rb:433:in `ca>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/core.rb:317:in `fi>
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/app/models/application_model/can_lookup.rb:30:in `block in lookup'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/auth/request_cache.rb:11:in `fetch_value'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/app/models/application_model/can_lookup.rb:29:in `lookup'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions/client.rb:36:in `block in fetch'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions/client.rb:25:in `loop'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions/client.rb:25:in `fetch'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions/client.rb:9:in `initialize'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:491:in `new'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:491:in `thread_client'
Mär 07 14:35:58 deb3-zmmd zammad-worker-1.service[1008432]:         from /opt/zammad/lib/sessions.rb:446:in `block (3 levels) in jobs'
Mär 07 14:35:59 deb3-zmmd zammad-worker-1.service[1008432]: bundler: failed to load command: script/background-worker.rb (script/background-worker.rb)