# Moonraker can't connect to Klipper!

**URL:** <https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678>\
**Category:** General Discussion\
**Created:** [April 6, 2023, 3:11pm UTC](https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678 "2023-04-06T15:11:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ccubanito](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@Ccubanito](https://klipper.discourse.group/u/Ccubanito)\
**Post date:** [April 6, 2023, 3:11pm UTC](https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678/1 "2023-04-06T15:11:59Z")

</div>

### Basic Information:

Printer Model: Ender 3 V2  
 MCU / Printerboard: 4.2.7  
 `klippy.log`

 ![Screenshot_2023-04-06_11-10-48](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/9/99d5d62640a7fb3ea7b5cbf5d505632c39af2708.png)

### Describe your issue:

Everything was working fine and today I get this error. Moonraker can’t connect to Klipper!

Please check if the Klipper service is running and klippy\_uds\_address is correctly configured in the moonraker.conf.

---

<div class="post-metadata">

**Author:** ![theophile](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/theophile/32/31_2.png) [@theophile](https://klipper.discourse.group/u/theophile)\
**Post date:** [April 6, 2023, 7:39pm UTC](https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678/2 "2023-04-06T19:39:44Z")

</div>

Is the Klipper service running? Is the klippy\_uds\_address correctly configured in the moonraker.conf?

---

<div class="post-metadata">

**Author:** ![Ccubanito](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@Ccubanito](https://klipper.discourse.group/u/Ccubanito)\
**Post date:** [April 7, 2023, 4:57pm UTC](https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678/3 "2023-04-07T16:57:12Z")

</div>

Everything seem to be fine. I ended up reinstalling klipper and moonraker. That took care of the issue. Still trying to figure out why it would happen in the first place. Im using a pc with linux mint. I tried tl rjn the commands to make sure klipper was tunning and kept getting errors

---

<div class="post-metadata">

**Author:** ![theophile](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/theophile/32/31_2.png) [@theophile](https://klipper.discourse.group/u/theophile)\
**Post date:** [April 7, 2023, 5:14pm UTC](https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678/4 "2023-04-07T17:14:00Z")

</div>

There’s a good chance those errors were telling you what the problem was.

---

<div class="post-metadata">

**Author:** ![im\_jpw](https://avatars.discourse-cdn.com/v4/letter/i/e9bcb4/32.png) [@im\_jpw](https://klipper.discourse.group/u/im_jpw)\
**Post date:** [April 18, 2023, 6:02am UTC](https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678/5 "2023-04-18T06:02:18Z")

</div>

I’m having this same issue. Besides, reinstalling klipper and moonraker, what else did you have to do? For example, did you have to edit specific files, create specific files, etc.?

---

<div class="post-metadata">

**Author:** ![Ccubanito](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@Ccubanito](https://klipper.discourse.group/u/Ccubanito)\
**Post date:** [April 18, 2023, 12:59pm UTC](https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678/6 "2023-04-18T12:59:01Z")

</div>

As soon as I reinstalled it it worked fortunately I didn’t have to do anything else

---

<div class="post-metadata">

**Author:** ![im\_jpw](https://avatars.discourse-cdn.com/v4/letter/i/e9bcb4/32.png) [@im\_jpw](https://klipper.discourse.group/u/im_jpw)\
**Post date:** [April 21, 2023, 3:34am UTC](https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678/7 "2023-04-21T03:34:33Z")

</div>

I got it working somehow. I followed this gentleman’s guide because that is the touchscreen I would include with the system. After installing MainsailOS 64bit on the MicroSD, and doing the first boot, I then SSH’d into the RPi, installed [KIAUH](https://github.com/th33xitus/kiauh) following Th33xitus’ instructions, and installed KlipperScreen (I know that isn’t relevant for this issue in this thread.) I then uploaded the needed printer.cfg file for my printer via SFTP. Then, I went to the mailsail.local page and updated everything installed via the Update Manager. Did a hard reboot. Then went to the [Klipper](https://www.klipper3d.org/Installation.html) Installation Instructions and followed the commands for “Building and flashing the micro-controller” so that I would be able to connect to the printer itself, via SSH. It wasn’t working for a bit, keep restarting and restarting firmware, etc. So I ran a shutdown command via SSH on the RPi, and let it turn off completely. Removed the power supply connected to the RPi, then reconnected and turned it back on, and everything is connected and working now.

Good times for a week of frustration 😂

---

<div class="post-metadata">

**Author:** ![hrothgar](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@hrothgar](https://klipper.discourse.group/u/hrothgar)\
**Post date:** [September 9, 2023, 3:57pm UTC](https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678/8 "2023-09-09T15:57:05Z")

</div>

Hi! - I just ran into this issue at home. I am using an OrangePi 5 for my homelab to run mainsail in. In my case, the error code pointed to check my moonraker.config section under:

klippy\_uds\_address: /home/pi/printer\_data/comms/klippy.sock

Because this is an OrangePi, by default my user was orangepi and not pi. All I had to do was fix this in the kluppu\_uds\_address path :

klippy\_uds\_address: /home/orangepi/printer\_data/comms/klippy.sock

I also doubled check that the service was running with systemctl status klipper.service

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

Hope this helps!

---

<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:** [April 24, 2024, 1:46pm UTC](https://klipper.discourse.group/t/moonraker-cant-connect-to-klipper/7678/9 "2024-04-24T13:46:36Z")

</div>

Closed on April 24, 2024, 1:46pm UTC


