ChimeraOS / chimera

A web interface for managing Steam remotely
MIT License
233 stars 27 forks source link

Internal Error 500 on accessing `:8844` #306

Closed OrcaXS closed 9 months ago

OrcaXS commented 11 months ago

Device & Version:

ChimeraOS 45 (ba9c22d) on Legion Go

Logs

journalctl --user-unit chimera:

Nov 30 01:46:26 chimeraos systemd[795]: Starting Chimera...
Nov 30 01:46:36 chimeraos systemd[795]: Started Chimera.
Nov 30 01:46:38 chimeraos chimera[1931]: Bottle v0.12.25 server starting up (using PasteServer())...
Nov 30 01:46:38 chimeraos chimera[1931]: Listening on http://0.0.0.0:8844/
Nov 30 01:46:38 chimeraos chimera[1931]: Hit Ctrl-C to quit.
Nov 30 01:47:12 chimeraos chimera[1931]: Traceback (most recent call last):
Nov 30 01:47:12 chimeraos chimera[1931]:   File "/usr/bin/bottle.py", line 876, in _handle
Nov 30 01:47:12 chimeraos chimera[1931]:     return route.call(**args)
Nov 30 01:47:12 chimeraos chimera[1931]:            ^^^^^^^^^^^^^^^^^^
Nov 30 01:47:12 chimeraos chimera[1931]:   File "/usr/bin/bottle.py", line 1759, in wrapper
Nov 30 01:47:12 chimeraos chimera[1931]:     rv = callback(*a, **ka)
Nov 30 01:47:12 chimeraos chimera[1931]:          ^^^^^^^^^^^^^^^^^^
Nov 30 01:47:12 chimeraos chimera[1931]:   File "/usr/lib/python3.11/site-packages/chimera_app/server.py", line 1049, in login
Nov 30 01:47:12 chimeraos chimera[1931]:     AUTHENTICATOR.launch()
Nov 30 01:47:12 chimeraos chimera[1931]:   File "/usr/lib/python3.11/site-packages/chimera_app/authenticator.py", line 36, in launch
Nov 30 01:47:12 chimeraos chimera[1931]:     self.kill()
Nov 30 01:47:12 chimeraos chimera[1931]:   File "/usr/lib/python3.11/site-packages/chimera_app/authenticator.py", line 41, in kill
Nov 30 01:47:12 chimeraos chimera[1931]:     if self.__app in process.cmdline() and self.__fg not in process.cmdline():
Nov 30 01:47:12 chimeraos chimera[1931]:                      ^^^^^^^^^^^^^^^^^
Nov 30 01:47:12 chimeraos chimera[1931]:   File "/usr/lib/python3.11/site-packages/psutil/__init__.py", line 702, in cmdline
Nov 30 01:47:12 chimeraos chimera[1931]:     return self._proc.cmdline()
Nov 30 01:47:12 chimeraos chimera[1931]:            ^^^^^^^^^^^^^^^^^^^^
Nov 30 01:47:12 chimeraos chimera[1931]:   File "/usr/lib/python3.11/site-packages/psutil/_pslinux.py", line 1650, in wrapper
Nov 30 01:47:12 chimeraos chimera[1931]:     return fun(self, *args, **kwargs)
Nov 30 01:47:12 chimeraos chimera[1931]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 30 01:47:12 chimeraos chimera[1931]:   File "/usr/lib/python3.11/site-packages/psutil/_pslinux.py", line 1788, in cmdline
Nov 30 01:47:12 chimeraos chimera[1931]:     self._raise_if_zombie()
Nov 30 01:47:12 chimeraos chimera[1931]:   File "/usr/lib/python3.11/site-packages/psutil/_pslinux.py", line 1693, in _raise_if_zombie
Nov 30 01:47:12 chimeraos chimera[1931]:     raise ZombieProcess(self.pid, self._name, self._ppid)
Nov 30 01:47:12 chimeraos chimera[1931]: psutil.ZombieProcess: PID still exists but it's a zombie (pid=818)
Nov 30 01:47:12 chimeraos chimera[1931]: 172.20.0.236 - - [30/Nov/2023:01:47:12 +0800] "GET /login HTTP/1.1" 500 749 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (K
palmerj commented 10 months ago

I also get the same using the unstable chimera channel release using a UM790 pro

RayBa82 commented 10 months ago

Same for me now in the pinned 45 version aka testing channel on a desktop pc (Ryzen + 7800XT)

GiacoAV commented 9 months ago

Can report the same issue on ChimeraOS 46 (008d957) and Minisforum 780 XTX

janv. 18 16:29:08 chimeraos chimera[2086]: Traceback (most recent call last):
janv. 18 16:29:08 chimeraos chimera[2086]:   File "/usr/bin/bottle.py", line 876, in _handle
janv. 18 16:29:08 chimeraos chimera[2086]:     return route.call(**args)
janv. 18 16:29:08 chimeraos chimera[2086]:            ^^^^^^^^^^^^^^^^^^
janv. 18 16:29:08 chimeraos chimera[2086]:   File "/usr/bin/bottle.py", line 1759, in wrapper
janv. 18 16:29:08 chimeraos chimera[2086]:     rv = callback(*a, **ka)
janv. 18 16:29:08 chimeraos chimera[2086]:          ^^^^^^^^^^^^^^^^^^
janv. 18 16:29:08 chimeraos chimera[2086]:   File "/usr/lib/python3.11/site-packages/chimera_app/server.py", line 1061, in authenticate_get
janv. 18 16:29:08 chimeraos chimera[2086]:     authenticate_route_handler()
janv. 18 16:29:08 chimeraos chimera[2086]:   File "/usr/lib/python3.11/site-packages/chimera_app/server.py", line 1070, in authenticate_route_handler
janv. 18 16:29:08 chimeraos chimera[2086]:     AUTHENTICATOR.kill()
janv. 18 16:29:08 chimeraos chimera[2086]:   File "/usr/lib/python3.11/site-packages/chimera_app/authenticator.py", line 41, in kill
janv. 18 16:29:08 chimeraos chimera[2086]:     if self.__app in process.cmdline() and self.__fg not in process.cmdline():
janv. 18 16:29:08 chimeraos chimera[2086]:                      ^^^^^^^^^^^^^^^^^
janv. 18 16:29:08 chimeraos chimera[2086]:   File "/usr/lib/python3.11/site-packages/psutil/__init__.py", line 702, in cmdline
janv. 18 16:29:08 chimeraos chimera[2086]:     return self._proc.cmdline()
janv. 18 16:29:08 chimeraos chimera[2086]:            ^^^^^^^^^^^^^^^^^^^^
janv. 18 16:29:08 chimeraos chimera[2086]:   File "/usr/lib/python3.11/site-packages/psutil/_pslinux.py", line 1643, in wrapper
janv. 18 16:29:08 chimeraos chimera[2086]:     return fun(self, *args, **kwargs)
janv. 18 16:29:08 chimeraos chimera[2086]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^
janv. 18 16:29:08 chimeraos chimera[2086]:   File "/usr/lib/python3.11/site-packages/psutil/_pslinux.py", line 1781, in cmdline
janv. 18 16:29:08 chimeraos chimera[2086]:     self._raise_if_zombie()
janv. 18 16:29:08 chimeraos chimera[2086]:   File "/usr/lib/python3.11/site-packages/psutil/_pslinux.py", line 1686, in _raise_if_zombie
janv. 18 16:29:08 chimeraos chimera[2086]:     raise ZombieProcess(self.pid, self._name, self._ppid)
janv. 18 16:29:08 chimeraos chimera[2086]: psutil.ZombieProcess: PID still exists but it's a zombie (pid=11813)
alkazar commented 9 months ago

Fixed in https://github.com/ChimeraOS/chimera/commit/d670e21c2791221adc275afe44f3f398885fe977

It seems the issue was psutil started listing old/bad processes. This is since ChimeraOS v45. Does not seem to affect ChimeraOS v44-1.

alkazar commented 9 months ago

This is now fixed in the latest v45 testing build.