If you are sure OctoPrint is powered on, but it is showing as "offline", follow these steps to figure out why.
Step 1: Make sure your token is configured correctly.
- Open OctoPrint page (not The Spaghetti Detective page). Open "Settings" by clicking the wrench icon.
- Scroll the sidebar to the bottom and click "The Spaghetti Detective".
- Make sure the secret token in the box is set correctly. If you are not sure how to get this secret token, you can find it in Getting Started.
- Click "Test" button.
- Make sure you see "Secret token is valid. You are awesome." (because you are).
- If the secret token is tested Ok, but The Spaghetti Detective page is still showing "OctoPrint is offline", move on to Step 2.
Step 2: Check the plugin's connection to The Spaghetti Detective server.
Your OctoPrint needs to have a good internet connection in order for the plugin to send webcam feed and print job status to The Spaghetti Detective server. To verify that:
- On The Spaghetti Detective settings page in OctoPrint (see Step 1), click "Got problems?".
- Click the "Check plugin self diagnostic report >>>" link.
- If there are no connection problems, you should see "There have been no connection errors since OctoPrint rebooted.".
- If, instead, you see these error messages, your OctoPrint has had issues to connect to The Spaghetti Detective server. Most likely it's because the Raspberry Pi (or whatever computer your OctoPrint runs on) has not had reliable internet connection.
Step 3: Turn on debug logging and look for the needle in the haystack.
Turn on debug logging and download
octoprint.log file (here is how). Open
octoprint.log file with your favorite editor and look for errors.