AstroHuntsman / huntsman-pocs

POCS on the Huntsman Telescope
MIT License
7 stars 8 forks source link

Focuser communication error #427

Open danjampro opened 3 years ago

danjampro commented 3 years ago

Occurred on pi11 after a few hours of normal operation while taking observations:

E 05-13 11:38:05.136 Unable to apply focus position offset on ZWO Filter Wheel (5) [Camera: 192.168.80.151]: error(5, 'Input/output error')
E 05-13 11:38:05.196 Unable to apply focus position offset on ZWO Filter Wheel (5) [Camera: 192.168.80.151]: error(5, 'Input/output error')
E 05-13 11:45:29.085 Unable to apply focus position offset on ZWO Filter Wheel (5) [Camera: 192.168.80.151]: error(5, 'Input/output error')
E 05-13 11:45:44.351 _thread.ExceptHookArgs(exc_type=<class 'termios.error'>, exc_value=error(5, 'Input/output error'), exc_traceback=<traceback object at 0xffff6c517d80>, thread=<Thread(Thread-127, started daemon 281472196162016)>)

Suggests something is modifying the focus offset value over the course of the night, at some point causing it to become invalid. Either that or something went wrong communicating with the Birger...

danjampro commented 3 years ago

Error after restarting camera service following above error:

Starting the camera docker service...
I 05-13 11:55:57.322 Starting pyro service_name=huntsmanpi011 for service_class=huntsman.pocs.camera.pyro.service.CameraService
I 05-13 11:55:57.329 Creating Pyro service huntsmanpi011
Attempting to automatically determine IP address...
Found default gateway 192.168.80.1 using interface eth0
Using IP address 192.168.80.151 on interface eth0
I 05-13 11:55:57.601 Loading module for camera model=huntsman.pocs.camera.zwo
I 05-13 11:56:03.197 Creating PanDB panoptes
C 05-13 11:56:05.156 Could not open /dev/ttyUSB0!
E 05-13 11:56:05.161 Error connecting to Birger Focuser on /dev/ttyUSB0: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
/opt/conda/lib/python3.8/site-packages/panoptes/pocs/focuser/serial.py:39: UserWarning: Error connecting to Birger Focuser on /dev/ttyUSB0: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
  warn(message)
C 05-13 11:56:05.176 Attempt to send command to Birger Focuser (XXXXXX) on /dev/ttyUSB0 when not connected!
E 05-13 11:56:05.184 NotFound: base_class=<class 'huntsman.pocs.focuser.birger.Focuser'> is not a callable class. Please specify full path to class (not module).
E 05-13 11:56:05.189 Pyro huntsmanpi011 shutdown unexpectedly NotFound("base_class=<class 'huntsman.pocs.focuser.birger.Focuser'> is not a callable class. Please specify full path to class (not module).")
Exception ignored in: <function AbstractSerialFocuser.__del__ at 0xffff6f09a790>
Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/site-packages/panoptes/pocs/focuser/serial.py", line 49, in __del__
    AbstractSerialFocuser._assigned_nodes.remove(device_node)
ValueError: list.remove(x): x not in list
I 05-13 11:56:05.202 Pyro huntsmanpi011 shut down.

Camera service started normally after rebooting.