[solved] MODEP UI failing


#1

hey all!
I am having a weird issue with the UI which is constantly failing over and over again and my device is not working :frowning:
Is there anything I could do about it?

thanks!

Sep 12 16:27:50 modep systemd[1]: Started MOD-UI.
Sep 12 16:27:50 modep python3[612]: WARN: Missing file /usr/local/modep/mod-ui/data/mod_api_key.pub with the public API KEY
Sep 12 16:27:50 modep python3[612]: Traceback (most recent call last):
Sep 12 16:27:50 modep python3[612]:   File "/usr/local/modep/mod-ui/server.py", line 54, in <module>
Sep 12 16:27:50 modep python3[612]:     from mod import webserver
Sep 12 16:27:50 modep python3[612]:   File "/usr/local/modep/mod-ui/mod/webserver.py", line 22, in <module>
Sep 12 16:27:50 modep python3[612]:     import subprocess
Sep 12 16:27:50 modep python3[612]:   File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Sep 12 16:27:50 modep python3[612]:   File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Sep 12 16:27:50 modep python3[612]:   File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Sep 12 16:27:50 modep python3[612]:   File "<frozen importlib._bootstrap_external>", line 669, in exec_module
Sep 12 16:27:50 modep python3[612]:   File "<frozen importlib._bootstrap_external>", line 773, in get_code
Sep 12 16:27:50 modep python3[612]:   File "<frozen importlib._bootstrap_external>", line 484, in _compile_bytecode
Sep 12 16:27:50 modep python3[612]: ValueError: bad marshal data (unknown type code)
Sep 12 16:27:50 modep systemd[1]: mod-ui.service: Main process exited, code=exited, status=1/FAILURE
Sep 12 16:27:50 modep systemd[1]: mod-ui.service: Unit entered failed state.
Sep 12 16:27:50 modep systemd[1]: mod-ui.service: Failed with result 'exit-code'.
Sep 12 16:27:53 modep systemd[1]: mod-ui.service: Service hold-off time over, scheduling restart.
Sep 12 16:27:53 modep systemd[1]: Stopped MOD-UI.
Sep 12 16:27:53 modep systemd[1]: Started MOD-UI.
Sep 12 16:27:53 modep python3[633]: WARN: Missing file /usr/local/modep/mod-ui/data/mod_api_key.pub with the public API KEY
Sep 12 16:27:53 modep python3[633]: Traceback (most recent call last):
Sep 12 16:27:53 modep python3[633]:   File "/usr/local/modep/mod-ui/server.py", line 54, in <module>
Sep 12 16:27:53 modep python3[633]:     from mod import webserver
Sep 12 16:27:53 modep python3[633]:   File "/usr/local/modep/mod-ui/mod/webserver.py", line 22, in <module>
Sep 12 16:27:53 modep python3[633]:     import subprocess
Sep 12 16:27:53 modep python3[633]:   File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Sep 12 16:27:53 modep python3[633]:   File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Sep 12 16:27:53 modep python3[633]:   File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Sep 12 16:27:53 modep python3[633]:   File "<frozen importlib._bootstrap_external>", line 669, in exec_module
Sep 12 16:27:53 modep python3[633]:   File "<frozen importlib._bootstrap_external>", line 773, in get_code
Sep 12 16:27:53 modep python3[633]:   File "<frozen importlib._bootstrap_external>", line 484, in _compile_bytecode
Sep 12 16:27:53 modep python3[633]: ValueError: bad marshal data (unknown type code)
Sep 12 16:27:53 modep systemd[1]: mod-ui.service: Main process exited, code=exited, status=1/FAILURE

Sep 12 16:27:53 modep systemd[1]: mod-ui.service: Unit entered failed state.


#2

Hey, this looks like it could be an issue with the Python 3 on your system - did you update your system or customize it in some way?

I guess easiest way to get it back working would be to reflash the MODEP image to the SD card…


#3

Yeah it was just a vanilla install of the image - no updates or any changes.
I fixed it yesterday by simply reflashing the image right after I finished my post but wanted to check if this is something what needs some attention…