-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic Auth - Critical worker timeout error #61
Comments
First question: |
Also: What is the full path of the URL you are trying to access? |
Basic Auth - Critical worker timeout error
I'm using docker.
I'm using subdomain the same subdomain for headscale and webui with the difference adding /admin after the subdomain (https://net.[mydomain]/admin EDIT: When I access the URL, it prompted me for the basic auth, after entering the correct credentials it just keep loading for a minute or two until it gives me bad gateway |
Are you trying to load /overview? |
no scratch that... Hmmm... I can't see anything wrong with this config. Let me do some tests. |
can you run with no auth and see if it still times out? |
Ok, I'll try it |
Before that, one quick question.
db and key owned by root. Is this correct? |
yeah that looks fine. |
Removing the auth doesn't work. Still getting WORKER timeout in log, and bad gateway on the browser |
Give ghcr.io/ifargle/headscale-webui:testing a shot. I've made a few changes, though I'm unsure if I've made changes that would impact this error. Still worth a shot though. It's under heavy testing so if you pull now and it works don't pull again until v0.6.0 is pushed to main, it may break lol |
oh also worth asking: ARM or x86? Testing is only available as x86 |
Mine's x86, Debian 11 EDIT: still not working with testing. I'll try to spin up fresh server to test further |
Welp, turns out my nftables config is the one causing the issue. I'll try to look deeper into what's causing it. |
Weird, my nftables input chain default to drop and that chain is the one causing it. Isn't docker container suppose to use it's own docker chain? (at least that's how it is for me until now) |
That's interesting.... Glad you figured it out. The application shouldn't be doing anything funky with Docker at all -- At least as far as I know. Let me know if you have any more issues. Thanks! |
I think I found the problem.
Found this after trying to log the dropped packet of the firewall. I think this is webui trying to connect to headscale (judging by the destination port - 443) using domain/public ip? That's why the firewall drop it, because it is not using docker internal network (I think) and coming in to the bridge interface (IN=br-87c38579dda4) instead of the host network interface (the manual nftables rules only allow connection to certain listed port from the host network interface). Is there particular reason why the webui does not probe the headscale using the internal docker network (using the usual service name and port)? |
That's the HS_SERVER variable. You can use the internal IP:port there :)
On March 25, 2023 4:26:19 PM UTC, inlophe ***@***.***> wrote:
I think I found the problem.
`Mar 25 10:24:04 auxiliary kernel: [8744276.793412] Dropped: IN=br-87c38579dda4 OUT= PHYSIN=vetha087dad MAC=02:42:f9:92:64:15:02:42:ac:12:00:03:08:00 SRC=172.18.0.3 DST=[public IP] LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=8897 DF PROTO=TCP SPT=48850 DPT=443 WINDOW=64240 RES=0x00 SYN URGP=0`
Found this after trying to log the dropped packet of the firewall. I think this is webui trying to connect to headscale (judging by the destination port - 443) using domain/public ip? That's why the firewall drop it, because it is not using docker internal network (I think) and coming in to the bridge interface (IN=br-87c38579dda4) instead of the host network interface (the manual nftables rules only allow connection to certain listed port from the host network interface).
Is there particular reason why the webui does not probe the headscale using the internal docker network (using the usual service name and port)?
--
Reply to this email directly or view it on GitHub:
#61 (comment)
You are receiving this because you modified the open/close state.
Message ID: ***@***.***>
--
Albert J. Copeland
***@***.***
PGP Fingerprint: 64F6C4EB46C4543A
|
Just tried today and keep getting bad gateway when trying to access the webui. Everytime I tried to access the URL, I always got worker exiting in the log.
Any idea what's wrong?
Originally posted by @inlophe in #60 (comment)
The text was updated successfully, but these errors were encountered: