How-To Trouble-Shoot

How-To Troubleshooting

The following is a collection of general troubleshooting tips. These should be followed before posting a Request for Help

  1. Basic Troubleshooting
  2. Connection Problems to the Printer Board
  3. Linux dmesg
  4. Works when cold, but stops working when hot or moving

Note:

  • Approximately 50% of typical problems are due to the items discussed below.
  • Another 49.8% are configuration problems
  • The last 0.2% could be either bugs or are just designed as is.

Basic Troubleshooting

  1. Check your wiring / jumper settings against the printer board specification. Often the schematics and pinouts can be found on GitHub. Some examples:
    • BIGTREETECH: Board name → Hardware → xxx_PIN.pdf / xxx_SCH.pdf
    • Makerbase: Board name → Hardware → xxx_PIN.pdf / xxx_SCH.pdf
    • FYSETC
  2. Physically check the wiring
    • Are all connectors properly seated?
    • Are any cables damaged / frayed (often they break in the connector)?
  3. Start with a ā€œbare metalā€ printer.cfg. This will help exclude outside contributors and make it easier for the support people here to spot problems. Work from the ground up
    • Use an official config from Klipper or a known good source like Voron etc.
    • Remove macros that are not needed for basic operation (we see a lot of configs where basic operation has never worked, but contains a mile of additional macros from unknown sources/quality).
    • Remove webcams / displays
  4. Take extra care to have followed the official installation procedure
    • If in doubt, do it again
    • Carefully watch the output of each step. There should be no error messages (they sometimes ā€œhideā€ a few lines above).
  5. Consult the klippy.log file
    • Typically found in either /tmp/klippy.log or ~/printer_data/logs/klippy.log.
    • Start at the bottom and scroll up until you find something that looks like an error message. This message often contains helpful hints. Once you have found an error message, see the collection of common error messages for more ideas on how to fix it.
    • If you see the message dirty in the log, your Klipper installation contains unknown modifications. Remove them / make sure you install a clean Klipper from the official source.
  6. Exclude faulty hardware
    • Try if a component, e.g. stepper, works in slot A but not in slot B
    • Try if a component, e.g. stepper, works when connected to TMC driver A, but not when connected to TMC driver B
    • Check if the whole system works when removing e.g. a BLtouch, MAX31865 board or ADXL345 etc.
    • One faulty component can cause several other components to fail, especially if they are connected to the same SPI bus on the printer board, for example.

Connection Problems to the Printer Board

If the above steps have been followed and Klipper is still unable to connect to the printer board, the following steps may help

  1. Run ls /dev/serial/by-id/*.
    • The result should look similar to /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0.
    • If not, check your USB connection/cable and hardware as described above.
  2. Repeat flashing the printer board firmware
    • Take extra care to follow the instructions at the top of the official config files during the make menuconfig process.
    • Also pay attention to any instructions there on how to flash the firmware to the board. Often there are small things to be aware of, like not using the same filename twice.
    • When using the make flash FLASH_DEVICE=... command, watch the output closely for any error messages.
  3. Follow the directions in the next chapter and analyze how the board registers in the Linux operating system

Linux dmesg

The dmesg command presents boot and hardware-related messages from the kernel ring buffer, making it an invaluable tool for identifying Linux issues.
Regarding Klipper, it supplies diagnostic data about the printer board’s connection process and offers hints if that procedure is not functioning properly or is getting disturbed.

:warning: dmesg will print a lot of information. Some of it may be printed in red, which seems to indicate an error. Actually, it may or may not be true: Much of this information is developer related, and even if it is displayed as an error, it may be handled gracefully internally and is not really a problem. The average user can safely ignore most of these messages unless they are trying to diagnose problems.

  1. Turn on the printer so that the printer board is powered up.
  2. Unplug the printer board from the USB port on your SBC/computer.
  3. Reconnect the printer board to the SBC/computer.
  4. Run sudo dmesg -e and analyze the last handful of lines
    • Run sudo dmesg > dmesg.txt and post the ā€˜dmesg.txt’ file if you need help interpreting the results.

A properly flashed board should look like this

[127913.638806] usb 5-1: new full-speed USB device number 25 using ohci-platform
[127913.873733] usb 5-1: New USB device found, idVendor=1d50, idProduct=614e, bcdDevice= 1.00
[127913.873755] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[127913.873761] usb 5-1: Product: lpc1769
[127913.873765] usb 5-1: Manufacturer: Klipper
[127913.873769] usb 5-1: SerialNumber: 0C70001625813AAF86E06B5CC32000F5
[127913.877920] cdc_acm 5-1:1.0: ttyACM0: USB ACM device

Depending on the way the USB connection is done in the hardware, the output could also look like:

[Jan21 08:59] usb 1-1.1.2: new full-speed USB device number 5 using dwc_otg
[  +0.132990] usb 1-1.1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[  +0.000041] usb 1-1.1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[  +0.000016] usb 1-1.1.2: Product: USB Serial
[  +0.101720] usbcore: registered new interface driver usbserial_generic
[  +0.001835] usbserial: USB Serial support registered for generic
[  +0.008218] usbcore: registered new interface driver ch341
[  +0.005789] usbserial: USB Serial support registered for ch341-uart
[  +0.000458] ch341 1-1.1.2:1.0: ch341-uart converter detected
[  +0.003521] usb 1-1.1.2: ch341-uart converter now attached to ttyUSB0

The output, where e.g. BRLTTY or the ModemManager has interfered with the board’s connection, would look like:

[  148.243510] usb 1-2: USB disconnect, device number 4
[  161.472108] usb 1-2: new full-speed USB device number 5 using xhci_hcd
[  161.621853] usb 1-2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[  161.621873] usb 1-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[  161.621881] usb 1-2: Product: USB Serial
[  161.631484] ch341 1-2:1.0: ch341-uart converter detected
[  161.632130] usb 1-2: ch341-uart converter now attached to ttyUSB0
[  162.258424] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input18
[  162.385361] usb 1-2: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[  162.386054] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[  162.386084] ch341 1-2:1.0: device disconnected

To handle such events, please refer to BRLtty / ModemManager - Services Interfering with Klipper

General notes:

  • This block will also appear in dmesg when there’s a FIRMWARE_RESTART.
  • If the dmesg output repeatedly shows this block without a FIRMWARE_RESTART, or if you are experiencing failed prints and messages like this, it indicates an unstable connection between the SBC and your printer board.
  • Scroll through the complete output of dmesg. Additional error messages (which are often printed in red), particularly ones related to USB, may also contribute to a malfunctioning or unstable Klipper installation.

The system works when cold, but ceases to function when it becomes hot or is in motion

If the issues only occur when the printer is hot and/or moving, the following may help:

  • Wiring issues, such as pre-damaged cables and flaky connectors, tend to appear dominantly when subjected to movement or heat.
  • Heating cartridges tend to fail when they get hot.
  • The power supply used may be too weak, particularly when high bed and nozzle temperatures are utilized. Decrease the load by lowering the temperature. If the problem disappears, it is a strong indication of this type of issue.
4 Likes
BRLtty / ModemManager - Services Interfering with Klipper
Just another "Got EOF when reading from device" issue
Klipper configuration file not located in 'config' folder
Mcu 'mcu': Unable to connect after emergency stop
Help with sensorless homing and pinda probe
How to get the Controller fan to turn on at power up?
Klippy won't connect
Pid_calibrate interrupted
Could it be a blank space in the PIN name?
Extruder not hot enough
Doubts create dirs and cfg files in Fluidd
BTT Manta M8P Pi fan
Probe virtual endstop only useful as endstop pin
Priority of [include....]
Getting orange pi 3 lts + klipper working with anycubic kobra 2 neo
Doubt about print limits
Defining the position of a dockable probe on a Delta printer
Unable to extract params from: query_thermocouple - PT100 CANBUS EBB42
Printing on the Same Line Height/Z-Axis Issues
Mcu Unable to connect raspberry pi
Speed and Lift_Speed Calculations for T8 Leadscrew
USB port changes
About the Knowledge Base category / Table of Contents
BTT SKR 1.4 Turbo unable to connect to Pi/Octopi/Klipper
Stuck in boot loop after update
Double 5015 part cooling fan - 1st in FAN0 and 2nd in FAN1 connector. Possible with klipper?
Calibration prints
Two Z endstops plus probe with an IDEX printer
Heat hot end while running bed_mesh_calibrate
UPDATE error and I got the error message
New sprite kit causing printer restart
Printer for 0.02 layer high?
Help with Fluidd
Bug? Danged If I Know
Hi , Printer ocasionally crash
Second MCU address for temp sensor
No serial found
Web Browser tab names
Save Zoffset between print jobs
Update Octopuus Pro 429
Endstop y still triggered after retract - Ender3 V2 with BLTouch
Pressure advance in multihead
To help any flsun super racer users
LDM slicer? Anyone know of one?
Delay in temp readings, causing shutdown
Missing configuration
How can I force an out of range movement?
Canboard.... my war
Z lifts on decreasing y motion when printing brim
Oids already allocated
How the important its define UART pin in CFG?
System history restore
My rpi host can't connect to Klipper
Closed printer not extruding
Extruder selection button in Mainsail
Homing to -0.01
Cancel Print followed by G28 fails
Unusual dual head printer - looking for advice
Getting Two Z_axes and one Endstop w/out Four Wires?
Several errors causing Lost communication with MCU 'mcu'
Flying Bear reborn2
Timer too close, trying to understand log files
Unable to connect to MCU after update
Controlling two "fans" for cooling
Lost connection to MCU
Dudes how configure "spreadCycle" vs "stealthChop" in extruder
CANBus_Query.py not returning EBB36's UUID. Setup: Pi 4, Octopus v1.1, EBB36 v1.2
Probe_Calibrate does not function correctly or within a normal range?
Sudden MCU Shutdown During Print
Fine tuning extruder steppersetup
Ender 6 w/ OctoKlipper
Ls /dev/serial/by-id/* no longer works - WORKAROUND
Template syntax error
Btt SKR 3 EZ Bltouch not opperating
Ender 3 V2 Neo with Sprite Pro printer.cfg
Getting skips in my extruders if extruding 1 color through a mixing hotend
Modded Ender 3 Pro + CR Touch
After update i cant connect
Trouble installing klipper on a Ender 6
Start print homing after tall print - is this a bug?
Z height changed after QUAD_GANTRY_LEVEL
SKR 1.4 klipper NO MCU FOUND!
Ender 6 Triple Z tile moves in the wrong direction but Z Home is correct on all 3 steppers
Doubts in Ztilt and Bed Mesh
Tmc2209 current
"MCU 'mcu' shutdown: Timer too close" when homing
What does this error message mean?
Temperature log
It is not possible to cancel printing immediately after the start, until the heating occurs!
Klipper not flashing or not connecting
FIRMWARE_RESTART always fails
How set Save_config_pending_items to {} in a macro?
"mcu" unable to connect
I don't know how to git the address of my muc pi?
CR-Touch Help - hiting bed hard
Turn webcam from Klipper
SKR 1.4 klipper NO MCU FOUND!
Bl-touch, probe calibrate, and fine adjustments aren't working? IDK, I am stupid. Sorry
MCU _problem_ cannot access '/dev/by-id/'
Creality 4.2.7 mainboard bricked?
No MCU Found (Another one) - Linux MBP
SKR 1.4 klipper NO MCU FOUND!
How many can bus can you conect to rpi
Reflashed klipper (ender v3 se) and now getting mcu error
Mainsail and klipper will not connect SV01
Reflashed klipper (ender v3 se) and now getting mcu error
Installing Klipper with KIAUH
CR6SE printer firmware installation has consistently failed
Heater Bed Temperature is increasing without heating
Possibly Bricked my board
Might have smoked my motherboard
My Ender 3 v3 se is not connecting to klipper
Ender 3v2 Neo Custom
SOS! Lost communication with MCU!
Can't get klipper on creality V4.2.7
Help needed for BTT SKR v1.4
GY-521 (MPU-6050) No accelerometer measurements found
Mainsail won't connect
Getting orange pi 3 lts + klipper working with anycubic kobra 2 neo
Klipper don't connect the printer
Klipper Not Running after Ender Sprite Pro installation
How-to prevent bed drop during config save restart (Z Belted printer)
Klipper not flashing to Ender3v2
Issues flashing the printer board
RP2040-Zero not recognised by pi
'mcu': Unable to connect
Why did my steppers suddenly going backwards and nozzle start scraping the bed on a subsequent print?
Usbserial module not registering USB Serial support for ch341-uart
PB to connect to MCU after update
New Timer Too Close... Need Help
Can reflash Klipper in MCU?
No conecta klipper skr mini v3
Xmax 3 not connecting to klipper
MCU safety control
Printer Stops Randomly Mid-Print
Implementing Klipper through a Raspberry Pi 4 on a Duet 6XD board
Implementing Klipper through a Raspberry Pi 4 on a Duet 6XD board
Implementing Klipper through a Raspberry Pi 4 on a Duet 6XD board
Complete utter chaos
Suddenly mcu unable to connect Vzbot/bttcb1
Cannot connect to the mcu
Option 'pin' is not valid in section 'heater_bed'
Having some trouble with variables
Move out of range: 37.259 -49.197 1.000 [0.000]
Printer shows ADC error when turning on the printer
Klipper delta bed mesh/ z height issues
MCU problem for two instances of klipper
M109 in start gcode not working?
Canboard 2 firmwares?
Mcu: Serial connection closed / Timeout on connect / Wait for identify_response
Cap. Sensor, Inductive Sensor, and Missed mm due to Risers
Unknown commands and double bed meshing
SET_VELOCITY_LIMIT for Z-axis on Cartesian
Nozzle Scoring Print Bed
Pwm_cycle_time causes random heater_bed error