Klipper says it cant find the printer.cfg?

I have voron 2.4 Rev c, I am trying to run Mainsail on an Octopus 1.1
The Klippy log file says it cant find printer.cfg ?
The Console shows all components installed.
I can run WCSP and see the printer.cfg file exactly where the klipper log says it cant find in?
Any suggestions ?

=============== Log rollover at Thu Aug 15 00:01:28 2024 ===============
Starting Klippy…
Args: [‘/home/pi/klipper/klippy/klippy.py’, ‘/home/pi/printer_data/config/printer.cfg’, ‘-l’, ‘/home/pi/printer_data/logs/klippy.log’, ‘-I’, ‘/home/pi/printer_data/comms/klippy.serial’, ‘-a’, ‘/home/pi/printer_data/comms/klippy.sock’]
Git version: ‘v0.12.0-278-g3f2ef88e’
Branch: master
Remote: origin
Tracked URL: GitHub - Klipper3d/klipper: Klipper is a 3d-printer firmware
CPU: 4 core ?
Python: ‘3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]’
Start printer at Thu Aug 15 00:01:29 2024 (1723676489.9 36.1)
Unable to open config file /home/pi/printer_data/config/printer.cfg
Traceback (most recent call last):
File “/home/pi/klipper/klippy/configfile.py”, line 162, in _read_config_file
f = open(filename, ‘r’)
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/pi/printer_data/config/printer.cfg’
Config error
Traceback (most recent call last):
File “/home/pi/klipper/klippy/configfile.py”, line 162, in _read_config_file
f = open(filename, ‘r’)
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/pi/printer_data/config/printer.cfg’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/pi/klipper/klippy/klippy.py”, line 130, in _connect
self._read_config()
File “/home/pi/klipper/klippy/klippy.py”, line 116, in _read_config
config = pconfig.read_main_config()
File “/home/pi/klipper/klippy/configfile.py”, line 285, in read_main_config
data = self._read_config_file(filename)
File “/home/pi/klipper/klippy/configfile.py”, line 168, in _read_config_file
raise error(msg)
configparser.Error: Unable to open config file /home/pi/printer_data/config/printer.cfg
webhooks client 548458669344: New connection
webhooks client 548458669344: Client info {‘program’: ‘Moonraker’, ‘version’: ‘v0.9.2-6-gf735c04’}
webhooks client 548458669344: Disconnected
Restarting printer
Start printer at Thu Aug 15 00:04:01 2024 (1723676641.8 87.9)
Unable to open config file /home/pi/printer_data/config/printer.cfg
Traceback (most recent call last):
File “/home/pi/klipper/klippy/configfile.py”, line 162, in _read_config_file
f = open(filename, ‘r’)
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/pi/printer_data/config/printer.cfg’
Config error
Traceback (most recent call last):
File “/home/pi/klipper/klippy/configfile.py”, line 162, in _read_config_file
f = open(filename, ‘r’)
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/pi/printer_data/config/printer.cfg’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/pi/klipper/klippy/klippy.py”, line 130, in _connect
self._read_config()
File “/home/pi/klipper/klippy/klippy.py”, line 116, in _read_config
config = pconfig.read_main_config()
File “/home/pi/klipper/klippy/configfile.py”, line 285, in read_main_config
data = self._read_config_file(filename)
File “/home/pi/klipper/klippy/configfile.py”, line 168, in _read_config_file
raise error(msg)
configparser.Error: Unable to open config file /home/pi/printer_data/config/printer.cfg
webhooks client 548458672080: New connection
webhooks client 548458672080: Client info {‘program’: ‘Moonraker’, ‘version’: ‘v0.9.2-6-gf735c04’}
webhooks client 548458672080: Disconnected
Restarting printer
Start printer at Thu Aug 15 00:07:47 2024 (1723676867.6 313.7)
===== Config file =====
[virtual_sdcard]
path = ~/printer_data/gcodes
on_error_gcode = CANCEL_PRINT

As the error message say: The printer.cfg that is supposed to be in /home/pi/printer_data/config/ is missing.

Next time please stick to the provided template for the required information.

Hi Sineos, thank you for the reply. I will go look for the template? However, per WCSP … the file is exactly where it says its supposed to be?

This seems strange. Please attach the klippy.log and printer.cfg

Here are the two files. Let me know if any of the header files are also needed ?

(attachments)

klippy.log (253 KB)
printer.cfg (16.6 KB)

As for the klippy.log, the printer.cfg is found.

There is a different issue:

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

Is the printer connected properly?
Is the printer flashed with the proper firmware?

Thank you for the reply.

  1. Is the printer connected properly? I think so. I am using the octopus 5V PI shield that was provided to power the PI4. I also have the USB connecting from the Octopus USB A to the PI USB C. I have confirmed that only the 5V is powering the PI. I assume the USB is only for Comms between Pi ↔ Octopus but i am not sure how to verify that?
  2. Is the printer flashed? I think so but how do I check … I followed the steps in the Klipper guide. I copied the Firmware.bin file from the PI Sd Card to the Octopus SD Card using WSP. When I run “ls /dev/serial/by-id/” it returns the serial number that I have pasted into my printer.cfg file? Is there something else I can do ?

Thanks in advance for your help

Is there a paid support service anywhere to which a user can subscribe?

(attachments)

Sorry, I mis-quoted the USB set up. I have the USB cable from Octopus USB-C to PI USB-A.

I found it. I had a dash where I needed and Under_score in the device name. Thanks again.

1 Like

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