Fill out above information andin all cases attach yourklippy.logfile (use zip to compress it, if too big). Pasting yourprinter.cfgis not needed Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there
Describe your issue:
…The last few larger prints I have tried have failed due to Klipper shutting down. It requires that it be powered off/on to get access to it via the local network (and ssh). The last time it happened I was watching it via webcam and the printer just stopped and connection to Klipper was lost.
This is a recent install of klipper & Mainsail OS on a raspberry pi 3b+. The printer is running on a Skr Mini 3.
I don’t see any issues in klippy.log or moonraker.log (but they are also filled with code and klippy.log lacks even timestamps to check for so I may simply be missing it).
The Raspberry PI is powered separately from the SKR Mini via a 5A wall “wart” power adapter.
Any ideas what to troubleshoot next? Or what logs to check?
I have looked at the klipper.log in the “klippylyzer” and “visualizer”. And the crash is right at the beginning of the log. Klipper crashes right in the middle of sending an status update. Then takes up again with “Staring klippy…”
Of the raspberry PI power supply? The issue also struck me as a power issue. I had added a tp-link power switch to the printer itself and I thought that might be the issue but I took it out of the equation and tried another print…same issue. Could this be the issue some people experience where power from the printer board is making things “weird” for a independently powered SBC? (the issue that people fix by taping over the USB cable’s power pin).
I’m not sure that I would call it a power failure right from the start, but you are correct: It looks like the RPi is spontaneously crashing - for whatever reason.
You could use the information from Raspberry pi crashing during "make" command - #17 by Sineos for example to stress-test your unit, and maybe you can watch it crashing live and in color.
Generally @EddyMI3D is right: Power supplies are good usual suspects on RPis but I have yet to see that
solved anything. For me, this is a bit of a myth and the actual root causes were something different.
Overnight Klipper crashed again without a print in process. I’m going to test various scenarios of having the individual things plugged into the Pi. I already determined that it will still crash with the HDMI5 LCD disconnected. Testing now a completely disconnected host.
I installed an adapter that cut the power in the Host SBC to SKR printer, I tightened up all of the USB ports, checked all of the connections…and it happened again For the second time, it happened while I was watching, but this time in person (as opposed to via Webcam). No noise, nothing indicating that failure was imminent. The printer simply stopped, then Kilpper crashes. I bought a new power supply for the Raspberry Pi but didn’t notice any power cut when it failed. I might as well try it.
Attached is the latest copy of the klipper log. This failure looks very much like the last
one.
Is it possible that the printer board (SKR mini e3) is overheating? I do have a fan on it but the printer itself is in my 92F (33C) garage.
The MCU has no independent temperature measurement (SKR Mini e3). The rPi is averaging mid 60C. I just ran the stress test from sysbench and temperatures topped out at 85C on the rPi and the rPi did not crash. The file and memory test also had no issues.
The wiring diagram is I think not abnormal. The only thing that might be is that I am using a heat bed controller because my previous controller, (Ramps 1.4 on a 8bit Mega 256 arduino) couldn’t power the bed.
Seems you’ve covered EVERYTHING except an intermittent fault on the Host (Pi) or the SKR.
Have you got any other computers laying around? I’d sub in a different host computer. ANYTHING that will run Ubuntu server will work. I used to run klipper on a celeron laptop with a busted screen and half the keycaps missing. Not as simple as clicking a SD card into a Pi but if you have a keyboard and monitor (or TV) to use during the install you are golden. Once you get Ubuntu running unhook the peripherals and boot headless. Then SSH in and install KIAUH, just like your Pi.
“The MOSFET driver you’ve linked to will not just have two lines from the main controller board and two lines to the heated bed.”
You are correct of course. It has two lines from the controller (skr). There aren’t any random wires connected to anything that shouldn’t have a wire connected to it. There are only 2 set of lines leaving the PSU, one to the SKR and one to the Heated Bed Controller. Updated diagram.
My next step is to redo all of the wiring from the skr to the hardware just in case. If that doesn’t help. I’m going to replace the pi. Then the power supply.
Could you please work at making the diagram easier to read? Get something like Libre Office Draw or use Google Slides. It takes about the same amount of time, much easier to read and you have a digital copy you can update.
Is there anything connected to the USB where you’ve written what looks like “HDMI5”, “USB” & “HDMIE” in the top left corner in the rotated image below.
Could you please provide the exact wiring in the yellow box below:
You have something that looks like a ground loop and I would like to understand exactly what are each of the eight lines are and where they’re connected on the different devices.
I took the bed heater controller out of the circuit entirely and the bed is now powered directly from the SKR Mini E3. Now the only lines from the PSU is to the SKR. Not a fix. I am seeing high re-transmit during the print. Is that indicative of a problem?
Klipper seems to be spontaneously restarted, which likely points to an unstable SBC that might either be hard crashing or the Klipper service is crashing. Try journalctl -u klipper.service -n 50 --no-pager right after the event.