# Klipper says it cant find the printer.cfg?

**URL:** <https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277>\
**Category:** General Discussion\
**Created:** [August 15, 2024, 1:36am UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277 "2024-08-15T01:36:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhinomanj](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rhinomanj](https://klipper.discourse.group/u/rhinomanj)\
**Post date:** [August 15, 2024, 1:36am UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277/1 "2024-08-15T01:36:09Z")

</div>

# 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](https://github.com/Klipper3d/klipper.git)  
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

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [August 15, 2024, 5:23am UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277/2 "2024-08-15T05:23:18Z")

</div>

> [@rhinomanj](#):
>
> FileNotFoundError: [Errno 2] No such file or directory: ‘/home/pi/printer\_data/config/printer.cfg’

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.

---

<div class="post-metadata">

**Author:** ![rhinomanj](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rhinomanj](https://klipper.discourse.group/u/rhinomanj)\
**Post date:** [August 15, 2024, 1:39pm UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277/3 "2024-08-15T13:39:30Z")

</div>

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?

 ![image](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/7/7be3c0d6ec1369546636421342ae0291ff3dfe1a.png)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [August 15, 2024, 7:30pm UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277/4 "2024-08-15T19:30:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rhinomanj](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rhinomanj](https://klipper.discourse.group/u/rhinomanj)\
**Post date:** [August 15, 2024, 8:45pm UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277/5 "2024-08-15T20:45:20Z")

</div>

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

> **(attachments)**
>
> [klippy.log](https://klipper.discourse.group/uploads/short-url/h7lOL6l3Y2eo55283chFdxrvpRi.log) (253 KB)  
> [printer.cfg](https://klipper.discourse.group/uploads/short-url/gMu79lQsiT1LAVUKUGoasYEWtkS.cfg) (16.6 KB)

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [August 16, 2024, 4:58am UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277/6 "2024-08-16T04:58:30Z")

</div>

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

There is a different issue:

```auto
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?

---

<div class="post-metadata">

**Author:** ![rhinomanj](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rhinomanj](https://klipper.discourse.group/u/rhinomanj)\
**Post date:** [August 16, 2024, 5:22pm UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277/7 "2024-08-16T17:22:28Z")

</div>

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)**
>
> ![1000005868.jpg](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/8/81bef4f94bb3f258feb643de59f805973057e267.jpeg)

---

<div class="post-metadata">

**Author:** ![rhinomanj](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rhinomanj](https://klipper.discourse.group/u/rhinomanj)\
**Post date:** [August 16, 2024, 5:30pm UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277/8 "2024-08-16T17:30:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rhinomanj](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rhinomanj](https://klipper.discourse.group/u/rhinomanj)\
**Post date:** [August 16, 2024, 5:56pm UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277/9 "2024-08-16T17:56:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [September 16, 2024, 3:56am UTC](https://klipper.discourse.group/t/klipper-says-it-cant-find-the-printer-cfg/18277/10 "2024-09-16T03:56:31Z")

</div>

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