TheSpaghettiDetective / obico-server

Obico is a community-built, open-source smart 3D printing platform used by makers, enthusiasts, and tinkerers around the world.
https://obico.io
GNU Affero General Public License v3.0
1.44k stars 291 forks source link

Camera no longer working in app #983

Closed billkenney closed 17 hours ago

billkenney commented 2 weeks ago

I'm not sure why, but my camera feed has stopped working in the app. I'm running obico server self hosted on docker and obico on klipper. The webcam works on the browser, just not on the app. The app also no longer has timelapse videos. But Timelapse and the webcam are working in fluidd. I don't know if there is something in the database that's corrupt or some way to troubleshoot this, but there is nothing in the logs. imageimage

mon5termatt commented 2 weeks ago

Same here

kennethjiang commented 2 weeks ago

Please set the logging level to DEBUG and send the log file to k@obico.io: https://obico.io/docs/user-guides/moonraker-obico/logging-file/

billkenney commented 2 weeks ago

Please set the logging level to DEBUG and send the log file to k@obico.io: https://obico.io/docs/user-guides/moonraker-obico/logging-file/

I sent the logs from a short print and an hour or so after when the printer was idle. I'm self hosting Obico, and I changed my domain to domain.com.

I should also note that this worked great for a couple months and stopped working suddenly. I waas actually getting Timelapses on Obico but not on my printer. Now I'm getting Timelapses on my printer but not Obico. image

billkenney commented 1 week ago

I should also note that while I have a Qidi Max 3 printer, I'm running Debian Bookworm and python 3.11, as well as the latest klipper, moonraker, timelapse, etc.

kennethjiang commented 1 week ago

Got your log file. And sorry for the delay.

I believe this issue is fixed in the latest release: https://discord.com/channels/614543405724205137/661368008781987841/1255143964248510618

kennethjiang commented 1 week ago

Please close this issue once you have updated the server and confirmed it's fixed.

billkenney commented 1 week ago

Please close this issue once you have updated the server and confirmed it's fixed.

I'm out of town, but will update next week and close the issue if it's resolved. Thanks!

billkenney commented 4 days ago

Got your log file. And sorry for the delay.

I believe this issue is fixed in the latest release: https://discord.com/channels/614543405724205137/661368008781987841/1255143964248510618

Still not working with the latest release. It works on the web page and on fluidd, but not on the app.

Here are the logs from the printer:

2024-07-03 20:58:20,570 DEBUG obico.server_conn - POST https://obico.domain.com/api/v1/octo/pic/ - 200 2024-07-03 20:58:20,571 DEBUG obico.server_conn - Jpeg posted to server - camera name: - viewing_boost: False - <Response [200]> 2024-07-03 20:58:31,047 DEBUG obico.server_conn - POST https://obico.domain.com/api/v1/octo/pic/ - 200 2024-07-03 20:58:31,048 DEBUG obico.server_conn - Jpeg posted to server - camera name: - viewing_boost: False - <Response [200]> 2024-07-03 20:58:41,625 DEBUG obico.server_conn - POST https://obico.domain.com/api/v1/octo/pic/ - 200 2024-07-03 20:58:41,626 DEBUG obico.server_conn - Jpeg posted to server - camera name: - viewing_boost: False - <Response [200]>

Here are the logs from the server (there were a ton of the /api/v1/octo/printer_events/ 200 15 logs, so i deleted all but one):

172.18.0.1:58018 - - [04/Jul/2024:01:27:32] "WSCONNECTING /ws/janus/2/" - - 172.18.0.1:58032 - - [04/Jul/2024:01:27:32] "WSCONNECTING /ws/janus/2/" - - 172.18.0.1:58042 - - [04/Jul/2024:01:27:32] "WSCONNECTING /ws/web/1/" - - 172.18.0.1:58050 - - [04/Jul/2024:01:27:32] "WSCONNECTING /ws/janus/1/" - - 172.18.0.1:58054 - - [04/Jul/2024:01:27:32] "WSCONNECTING /ws/janus/1/" - - 172.18.0.1:58018 - - [04/Jul/2024:01:27:32] "WSCONNECT /ws/janus/2/" - - 172.18.0.1:58032 - - [04/Jul/2024:01:27:32] "WSCONNECT /ws/janus/2/" - - 172.18.0.1:58042 - - [04/Jul/2024:01:27:32] "WSCONNECT /ws/web/1/" - - 172.18.0.1:58050 - - [04/Jul/2024:01:27:32] "WSCONNECT /ws/janus/1/" - - 172.18.0.1:58054 - - [04/Jul/2024:01:27:32] "WSCONNECT /ws/janus/1/" - - 172.18.0.1:58054 - - [04/Jul/2024:01:27:33] "WSDISCONNECT /ws/janus/1/" - - 172.18.0.1:58000 - - [04/Jul/2024:01:27:33] "POST /api/v1/octo/pic/" 200 15 172.18.0.1:58010 - - [04/Jul/2024:01:27:36] "WSDISCONNECT /ws/web/2/" - - 172.18.0.1:58042 - - [04/Jul/2024:01:27:36] "WSDISCONNECT /ws/web/1/" - - 172.18.0.1:58000 - - [04/Jul/2024:01:27:36] "POST /api/v1/octo/printer_events/" 200 15 172.18.0.1:58050 - - [04/Jul/2024:01:27:36] "WSDISCONNECT /ws/janus/1/" - - 172.18.0.1:58018 - - [04/Jul/2024:01:27:36] "WSDISCONNECT /ws/janus/2/" - - 172.18.0.1:58032 - - [04/Jul/2024:01:27:36] "WSDISCONNECT /ws/janus/2/" - - 172.18.0.1:56580 - - [04/Jul/2024:01:32:51] "POST /api/v1/octo/g_code_files/" 201 286 django.request WARNING Not Found: /ent/api/personalized_mobile_ui/ api.consumers WARNING WebConsumer: Closed websocket with code: 1000

kennethjiang commented 4 days ago

Please set the logging level to DEBUG and send the log file to k@obico.io: https://obico.io/docs/user-guides/moonraker-obico/logging-file/

billkenney commented 17 hours ago

I ended up deleting the program and database on my printer and server, and reinstalling from scratch, and it seems to work fine again. Bummer I lost the print history and timelapses, but at least it's working again