You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure exactly what happened or why but I encountered an issue while powering on my printer.
LCD would display "PrusaLink Starting..." (or vise versa , i forget) indefinitely. I SSH'd into the Pi and found this error:
ERROR: Adapter was not start {run():53}
Traceback (most recent call last):
File "/home/p/.local/lib/python3.11/site-packages/prusa/link/daemon.py", line 51, in run
self.prusa_link = PrusaLink(self.cfg, self.settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/p/.local/lib/python3.11/site-packages/prusa/link/printer_adapter/prusa_link.py", line 152, in __init__
power_panic_delay(cfg)
File "/home/p/.local/lib/python3.11/site-packages/prusa/link/util.py", line 338, in power_panic_delay
pp_data = PPData(**json.load(pp_file))
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/__init__.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
After poking I found the "power_panic" file and assumed it had something to do with that. So renamed it to something else and after restarting the printer again PursaLink booted fine. I checked the file's contents and it was empty so I figure that may be the reason for the unhandled error.
The text was updated successfully, but these errors were encountered:
Yup, handling that shouldn't be ultra hard. If anyone feels like making a PR, I'd most likely merge it. Just delete or ignore the file if it doesn't parse. Make sure that no checks of the Power Panic file existence and whatnot affect the state, just skip it in such case. If I get to it, Ill try to fix it. But I won't have much time to dedicate to it. Thank you for the excellent report tho
Not sure exactly what happened or why but I encountered an issue while powering on my printer.
LCD would display "PrusaLink Starting..." (or vise versa , i forget) indefinitely. I SSH'd into the Pi and found this error:
After poking I found the "power_panic" file and assumed it had something to do with that. So renamed it to something else and after restarting the printer again PursaLink booted fine. I checked the file's contents and it was empty so I figure that may be the reason for the unhandled error.
The text was updated successfully, but these errors were encountered: