thelastWallE / OctoprintKlipperPlugin

A plugin for a better integration of Klipper into OctoPrint.
GNU Affero General Public License v3.0
65 stars 14 forks source link

sudo service klipper restart password requered #85

Open iqubik opened 2 years ago

iqubik commented 2 years ago

Before submitting your issue please make sure to provide the following information

Official last Debian linux for orange pi zero 2. Last octoprint version

If i get restart klipper command (sudo service klipper restart) in web interface i got error:

{"error":"Command for custom:octoklipper_restart failed: 500 Internal Server Error: Command for custom:octoklipper_restart failed with return code 1:\n\nSTDOUT:\n\n\nSTDERR:\nsudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper\n\nsudo: a password is required\n"}

Thanks octoprint-systeminfo-20220629232720.zip

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

jhiggason commented 1 year ago

I'm having this issue too. Klipper and Octoprint latest versions. Ubuntu 22 LTS on an Orangepi

{ "error": "Command for custom:octoklipper_restart failed: 500 Internal Server Error: Command for custom:octoklipper_restart failed with return code 1:\n\nSTDOUT:\n\n\nSTDERR:\nsudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper\n\nsudo: a password is required\n" }