Thanks. Enclosed is the log file for your reference. Could you please have a look?
octoprint.log (98.3 KB)
I was surprised that there was no "server offline" error the past two days as it usually happened whenever I used the printer. Sometimes a few times a day. However, it happened again today. I saved the log file after I noticed the offline error. I don't know the exact time but it should have happened between Feb 15 12:40pm and 14:06pm. The time shown in the log are 5 hours ahead of my local time.
- It is a home wireless network.
- Distance between router and the RPi is about 18 feet (I walked from the router to the printer. As I walked, I had the left and right foot touching and in front of each other)
- Other clients on the network never have such issue.
- Same issue even I reinstalled Octoprint
I've recently had this issue as well with the Pi 4 and didn't have the issue on my other older one. What I've done so far is running a kernel update to the "latest available" rather than what raspberry foundation considers stable and so far it has been performing well. There were several weird things going on with the interface where it would think it had an IP but couldn't talk to client on a different wireless band (2G vs 5G), etc. So far since the update I haven't seen any weird things yet. If you want to give it a try these are the commands I used via SSH, there could be unwanted side effects that I haven't discovered yet.
sudo rpi-update
sudo apt update
sudo apt upgrade
1 Like
Thanks. From my log file, is there anything unusual? I am using a Pi4 4GB.
Of the two days that had no issue, I only had Octoprint connected to my desktop PC. On the 3rd day, occasionally I checked the video feed via a laptop. Could it be that the chance of getting "server offline" increases if connecting to Octoprint from more than one device? Shall keep an eye on this next time.
The log really just indicates that the pi's network connection was lost I think because it couldn't download the plugin list file.
Thanks for the suggestion with the commands to update. Have you encountered any unwanted side effects? If not, maybe I should give it a try.
Sometimes the real-time video feed shown under Control is a few seconds slower. For example, after I took out the print and closed the door of my enclosure, Control showed my hand taking out the print. It was so freaky! Could this be a related issue or a separate issue? Can the log file I submitted tell what went wrong?
I haven't seen any negative results, but I have also heard of other people that it didn't help their situation, so "results may vary" I guess.
Thanks. I will try. Does Pi 3B+ has this issue?
I've only seen this issue on Pi 4 personally.
1 Like
Thanks. Let's see how your approach works first. If it does not help and others have no solution, perhaps better to replace the Pi4 with a Pi 3B+.
Hi, I tried the approach but unfortunately I still get "server offline". Is using a Pi 3B+ instead of a Pi4 the only way to get rid of this problem?
Added: In just one afternoon, it went offline four times.
Going to need more info.
-
Assuming Pi connects to Wifi. Is it a router/firewall/access point combo or do you have other equipment? If a combo what model is it? If it's more complex what is the full topology?
-
2.4Ghz, 5Ghz ,or both? Have you tried one over the other?
-
Result of iwconfig
from SSH? (Strip SSID if you want)
-
Result of iw reg get
? Does this match your wireless regulatory domain?
-
Have you tried a regular ethernet connection?
-
Have you tried a USB wifi adapter?
-
Have you tried a different Pi?
-
Have you logged in via console(monitor) and ran dmesg
to look for errors when it occurs? If possible save it and provide the next time. dmesg > /home/pi/dmesg.$(date +%s).log
(I may be asking something that was previously answered, sorry if I missed it)
Hi, I got some info from the ISP.
-
I am using a Sagemcom FAST 5566. It is a moderm router combo with firewall built in.
-
Both 2.4GHz and 5GHz automatically.
-
I have not tried a regular ethernet connection as family members would complain.
-
I have not tried a USB wifi adapter as there is wifi builtin the Pi.
-
Yesterday when using a Pi4B, I got four server offline errors in one morning. Then, I changed to Pi3B+ in the afternoon. I got this error after using it for about 9 hours.
When I set up the Pi3B+, I recall a setting about testing connection every 5 minutes by default. How do I change it to every 1 minute? Do you think it will help?
You asked for the results of some commands. When the Pi is offline, I cannot connect to it via ssh. How do I issue commands and get the results? Are results immediately after the Pi is rebooted OK?
You can run the commands from the console using a monitor and keyboard or via serial console.
Thanks. I tried the Pi3B+ for a few days. It is a bit better but there are still shutdown issues. There are two folders under nightly and nightly-arm64. Shall I use the nightly one? There are lots of files inside that folder. How do I install it?
Hi, I have not encountered any server offline issue the past few days. Is this fixed in the latest version of Octoprint?
Octoprint itself never had this issue, it was an underlying wifi OS issue based on all the information gathered thus far.
I think @jneilliii s post sums it up so I'm closing this thread now.
1 Like