Code Monkey home page Code Monkey logo

Comments (6)

Deymos42 avatar Deymos42 commented on July 20, 2024 1

I'm running moonraker on Raspberry Pi OS, it seems that running the script sudo_fix.sh inside /moonraker /scripts solves it.

from moonraker.

Arksine avatar Arksine commented on July 20, 2024

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.

Deymos42 avatar Deymos42 commented on July 20, 2024

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?

moonraker.log

from moonraker.

Arksine avatar Arksine commented on July 20, 2024

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.

Arksine avatar Arksine commented on July 20, 2024

Interesting. Stock RPi OS shouldn't need the script, but I'm glad it resolved your issue.

from moonraker.

Deymos42 avatar Deymos42 commented on July 20, 2024

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)

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.