Giter Site home page Giter Site logo

Comments (3)

SaigyoujiYuyuko233 avatar SaigyoujiYuyuko233 commented on June 2, 2024

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.
image

Hope it helps

from headscale-webui.

demanuPL avatar demanuPL commented on June 2, 2024

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

from headscale-webui.

nebeleben avatar nebeleben commented on June 2, 2024

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.

from headscale-webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.