# Moonraker is looking in the wrong place?

**URL:** <https://klipper.discourse.group/t/moonraker-is-looking-in-the-wrong-place/5282>\
**Category:** General Discussion\
**Created:** [December 8, 2022, 5:27pm UTC](https://klipper.discourse.group/t/moonraker-is-looking-in-the-wrong-place/5282 "2022-12-08T17:27:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChiDem](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@ChiDem](https://klipper.discourse.group/u/ChiDem)\
**Post date:** [December 8, 2022, 5:27pm UTC](https://klipper.discourse.group/t/moonraker-is-looking-in-the-wrong-place/5282/1 "2022-12-08T17:27:02Z")

</div>

### Basic Information:

Printer Model: Ender 3V2  
 MCU / Printerboard: BTT mini E3V3  
 [klippy (6).log](https://klipper.discourse.group/uploads/short-url/cuiHfF2NYl2em9HCeHmfh9s8ubX.log) (126.5 KB)

_Fill out above information and in all cases attach your_ `klippy.log` _file. Pasting your_ `printer.cfg` _is **not** needed_

I was trying to configure some webcams using crowsnest. I did not have the printers on. I altered the moonraker.conf and mainsail.cfg. Now I cannot connect with the mcu.

My installation is a Evoke III laptop with Mint xfce installed. My printers and webcams are connected via powered USB hub, to the USB3 on the Evoke. Yesterday this configuration worked.

Now moonraker is warning:

file\_manager: Klipper configuration file not located in ‘config’ folder.

Klipper Config Path: /home/galactus/E3V2\_data/config/printer.cfg

Config Folder: /home/galactus/BiquB1\_data/config

My mainsail cfg is:

[virtual\_sdcard]

path: /home/galactus/E3V2\_data/gcodes

My moonraker conf is:

[server]

port: 7125

klippy\_uds\_address: /home/galactus/E3V2\_data/comms/klippy.sock

What am I missing? Where can I edit the config folder for moonraker?

---

<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:** [December 8, 2022, 6:23pm UTC](https://klipper.discourse.group/t/moonraker-is-looking-in-the-wrong-place/5282/2 "2022-12-08T18:23:49Z")

</div>

> <https://github.com/Arksine/moonraker/issues/516>
>
> \### UPDATE 10/15/2022:
> 
> Some users have experienced errors during the update p…rocess. For users of MainsailOS and FluiddPi with a default installation I have pushed a script that should recover Moonraker. Run the following commands via ssh:
> 
> \`\`\`
> cd ~/moonraker
> git pull
> ./scripts/data-path-fix.sh
> \`\`\`
> 
> \### ORIGINAL
> 
> An upcoming addition to Moonraker will change how files and folders are configured and managed in Moonraker. All folders and files managed by Moonraker will be contained within a \`data path\` configured in the command line. Options such as \`config\_path\` and \`log\_path\`, \`secrets\_path\`, etc. will be deprecated.
> 
> A detailed description of the changes can be found in pull request #491. The current plan is to merge #491 on Friday, October 14th. The changes to the configuration file and system service are automated for most installations, however the user's root password may be necessary if Moonraker does not have sudo access. In this scenario Moonraker will generate a \`Sudo Password Required\` announcement:
> 
> !\[mainsail\_sudo\](https://user-images.githubusercontent.com/9563098/186702296-3639f652-d923-4a05-b190-9042d2add5d4.png)
> 
> !\[image\](https://user-images.githubusercontent.com/9563098/193256720-ff158477-6151-45c7-bcd0-20cae5bf1991.png)
> 
> The incomplete update will generate several warnings so the announcement may not be at the very top of the notification panel. The user should click through the link (the title in Mainsail, \`More Information\` in Fluidd), which will take you to Moonraker's landing page:
> 
> !\[image\](https://user-images.githubusercontent.com/9563098/193257038-ad3d9400-df97-44cd-ba51-48ff9056bfb8.png)
> 
> Here Moonraker will request the password for the detected user (in the example above it is \`pi\`). After submission Moonraker will finish the update and prompt the user to close the tab/window:
> 
> !\[image\](https://user-images.githubusercontent.com/9563098/193259869-4960f088-ca7b-4920-99b2-4eae9c658350.png)
> 
> A Moonraker instance running on a non-debian distro or otherwise customized installation will likely need to perform these changes manually. It is possible to disable the automated changes in the \`machine\` configuration:
> \`\`\`ini
> \[machine\]
> validate\_service: False
> validate\_config: False
> \`\`\`
> 
> Update:
> 
> Power users and developers should be aware that debug options will also be removed from the configuration. There are various debug options available through the command line, which can easily be changed by modifying \`moonraker.env\` and restarting Moonraker. Details are \[available in the PR\](https://github.com/Arksine/moonraker/pull/491#issuecomment-1277319670).

---

<div class="post-metadata">

**Author:** ![ChiDem](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@ChiDem](https://klipper.discourse.group/u/ChiDem)\
**Post date:** [December 8, 2022, 10:59pm UTC](https://klipper.discourse.group/t/moonraker-is-looking-in-the-wrong-place/5282/3 "2022-12-08T22:59:32Z")

</div>

> [@Sineos](#):
>
> [Folder/Path configuration change · Issue #516 · Arksine/moonraker · GitHub](https://github.com/Arksine/moonraker/issues/516)

Unfortunately, this did not work for me. This was produced by the command: Already up to date.  
Error: unable to find config: /home/galactus/klipper\_config/moonraker.conf  
galactus@OctoKlipper:~/moonraker$

---

<div class="post-metadata">

**Author:** ![jrobbom5](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/jrobbom5/32/3187_2.png) [@jrobbom5](https://klipper.discourse.group/u/jrobbom5)\
**Post date:** [December 9, 2022, 12:43am UTC](https://klipper.discourse.group/t/moonraker-is-looking-in-the-wrong-place/5282/4 "2022-12-09T00:43:54Z")

</div>

Did you install klipper etc using kiauh? If so, take a look in ~/printer\_data/confg.

I notice that your username is not “pi”, I seem to remember reading something recently that one of the components (not klipper) is hardcoded to recognise the user as “pi” only, so if nothing else works, do a google search on that.

Finally, you can set the paths by editing /etc/systemd/system/klipper.service, you will need to use sudo to edit it. Here is my klipper.service for reference:

```auto
[Unit]
Description=Starts Klipper and provides klippy Unix Domain Socket API
Documentation=https://www.klipper3d.org/
After=network.target
Before=moonraker.service
Wants=udev.target

[Install]
Alias=klippy
WantedBy=multi-user.target

[Service]
Environment=KLIPPER_CONFIG=/home/pi/printer_data/config/printer.cfg
Environment=KLIPPER_LOG=/home/pi/klipper_logs/klippy.log
Environment=KLIPPER_SOCKET=/tmp/klippy_uds
Type=simple
User=pi
RemainAfterExit=yes
ExecStart= /home/pi/klippy-env/bin/python /home/pi/klipper/klippy/klippy.py ${KLIPPER_CONFIG} -l ${KLIPPER_LOG} -a ${KLIPPER_SOCKET}
Restart=always
RestartSec=10

```

---

<div class="post-metadata">

**Author:** ![ChiDem](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@ChiDem](https://klipper.discourse.group/u/ChiDem)\
**Post date:** [December 9, 2022, 4:05am UTC](https://klipper.discourse.group/t/moonraker-is-looking-in-the-wrong-place/5282/5 "2022-12-09T04:05:47Z")

</div>

Thanks, I appreciate the straightforward answer. Hopefully, this will help.

---

<div class="post-metadata">

**Author:** ![ChiDem](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@ChiDem](https://klipper.discourse.group/u/ChiDem)\
**Post date:** [March 28, 2023, 6:45pm UTC](https://klipper.discourse.group/t/moonraker-is-looking-in-the-wrong-place/5282/6 "2023-03-28T18:45:46Z")

</div>

I ended up waiting and reinstalling my instances. This solved my problem now I can access both printers and print on them simultaneously. Other problems remain (sending files to one via the slicer, but dropping files on the other), webcams not operating as expected. But, for now, its a usable setup. Thanks to all who helped this noob. Be well and happy!

---

<div class="post-metadata">

**Author:** ![sleegoo](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@sleegoo](https://klipper.discourse.group/u/sleegoo)\
**Post date:** [October 19, 2023, 3:51pm UTC](https://klipper.discourse.group/t/moonraker-is-looking-in-the-wrong-place/5282/7 "2023-10-19T15:51:33Z")

</div>

This fixed the error for me. Thanks so much! I just had to add the line:  
Environment=KLIPPER\_CONFIG=/home/pi/printer\_data/config/printer.cfg

---

<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:** [March 7, 2024, 9:31pm UTC](https://klipper.discourse.group/t/moonraker-is-looking-in-the-wrong-place/5282/8 "2024-03-07T21:31:12Z")

</div>


