A simple Headscale web UI for small-scale deployments.
Other
619
stars
56
forks
source link
Error Internal Server Error when running run gunicorn -b 0.0.0.0:8989 server:app,I run it on baremetal, Use Poetry version 1.8.3 and Python 3.12.3 #141
[2024-06-03 13:57:23,077] INFO in server: Headscale-WebUI Version: /
[2024-06-03 13:57:23,078] INFO in server: LOG LEVEL SET TO DEBUG
[2024-06-03 13:57:23,078] INFO in server: DEBUG STATE: True
[2024-06-03 13:57:23,078] INFO in server: Loading basic auth libraries and configuring app...
[2024-06-03 13:57:38 +0700] [356491] [ERROR] Error handling request /
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/headscale-webui-g4u63KAj-py3.12/lib/python3.12/site-packages/gunicorn/workers/sync.py", line 136, in handle
self.handle_request(listener, req, client, addr)
File "/root/.cache/pypoetry/virtualenvs/headscale-webui-g4u63KAj-py3.12/lib/python3.12/site-packages/gunicorn/workers/sync.py", line 169, in handle_request
resp, environ = wsgi.create(req, client, addr,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/headscale-webui-g4u63KAj-py3.12/lib/python3.12/site-packages/gunicorn/http/wsgi.py", line 183, in create
path_info = path_info.split(script_name, 1)[1]
IndexError: list index out of range
Output results when accessing using a web browser
Internal Server Error
[2024-06-03 13:57:23,077] INFO in server: Headscale-WebUI Version: / [2024-06-03 13:57:23,078] INFO in server: LOG LEVEL SET TO DEBUG [2024-06-03 13:57:23,078] INFO in server: DEBUG STATE: True [2024-06-03 13:57:23,078] INFO in server: Loading basic auth libraries and configuring app... [2024-06-03 13:57:38 +0700] [356491] [ERROR] Error handling request / Traceback (most recent call last): File "/root/.cache/pypoetry/virtualenvs/headscale-webui-g4u63KAj-py3.12/lib/python3.12/site-packages/gunicorn/workers/sync.py", line 136, in handle self.handle_request(listener, req, client, addr) File "/root/.cache/pypoetry/virtualenvs/headscale-webui-g4u63KAj-py3.12/lib/python3.12/site-packages/gunicorn/workers/sync.py", line 169, in handle_request resp, environ = wsgi.create(req, client, addr, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/.cache/pypoetry/virtualenvs/headscale-webui-g4u63KAj-py3.12/lib/python3.12/site-packages/gunicorn/http/wsgi.py", line 183, in create path_info = path_info.split(script_name, 1)[1]