Coder Social home page Coder Social logo

Hostreboot don't work about moonraker HOT 4 CLOSED

arksine avatar arksine commented on May 14, 2024
Hostreboot don't work

from moonraker.

Comments (4)

Arksine avatar Arksine commented on May 14, 2024

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.

anjoku avatar anjoku commented on May 14, 2024

Hello, thank you.
I just tried it.

"sudo reboot "

works on the orangePi

Greetings
Andre

from moonraker.

KwadFan avatar KwadFan commented on May 14, 2024

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.

Arksine avatar Arksine commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.