There are several ways to further debug this issue.
Follow these steps to make sure your TSD plugin, as well as the webcam, is configured correctly.
In this case, you can download the "octoprint.log" (here is how)file and check for any errors.
For instance, if you are seeing the errors similar to:
2019-04-15 15:09:28,108 - backoff - INFO - Backing off capture_jpeg(...) for 14.4s (ConnectionError: HTTPConnectionPool(host='192.168.134.40', port=8081): Max retries exceeded with url: /?action=snapshot (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fdc4d712e50>: Failed to establish a new connection: [Errno 111] Connection refused',)))
it means TSD plugin can't access the configured webcam URL.
Most likely you will see Connection error. Please check OctoPrint's internet connection..
This error is quite general and vague (because it needs to be understadable for users who are not tech-savvy). You can do a few things to dig further:
-
SSH to the computer on which OctoPrint runs, most likely a Raspberry Pi, and test the connectivity to your server by running
curl http://your_serer_ip:3334/
. If the connection to the server is successful, you won't see any error message. If, instead, you see error messages such ascurl: (7) Failed to connect to 10.0.2.2 port 333: Connection refused
, you need to fix the connectivity issue (could be routing, firewall, etc) from your OctoPrint to your server. -
Check server logs by running
cd TheSpaghettiDetective && sudo docker-compose logs web
. Look for errors in the output.