Closed Mootfrost777 closed 9 months ago
Try to go into the container (e.g docker exec -it <name> /bin/sh
) and then use wget/ping to test the connect between ui and HS_SERVER
In my case, I set docker http proxy in both ~/.docker
and in systemd. This prevents the ui to connect the HS_SERVER.
Hope it helps
I have the same issue, tried to add container name + port, host adress + port, nothing helped.
Also when I'm trying access webui i have this in logs:
[2023-09-11 17:15:04 +0200] [8] [ERROR] Error handling request / Traceback (most recent call last): File "/app/.venv/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 136, in handle self.handle_request(listener, req, client, addr) File "/app/.venv/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 169, in handle_request resp, environ = wsgi.create(req, client, addr, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/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 [2023-09-11 17:15:04 +0200] [8] [ERROR] Error handling request /favicon.ico Traceback (most recent call last): File "/app/.venv/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 136, in handle self.handle_request(listener, req, client, addr) File "/app/.venv/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 169, in handle_request resp, environ = wsgi.create(req, client, addr, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/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
I've tried connect to headscale container from inside of headscale-webui using both wget and ping which wasn't successful becasue ping is limited for root user (which is prevented inside container), but wget returns 404 which I think is ok because headscale has no web interface
Hi everybody. I had the same issues.
This worked for me:
First ensure the file rights for docker volume: chown -R 1000:1000 /<directory mapped in docker-compose>
.
This should get rid of the message from @demanuPL.
Second ensure both containers are in the same network and can see each other as @SaigyoujiYuyuko233 wrote. A 404 return is a good sign (server is responding). In my case, only a wget on the local docker IP worked successfully (you find the ip with docker inspect <container_name>
).
After replacing the HS_SERVER environment var with the docker IP the webui is accessible.
When the webui container startup, it halts at Loading basic auth libraries and configuring app
, but the webUI on http://host:port works as excepted and the API key from your HS server can be added.
Hope it helps.
Here is my compose file:
Headscale starts, but webui stuck on configuring step and provides blank page when accessing/admin.
I would so appreciate any help