I get the following logs in journalctl
for the openflexure-microscope-server.service
:
Jul 07 17:12:22 openflexurepi python[610]: ERROR:root:Traceback (most recent call last):
Jul 07 17:12:22 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/labthings/actions/thread.py", line 255, in wrapped
Jul 07 17:12:22 openflexurepi python[610]: self._return_value = f(*args, **kwargs)
Jul 07 17:12:22 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/flask/ctx.py", line 158, in wrapper
Jul 07 17:12:22 openflexurepi python[610]: return f(*args, **kwargs)
Jul 07 17:12:22 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/webargs/core.py", line 594, in wrapper
Jul 07 17:12:22 openflexurepi python[610]: return func(*args, **kwargs)
Jul 07 17:12:22 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/openflexure_microscope/api/v2/views/actions/stage.py", line 47, in post
Jul 07 17:12:22 openflexurepi python[610]: with microscope.stage.lock(timeout=1):
Jul 07 17:12:22 openflexurepi python[610]: File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
Jul 07 17:12:22 openflexurepi python[610]: return next(self.gen)
Jul 07 17:12:22 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/labthings/sync/lock.py", line 55, in __call__
Jul 07 17:12:22 openflexurepi python[610]: result = self.acquire(timeout=timeout, blocking=blocking)
Jul 07 17:12:22 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/labthings/sync/lock.py", line 83, in acquire
Jul 07 17:12:22 openflexurepi python[610]: raise LockError("ACQUIRE_ERROR", self)
Jul 07 17:12:22 openflexurepi python[610]: labthings.sync.lock.LockError: ACQUIRE_ERROR: LOCK <labthings.sync.lock.StrictLock object at 0xb3a88bf0>: Unable to acquire. Lock in use by another thread.
Jul 07 17:12:26 openflexurepi python[610]: Exception in thread Thread-888:
Jul 07 17:12:26 openflexurepi python[610]: Traceback (most recent call last):
Jul 07 17:12:26 openflexurepi python[610]: File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
Jul 07 17:12:26 openflexurepi python[610]: self.run()
Jul 07 17:12:26 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/labthings/actions/thread.py", line 224, in run
Jul 07 17:12:26 openflexurepi python[610]: self._thread_proc(self._target)(*self._args, **self._kwargs)
Jul 07 17:12:26 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/labthings/actions/thread.py", line 277, in wrapped
Jul 07 17:12:26 openflexurepi python[610]: raise e
Jul 07 17:12:26 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/labthings/actions/thread.py", line 255, in wrapped
Jul 07 17:12:26 openflexurepi python[610]: self._return_value = f(*args, **kwargs)
Jul 07 17:12:26 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/flask/ctx.py", line 158, in wrapper
Jul 07 17:12:26 openflexurepi python[610]: return f(*args, **kwargs)
Jul 07 17:12:26 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/webargs/core.py", line 594, in wrapper
Jul 07 17:12:26 openflexurepi python[610]: return func(*args, **kwargs)
Jul 07 17:12:26 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/openflexure_microscope/api/v2/views/actions/stage.py", line 47, in post
Jul 07 17:12:26 openflexurepi python[610]: with microscope.stage.lock(timeout=1):
Jul 07 17:12:26 openflexurepi python[610]: File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
Jul 07 17:12:26 openflexurepi python[610]: return next(self.gen)
Jul 07 17:12:26 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/labthings/sync/lock.py", line 55, in __call__
Jul 07 17:12:26 openflexurepi python[610]: result = self.acquire(timeout=timeout, blocking=blocking)
Jul 07 17:12:26 openflexurepi python[610]: File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.7/site-packages/labthings/sync/lock.py", line 83, in acquire
Jul 07 17:12:26 openflexurepi python[610]: raise LockError("ACQUIRE_ERROR", self)
Jul 07 17:12:26 openflexurepi python[610]: labthings.sync.lock.LockError: ACQUIRE_ERROR: LOCK <labthings.sync.lock.StrictLock object at 0xb3a88bf0>: Unable to acquire. Lock in use by another thread.