Arksine / moonraker

Web API Server for Klipper
https://moonraker.readthedocs.io
GNU General Public License v3.0
1.02k stars 392 forks source link

Power locked_while_printing: True asserting at startup when not printing #837

Closed keyboarderror closed 2 months ago

keyboarderror commented 3 months ago

What happened

In the most recent v0.8.0-325-g99b97afc update locked_while_printing: True is asserting at startup by default. I could not power on my printer. Commenting it out (or setting False) restored access to the power switch.

My configuration:

[power Printer] type: gpio pin: gpio17 locked_while_printing: True on_when_job_queued: True restart_klipper_when_powered: True restart_delay: 2 bound_service: klipper initial_state: off off_when_shutdown: True off_when_shutdown_delay: 180

Client

Mainsail

Browser

Chrome

How to reproduce

locked_while_printing: True

Additional information

No response

Arksine commented 3 months ago

It is necessary to attach moonraker.log reproducing the issue for me to confirm the bug and track it down. Thanks.

keyboarderror commented 3 months ago

It is appended under additional information but I don't see it except while editing.

keyboarderror commented 3 months ago

Trying as an attachment. moonraker.log

Arksine commented 3 months ago

The log does not contain a traceback indicating that a request to toggle power was denied. This suggests that the frontend is denying request.

keyboarderror commented 2 months ago

Closing as the most recent update seems to have resolved the problem.