TheSpaghettiDetective/moonraker-obico

[BUG] Janus errors on opennept4une

empowerists opened this issue · 0 comments

Note
I'm running the opennept4une firmware on my neptune 4. Running into an issue where Janus is erroring out and causing obico to show a still image. My obico instance is self hosted if that helps
FFMPEG is installed but obico is saying its not found. The stream works perfectly fine in Fluidd

mks@znp-k1:~$ whereis ffmpeg
ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz
May 14 09:06:57 znp-k1 python3[911]: 2024-05-14 09:06:57,128   WARNING  obico.webcam_stream - No ffmpeg found, or ffmpeg does NOT support h264_omx/h264_v4l2>
May 14 09:06:57 znp-k1 python3[911]: 2024-05-14 09:06:57,130   WARNING  obico.webcam_stream - Resolution not specified or invalid in webcam config. Getting >
May 14 09:06:57 znp-k1 python3[911]: 2024-05-14 09:06:57,137      INFO  obico.janus_config_builder - janus_bin_path: None - ld_lib_path: None
May 14 09:06:57 znp-k1 python3[911]: 2024-05-14 09:06:57,141   WARNING  obico.janus - Failed to shutdown Janus - [Errno 2] No such file or directory: '/tmp/>
May 14 09:06:57 znp-k1 python3[911]: 2024-05-14 09:06:57,145     ERROR  obico.utils -
May 14 09:06:57 znp-k1 python3[911]: Traceback (most recent call last):
May 14 09:06:57 znp-k1 python3[911]:   File "/home/mks/moonraker-obico/moonraker_obico/janus.py", line 48, in run_janus_forever
May 14 09:06:57 znp-k1 python3[911]:     janus_proc = subprocess.Popen(janus_cmd.split(), env=env, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
May 14 09:06:57 znp-k1 python3[911]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 14 09:06:57 znp-k1 python3[911]:   File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
May 14 09:06:57 znp-k1 python3[911]:     self._execute_child(args, executable, preexec_fn, close_fds,
May 14 09:06:57 znp-k1 python3[911]:   File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
May 14 09:06:57 znp-k1 python3[911]:     raise child_exception_type(errno_num, err_msg, err_filename)
May 14 09:06:57 znp-k1 python3[911]: FileNotFoundError: [Errno 2] No such file or directory: 'None'
May 14 09:06:57 znp-k1 python3[911]: 2024-05-14 09:06:57,343      INFO  backoff - Backing off wait_for_port(...) for 1.0s (False)
May 14 09:06:58 znp-k1 python3[911]: 2024-05-14 09:06:58,345      INFO  backoff - Backing off wait_for_port(...) for 2.0s (False)
May 14 09:07:00 znp-k1 python3[911]: 2024-05-14 09:07:00,346     ERROR  backoff - Giving up wait_for_port(...) after 3 tries (False)
May 14 09:07:00 znp-k1 python3[911]: 2024-05-14 09:07:00,349   WARNING  obico.ws - WS Closed - None - None
May 14 09:07:00 znp-k1 python3[911]: 2024-05-14 09:07:00,350   WARNING  obico.janus - Janus WS connection closed!
May 14 09:07:05 znp-k1 python3[911]: Exception in thread Thread-8 (start):
May 14 09:07:05 znp-k1 python3[911]: Traceback (most recent call last):
May 14 09:07:05 znp-k1 python3[911]:   File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
May 14 09:07:05 znp-k1 python3[911]:     self.run()
May 14 09:07:05 znp-k1 python3[911]:   File "/usr/lib/python3.11/threading.py", line 975, in run
May 14 09:07:05 znp-k1 python3[911]:     self._target(*self._args, **self._kwargs)
May 14 09:07:05 znp-k1 python3[911]:   File "/home/mks/moonraker-obico/moonraker_obico/webcam_stream.py", line 112, in start
May 14 09:07:05 znp-k1 python3[911]:     self.janus.start(janus_bin_path, ld_lib_path)
May 14 09:07:05 znp-k1 python3[911]:   File "/home/mks/moonraker-obico/moonraker_obico/janus.py", line 76, in start
May 14 09:07:05 znp-k1 python3[911]:     self.start_janus_ws()
May 14 09:07:05 znp-k1 python3[911]:   File "/home/mks/moonraker-obico/moonraker_obico/janus.py", line 94, in start_janus_ws
May 14 09:07:05 znp-k1 python3[911]:     self.janus_ws = WebSocketClient(
May 14 09:07:05 znp-k1 python3[911]:                     ^^^^^^^^^^^^^^^^
May 14 09:07:05 znp-k1 python3[911]:   File "/home/mks/moonraker-obico/moonraker_obico/ws.py", line 76, in __init__
May 14 09:07:05 znp-k1 python3[911]:     raise WebSocketConnectionException('Not connected to websocket server after {}s'.format(waitsecs))
May 14 09:07:05 znp-k1 python3[911]: moonraker_obico.ws.WebSocketConnectionException: Not connected to websocket server after 5s
May 14 09:08:16 znp-k1 python3[911]: 2024-05-14 09:08:16,261      INFO  obico.app - detected state change: Offline -> Operational
May 14 09:08:16 znp-k1 python3[911]: 2024-05-14 09:08:16,287   WARNING  obico.server_conn - Server message queue is full, msg dropped
May 14 09:08:16 znp-k1 python3[911]: 2024-05-14 09:08:16,293   WARNING  obico.server_conn - Server message queue is full, msg dropped
May 14 09:08:16 znp-k1 python3[911]: 2024-05-14 09:08:16,295   WARNING  obico.server_conn - Server message queue is full, msg dropped
May 14 09:08:16 znp-k1 python3[911]: 2024-05-14 09:08:16,299   WARNING  obico.server_conn - Server message queue is full, msg dropped

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Printer make and model [e.g., Elegoo Neptune 4]
  • Are you running Klipper on a Raspberry Pi? [No]
  • moonraker-obico version: Latest

Additional context
Add any other context about the problem here.