gurucomputing / headscale-ui

A web frontend for the headscale Tailscale-compatible coordination server
BSD 3-Clause "New" or "Revised" License
1.59k stars 113 forks source link

Can't load web ui #102

Closed Majobaga closed 1 year ago

Majobaga commented 1 year ago

Supporting Details Provide the following:

Headscale UI issue

Describe the bug A clear and concise description of what the bug is. Screenshots if applicable.

The web ui was working when I got it set up initially but a few hours later when after I had connected my Pfsense and Android phone as nodes it wouldn't work anymore. I get a full white page when I go to the headscaleURL/web with the errors as shown by the attached image.

I'm running headscale and headscale-ui as docker containers and ngninx proxy manager as a reverse proxy. I had the configuration set up per the documentation and nothing really was changed. I have tried restarting the containers, npm, reinstalled the containers, changed the domain, network within portainer, ports, etc etc. I appreciate the help, thanks!

routerino commented 1 year ago

CSP error means that the web page thinks its been modified. The bunch of 404 errors means that it isn't resolving the web application static files.

Your web application has either stopped being served or isn't being routed correctly by your reverse proxy. Try clearing cache or restarting your docker containers.

Majobaga commented 1 year ago

Unfortunately I'm not as savyy about linux and docker to understand fully what to do and what's going on. I've restarted the containers, restarted npm, removed them and pulled new images, changed ports, changed the subdomain, nothing works. Now at least it's not doing the same thing, now it's fully giving me a 404 type error.

I've tried to do everything I can. I'm not being successful at getting it to work again. It's probably something I don't know about or something wrong I'm doing. But I have another 20 proxy hosts on nginx p m working fine and no issues. Any insight would be very much appreciated. And sorry for the ignorance. TY.

Screenshot 2023-05-10 155114
routerino commented 1 year ago

error 400 means bad request, it's still a disconnect somewhere between how nginx proxy manager is serving the site and how it is being presented. Bare in mind that the site is a statically hosted site. You can put a site that has <html><body>hello world</body></html> in the same spot, if it doesn't load hello world then you know it's a problem with the proxy configuration.

I did write a guide for setting up headscale ui with caddy but that will only be limited use to troubleshoot nginx proxy manager.

routerino commented 1 year ago

closing as stale, cannot reproduce.