OK. After stopping the celery workers, the server seems to keep running. What can I do to find out why they crashed the server? I deleted the worker.error.log and workerbeat.error.log files and restarted them with supervisorctl stop frappe:frappe-worker
and supervisorctl stop frappe:frappe-workerbeat
and after a minute the worker.error.log shows the following entries (The server’s still running):
[2014-10-17 17:11:05,557: WARNING/MainProcess] celery@erp ready.
[2014-10-17 17:11:17,985: ERROR/MainProcess] Task frappe.tasks.enqueue_events_for_site[8a178308-ecb6-445c-a6b4-864df9cf937d] raised unexpected: LockTimeoutError(u'./office.maxwel.de/locks/scheduler.lock',)
Traceback (most recent call last):
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
return self.run(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/tasks.py", line 108, in enqueue_events_for_site
enqueue_events(site)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 25, in enqueue_events
lock = create_lock('scheduler')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/file_lock.py", line 16, in create_lock
if not check_lock(lock_path):
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/file_lock.py", line 25, in check_lock
raise LockTimeoutError(path)
LockTimeoutError: ./erpnext.dev/locks/scheduler.lock
[2014-10-17 17:11:17,995: ERROR/MainProcess] Task frappe.tasks.enqueue_events_for_site[a008bba4-860c-4174-8046-9b7d8a84e38f] raised unexpected: LockTimeoutError(u'./erpnext.maxwel.de/locks/scheduler.lock',)
Traceback (most recent call last):
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
return self.run(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/tasks.py", line 108, in enqueue_events_for_site
enqueue_events(site)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 25, in enqueue_events
lock = create_lock('scheduler')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/file_lock.py", line 16, in create_lock
if not check_lock(lock_path):
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/file_lock.py", line 25, in check_lock
raise LockTimeoutError(path)
LockTimeoutError: ./erpnext.dev/locks/scheduler.lock
workerbeat.error.log looks ok:
Stale pidfile exists. Removing it.
[2014-10-17 17:11:17,719: INFO/MainProcess] beat: Starting...
[2014-10-17 17:11:17,789: INFO/MainProcess] Scheduler: Sending due task scheduler (frappe.tasks.enqueue_scheduler_events)
[2014-10-17 17:16:17,841: INFO/MainProcess] Scheduler: Sending due task scheduler (frappe.tasks.enqueue_scheduler_events)