Voron can't connect to OctoPrint

Basic Information:

Printer Model: Voron 2.4r2
MCU / Printerboard: BigtreeTech STM32F446
klippy.log
klippy.log (141.9 KB)

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is 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 Voron with Raspberry Pi 4 Model B is unable to connect to Octoprint.
Tried Different USB-A to USB-C Cables
Tried Different USB ports on the Raspberry Pi
Tried to: sudo apt-get remove python-serial - Package ‘python-serial’ is not installed, so not removed
Tried to Reinstall Octoprint via ./kiauh/kiauh.sh

OctoPrint Version 1.9.3
When trying: ls -l /dev/serial/by-id/
Result:
total 0
lrwxrwxrwx 1 root root 13 Nov 10 16:05 usb-Klipper_stm32f446xx_070020001650335331383520-if00 → …/…/ttyACM0

OctoPrint Settings 2

Your error is not related to Octoprint:

mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/usb-Klipper_stm32f446xx_070020001650335331383520-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Klipper_stm32f446xx_070020001650335331383520-if00'

The connection between the Klipper host and your printer board is not working.

This is likely a wrong serial path in your printer.cfg since Klipper is telling you “No such file or directory”

What do I need to do to get the correct serial path?
printer.cfg (15.9 KB)

The command ls /dev/serial/by-id/* will give you the correct path

Please review what I have.
SSH Port

Could it be that my printer.cfg file is in the wrong folder or location?

This very much depends on the way how you installed Klipper and what you potentially customized.
According to your log:

Args: ['/home/Yuriy/klipper/klippy/klippy.py', '/home/Yuriy/printer_data/config/printer.cfg', '-I', '/home/Yuriy/printer_data/comms/klippy.serial', '-l', '/home/Yuriy/printer_data/logs/klippy.log', '-a', '/home/Yuriy/printer_data/comms/klippy.sock']

the printer.cfg is expected to be in /home/Yuriy/printer_data/config/printer.cfg

I checked that path and it has a printer.cfg file. I opened the file and it has the correct path for serial.
When logged into Octoprint it allows me to open the editor. That directly takes me to the printer.cfg file that I can edit.
I have taken a screenshot of the Klipper configuration. Maybe I need to edit something there?

I got Fluidd and Mainsail to connect. Installed Orca Slicer and that also connected.
Edited the printer.cfg to include [include mainsail.cfg]; [virtual_sdcard]; [display_status]; [pause_resume]
All seem to work.

In Octoprint I edited the Klipper Config Directory; Klipper Log File (directory).
Now all of the files load correctly when clicking on “Open Editor” and “Analyze Klipper Log”.
State remains Offline and Klipper is in Standby. When trying to connect in OctoPrint, nothing happens.

Klippy.log still shows:

mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/usb-Klipper_stm32f446xx_070020001650335331383520-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Klipper_stm32f446xx_070020001650335331383520-if00'

Updated Klippy.log file:
klippy.log (624.0 KB)

Directory

According to your last log, Klipper started up successfully. Maybe you have the wrong path setup in Octoprint. Try

/home/Yuriy/printer_data/comms/klippy.serial

That did it.
Thank you so much for guiding me through this.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.