Comments (6)
I'm running moonraker on Raspberry Pi OS, it seems that running the script sudo_fix.sh
inside /moonraker /scripts
solves it.
from moonraker.
The typo has been fixed and it would not prevent the service from restarting if the endpoint was provided with valid parameters. I would need the log to help troubleshoot further.
Keep in mind that the URL is case sensitive.
from moonraker.
Hi, the last 2 lines of .log show that the command was executed correctly:
2021-01-29 11:50:48,315 [shell_command.py:run()] - Command (sudo systemctl restart klipper) exited with return code 1
2021-01-29 11:50:48,318 [web.py:log_request()] - 200 POST /machine/services/restart?service=klipper (192.168.0.119) 129.23ms
If I manually run sudo systemctl restart klipper it works fine. But with moonraker klipper does not restart. I have given all the permissions to the moonraker scripts folder (chmod 777) and nothing.
I attach the complete log. Any ideas?
from moonraker.
It is a sudo permission issue. If you are not running MainsailOS, FluiddPi or Raspberry Pi OS you will need to determine what permissions are necessary on your distro to execute sudo systemctl
without a password from Moonraker.
from moonraker.
Interesting. Stock RPi OS shouldn't need the script, but I'm glad it resolved your issue.
from moonraker.
Well, it's not Stock RPi OS, it's an octoprint image. But use this distribution: Raspbian GNU / Linux 10 (buster). thanks for the replies.
Regards
from moonraker.
Related Issues (20)
- Ensure time is synced before refreshing the update manager status. HOT 1
- Device Power on mqtt zigbee2mqtt payload HOT 7
- Power locked_while_printing: True asserting at startup when not printing HOT 5
- Cannot Retrieve File Metadata for Spoolman HOT 10
- Spoolman Proxy: Include total count header in response
- How to add Authenticator HOT 2
- unable get printer info from moonraker HOT 5
- Gcode-shell-command Error: Failed to restart KlipperScreen.service: Interactive authentication required. HOT 2
- Can the file manager API also return a hash? HOT 7
- Fluidd Moonraker connection to elegoo Neptune 4+ on MAC failed (Force Refresh) HOT 5
- Add Flatpack
- Apprise update. HOT 2
- Add option to power off a power device when operating system shutdown. HOT 2
- Non working links for ids.
- Power device: add option to run custom gcode on on/off action
- [database.py:insert_item()] - Error inserting key 'instance_id' in namespace 'moonraker' HOT 5
- Login fails after upgrade HOT 9
- Missing Documentation for altering the instance_uuid HOT 3
- Add filament Iād to print history
- Mainsail cannot connect to Moonraker (connection Failed) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moonraker.