Closed igavronski closed 5 years ago
And by stopping the service, all "sick workers" don't show at the checkout:
17:41 $ onedrive-d stop
Loading configuration ... OK
[2017-02-14 17:41:47,209] DEBUG: MainThread: running in daemon node.
Stopping onedrive-d ... FAILED
ERROR: Timed out while waiting for process (PID 31169) to terminate
17:41 $
17:42 $ ps -ef | grep onedr
iuri 14006 3710 0 07:10 pts/0 00:00:03 tail -f .onedrive.log
iuri 31166 13849 3 17:09 pts/1 00:01:01 /usr/bin/python3 /usr/local/bin/onedrive-d start --debug
iuri 31169 1 1 17:09 pts/1 00:00:26 /usr/bin/python3 /usr/local/bin/onedrive-d start --debug
See the output of the debug:
[2017-02-14 17:41:47,210] INFO: MainThread: stopping...
[2017-02-14 17:41:47,211] DEBUG: Dummy-7: cleaning up.
[2017-02-14 17:41:47,571] DEBUG: Dummy-7: entry manager closed.
[2017-02-14 17:41:47,579] DEBUG: Dummy-7: inotifywait killed.
[2017-02-14 17:41:47,752] DEBUG: worker1: got task: sy on "/home/iuri/OneDrive/***"
[2017-02-14 17:41:48,577] DEBUG: inotify: exit while loop.
[2017-02-14 17:41:48,764] DEBUG: inotify: stopped.
[2017-02-14 17:41:48,765] DEBUG: Dummy-7: inotify thread stopped.
[2017-02-14 17:41:48,766] DEBUG: Dummy-7: task queue cleaned.
[2017-02-14 17:41:48,766] DEBUG: Dummy-7: waiting for thread worker0.
[2017-02-14 17:41:48,767] DEBUG: Dummy-7: waiting for thread worker1.
[2017-02-14 17:41:48,962] DEBUG: worker1: stopped.
[2017-02-14 17:41:48,963] DEBUG: Dummy-7: waiting for thread worker2.
[2017-02-14 17:41:48,963] DEBUG: Dummy-7: waiting for thread worker3.
And after kill
ing the PID of onedrive.d:
[2017-02-14 17:49:50,275] INFO: Dummy-7: stopping...
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/onedrive_d-1.1.0.dev0-py3.5.egg/onedrive_d/od_mon_cli.py", line 104, in cleanup
File "/usr/lib/python3.5/threading.py", line 1054, in join
self._wait_for_tstate_lock()
File "/usr/lib/python3.5/threading.py", line 1070, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
File "/usr/local/lib/python3.5/dist-packages/onedrive_d-1.1.0.dev0-py3.5.egg/onedrive_d/od_mon_cli.py", line 121, in stop
SystemExit: 0
[2017-02-14 17:49:50,278] DEBUG: Dummy-7: config saved.
Hi,
Not sure if that's a programming or a worker's health problem... ;-)