New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OctoPrint randomly changes from "Printing" to "Offline" #3043
Comments
As a secondary test, I've uploaded a G-code file to the SD card via the OctoPrint web interface and printed it without issue. This leads me to believe it could be a comms issue between the Pi and the printer? I've tried to connect via USB cable instead but get the following after ~10s so haven't been unable to progress any further down that avenue.
I'm also unable to control anything while OctoPrint does say it's connected. |
I fear in order to be able to analyse this I'll really need a |
I've just run it again (with a different G-code) and the Serial logging turned on. I've attached the G-code, hopefully that might help. Unfortunately the terminal output for this one didn't autoscroll and has buffered/hidden the rest of the output. I did manage to get the serial log though, so I've attached that too. G-code: https://gist.github.com/worgarside/2070626a5a0e6c5450f300d852daef9e Serial log: https://gist.github.com/worgarside/0448b5b48dcd5b186d7d72d8f20dc958 |
I thought it might've been a hardware problem, so I tried a few different things:
but the error still occurs on all of these. My next attempt was to install OctoPrint onto Raspbian rather than using OctoPi, but I couldn't get the Pi to see the printer serial port. (I checked the user groups etc. and ran I'm going to wipe my microSD card tonight and put a fresh OctoPi onto it and see if that helps at all. |
Uhm... I do not see a "random switch to Offline" in that |
The preview on GitHub is truncated, not sure if you viewed the full raw file or not - the switch off is at 2019-02-09 16:00:02,977:
|
Argh, I overlooked that it was truncated. Thanks for the heads-up. Yeah, so, that looks like someone had called "disconnect" and then "connect" right away. Do you use any third party applications with OctoPrint that could be causing this? I suggest to set the |
Oh!!! So I noticed that when the Pi started up, it was never automatically connected to the printer (despite having the box checked). I actually saw this issue with OctoPi earlier which might solve it anyway. However - my solution was to cron a simple Python script that would ping Might seem like a weird thing to cron, but I have been logging temps etc. with Home Assistant and I hated having empty gaps when the printer wasn't connected. I'm going to turn off the cron, then leave it on a test an see whether it prints the full thing, will report back later. |
That depends on what exactly you've done with "pinging" it. If you are just calling |
Yes, I'm I'm fairly new to world of APIs - just so I'm clear, the reconnection part of |
I ran a 6 hour print overnight last night and it completed (with all previous plugins inc. Octolpase) just fine :) Happy to close this issue now @foosel if you want :) |
Don't worry about it, just glad this is solved. :)
No, this is something that definitely should have been documented, which I have done in the above commit. Already live here: http://docs.octoprint.org/en/master/api/connection.html#issue-a-connection-command
Happily closing :D |
I've been having problems with my Prusa i3 stopping randomly part way through prints recently when printing through OctoPrint. Overnight it went from printing perfectly running multiple plugins (including recording via Octolapse) to crashing partway through a print. I've tried disabling all plugins - I did keep Octolapse but I wasn't using it - and rebooting etc. but it's happened upwards of a dozen times now. When I print directly from the SD card the prints come out fine.
For the last print this happened on, the only plugins installed were Octolapse (not recording though, camera not even connected) and Pusbullet. It stopped after literally 3 minutes of the first layer. Nothing else is running on the pi - I feel like I've tried everything I can think of short of reinstalling OctoPi and starting from scratch.
What were you doing?
What did you expect to happen?
For the print to finish
What happened instead?
OctoPrint changed from "Printing" to "Offline"
Did the same happen when running OctoPrint in safe mode?
Currently testing in safe mode. Will update accordingly.Have tested in safe mode, the same error occurred. The print head abruptly stopped moving after ~50 minutes but the heating remained on. I have attached a photo of this instance at the end.
Version of OctoPrint
1.3.10
Operating System running OctoPrint
OctoPi 0.15.1
Printer model & used firmware incl. version
Genuine Prusa i3 Mk3 running Prusa-Firmware 3.4.1
Browser and version of browser, operating system running browser
Chrome v71 on Windows 10
Link to octoprint.log
Original log:
https://gist.github.com/worgarside/730f1b650feba984267b31bb76302cd6
The print was started at 2019-02-09 08:57:27,818 (right at the bottom of the log)
Safe Mode log:
https://gist.github.com/worgarside/d14c3c6c4ce97233498fe19a9be07b90
I've removed the part of this log that was included in the previous one for simplicity's sake. The first line of this log is the last line of the previous to show continuity.
Link to contents of terminal tab or serial.log
Unfortunately no terminal output captured.
Link to contents of Javascript console in the browser
Nothing to report here. Have attached it for the sake of it though:
Screenshot(s)/video(s) showing the problem:
This was after the safe mode test
https://photos.app.goo.gl/g9awg2q1sDqs9GPh8
This was ~15-20 mins after the crash. I manually raised the print head and the hot end and bed were both still being heated.
I have read the FAQ.
The text was updated successfully, but these errors were encountered: