-
-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Folder/Path configuration change #516
Comments
Small update: I have pushed back the merge date by a week, it is now October 14th. |
Can the sudo command be run manually or do we have to do it through moonraker? |
@chrisbdaemon It will be possible to use a script to set the password via ssh:
Alternatively, its possible to temporarily set the sudo password in the # moonraker.secrets
[sudo]
# replace "mypass" with your password
password: mypass Then in # moonraker.conf
[secrets]
secrets_path: ~/moonraker.secrets
[machine]
sudo_password: {secrets.sudo.password} Once the options have been set, restart Moonraker than update via the update manager. After the update is complete you can remove the |
whenever I click the mainsail title i reach this git and not the moonracker root request why? |
The changes haven't been merged yet, you are clicking through the announcement generated by this issue. The currently plan is to merge on October 14th. At some point after that you will update, which will send the |
FWIW, after testing I found an issue when attempting to use the install script to upgrade...it can't bring over the old database, so the process does not complete successfully. To provide an option for users that wish to finish the upgrade via ssh I have added a script, |
Well this broke my system, it boots up, and now I have no config files, when I try to print I get file not found and the only messages I have in my notifications are the update ones, this was after entering sudo password. |
Working on this now too. There was 7 notifications, totally gone after a restart, so I can't see what they were |
I can see what they are they just point me to these pages, but none of these say anything about what to do after the system changes, just cryptic lines of change information. I do not even know how the printer is able to boot into klipper, I cannot view my configs unless I ssh to them, and I do not know what is changed enough to know how to point paths that are missing or changed lol.... |
once i added sudo password, things just worked and no more warnings, etc. seems like it cleaned up a lot of the stuff i am using mailsail with klipper on an otherwise default install for a voron 2.4. |
Yeah I put in the sudo password it closed that screen and never did anything else just left me looking at the welcome to moonraker page. Now nothing. Printer boots up, I can control it via dashboard but cannot do anything with it other than change temps, look at updates that say "uptodate" etc. but cannot print, view logs, etc. I am not sure if I am supposed to move a folder, etc. Was just going to finish printing my Voron tonight, looks like thats a bust. Yeah my rig is a ender 3 s1 pro with mainsail/klipper installed from RPI Imager. I have no clue where to go from here. |
you can check the systemd config to see where the env file is and update that for your setup. i verified mine and it looked good. things look like they did yesterday for me now, but i added the sudo password thing manually to the config vs the gui popup |
Try to reload the landing page. It sounds like you didn't click the submit button and instead clicked out of the dialog box or |
How do I reload that? |
You can check your notifications to see if Sudo Password Request is still in there. Otherwise you can go to |
mine does not have any warnings, so i guess it fixed itself @JDWarner i got the same. i didnt bother with that. i did do the sudo fix and reboot one. |
I did not skip adding the sudo password, I hit submit and it brought me to the same page from above, there are some errors on that page stating Failed to link subfolder 'database' to '/home/pi/.moonraker_database'. Folder 'database' already exists. This conflict requires manual resolution. GCode path received from Klipper does not match expected path: /home/pi/printer_data/gcodes |
Try to ssh in to the Pi and run the following:
|
My Moonraker continues to refuse to connect on [correct_ip_address] port 7125. Bad gateway. I have fully implemented the secrets pw with .secrets file and added it to moonraker.conf |
This is what I got... sudo service moonraker restart moonraker.service - API Server for Klipper SV1 Oct 14 18:37:59 mainsailos02 systemd[1]: Failed to start API Server for Klipper SV1. |
Now Klipper cannot connect to moonraker at all |
@Eclypse3D Ok, we are going to have to do a manual install to fix it. The following assumes:
After this is done moonraker will start. It will create a new database, so we need to restore the old one.
|
Tried it, no errors when running script. When mainsail restarted I have the following error: Moonraker warning I do have access to config files now but read only. It must be loading from an old back up because I see timelapse in there and I have not used that in a couple months. |
Is there anything in
|
Started up no errors! But config files are read only still and it looks like it is still loading back ups. Do you want me to try printer 2? |
If you refresh the update manager that should correct itself. Timelapse was loaded previously, it is not there now. Are you sure config files are read only? There are no errors in the log. Try refreshing those in mainsail as well then attempt to edit one. If everything is working you can proceed to update instance 2.
|
Refreshed everything and both are working! I can't tell you how much I appreciate you spending time on this, I am sure you are very busy and I know this is free. I attached the logs just in case. |
Update of moonraker module according to Arksine/moonraker#516 Signed-off-by: Stephan Wendel <[email protected]>
update installer to match new paths according to Arksine/moonraker#516 Added posibility to set persistant log path at install replaced apt with apt-get -q for installing dependencies Signed-off-by: Stephan Wendel <[email protected]>
@Arksine is it possible to use some sort of substitution inside config file to reference data path? For example |
Update of moonraker module according to Arksine/moonraker#516 Signed-off-by: Stephan Wendel <[email protected]>
I installed Klipper, Moonraker, Fluidd, KlipperScreen, and Obico for Klipper via KIAUH (Klipper Installation and Update Helper) I updated OS and all apps to current. After this I received the alert that "Folder/Path configuration change UPDATE 10/15/2022:Oct 3, 2022 5:35 AM after running I am receiving the error "Klippy not connected". I have not had this error previously and my MCU config is correct. |
@CODeRUS Not currently, however I'm not sure how that would be useful. There shouldn't be any more paths in @dsloyer74 This announcement applies to legacy (pre-existing) installs. You have a new installation, it its likely that I'm going to close this announcement to avoid confusion going forward. |
@Arksine kiauh is placing klipper uds inside printer_data/comms folder, so that would be useful just to have such a placeholder in config |
I just did a fresh install of Klipper and copied configs over, I logged into the notification that popped up, as well as entered the command at the top of this page. But it still doesn't show any configs. Anyone know the fix? |
I guess I needed to shutdown and restart the Pi, thanks for the info |
I just did a fresh install of Klipper, Moonraker, and Fluidd using Kiauh on Raspberry Pi OS lite. I'm getting the virtual SD card path error, but when I try to run the repair script I get the following error. |
@Machine-Dynamics cd ~/moonraker |
The |
I'm an idiot. When I set this printer up, I copied over my previous config file that I'd already written. When I got this error, the very first thing I tried was adding the [virtual_sdcard] path suggested by the error to my config file, but I forgot to delete the previous path that already existed further down in the config. |
Update several modules to match new file paths introduced due moonraker changes. For Details see Arksine/moonraker#516 Signed-off-by: Stephan Wendel <[email protected]>
UPDATE 10/15/2022:
Some users have experienced errors during the update process. 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:
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 asconfig_path
andlog_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: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: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: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:[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.The text was updated successfully, but these errors were encountered: