Comments (4)
Thanks. It sounds like your distro does not support the reboot
command. I went ahead and pushed an update that executes sudo shutdown -r now
, which should hopefully work with more distros.
from moonraker.
Hello, thank you.
I just tried it.
"sudo reboot "
works on the orangePi
Greetings
Andre
from moonraker.
Hello @anjoku ,
I discovered this Issue like you.
It seems that the configuration of choosen Modules of MainsailOS and even FluiddPI create this Issue
export MODULES="base(network, raspicam, klipper_moonraker, canserial, fluidd, mjpgstreamer, password-for-sudo)"
The Module "password-for-sudo" parses the /etc/sudoers and /etc/sudoers.d to comment out the lines that user pi can "sudo" without any password.
That interferes with the "simple" sudo shutdown -h now or reboot, that the API in the back uses.
I am working on a fix for that, till then simply use:
echo 'pi ALL=(ALL) NOPASSWD: /sbin/shutdown, /sbin/reboot'| sudo EDITOR='tee -a' visudo
This will allow pi to use shutdown and reboot command without a need for password.
Regards
Stephan aka Kwadfan :)
from moonraker.
Given that this is a disto problem and not a moonraker issue I'm going to close this. The sudo_fix.sh script is there for CustomPiOS based distros. Folks using other distros will need to make sure that Moonraker has the proper permissions to execute sudo commands.
from moonraker.
Related Issues (20)
- 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
- power type `uhubctl` without specifying port HOT 1
- PAM authentication support HOT 1
- Queue should be paused when non-queued file is finished printing HOT 4
- After upgrade moonraker is broken - Unable to load component (template). Caused by jinja HOT 1
- [Spoolman] Support fetching filament information from spoolman
- Print history has inaccurate “print duration” and “used filament” when using T1 HOT 1
- Update Manager Enhancement
- Repo Corrupt?
- Allow setting MQTT ClientId in moonraker.conf HOT 1
- APC UPS - Status monitoring HOT 2
- AttributeError: module 'moonraker.components.job_queue' has no attribute 'load_component' 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.