Skip to content
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

When I try to log in to tailscale up inside linux, he gets stuck #11992

Open
xizheyin opened this issue May 3, 2024 · 3 comments
Open

When I try to log in to tailscale up inside linux, he gets stuck #11992

xizheyin opened this issue May 3, 2024 · 3 comments

Comments

@xizheyin
Copy link

xizheyin commented May 3, 2024

What is the issue?

When I try to log in to tailscale up inside linux, he gets stuck

image

Steps to reproduce

My linux server connects to the extranet through a windows clash proxy, not sure if this is the reason.

The log file:

ng bootstrap...
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: Start
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: control: client.Shutdown()
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: control: client.Shutdown
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: control: updateRoutine: exiting
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: control: mapRoutine: exiting
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: control: authRoutine: exiting
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: control: Client.Shutdown done.
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: Backend: logs: be:14bac8e93e829ff292ecd77ba8eb47c9abc123d7e992730956ef34689bf82bca fe:
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: Switching ipn state NoState -> NeedsLogin (WantRunning=true, nm=false)
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: blockEngineUpdates(true)
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: Reconfig(down): no changes made to Engine config
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: StartLoginInteractive: url=false
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: control: client.Login(false, 2)
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: control: LoginInteractive -> regen=true
May 03 23:26:08 rust-PowerEdge-R750xs tailscaled[1618237]: control: doLogin(regen=true, hasUrl=false)
May 03 23:26:09 rust-PowerEdge-R750xs tailscaled[1618237]: logtail: dial "log.tailscale.io:443" failed: dial tcp 54.161.152.147:443: i/o timeout (in 30s), trying bootstrap...
May 03 23:27:28 rust-PowerEdge-R750xs tailscaled[1618237]: logtail: dial "log.tailscale.io:443" failed: dial tcp 54.161.152.147:443: i/o timeout (in 30s), trying bootstrap...
May 03 23:28:26 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp9.tailscale.com", "207.148.3.137") for "controlplane.tailscale.com" ...
May 03 23:28:29 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp9.tailscale.com", "207.148.3.137") for "controlplane.tailscale.com" error: Get "https://derp9.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": context deadline exceeded
May 03 23:28:29 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp9.tailscale.com", "2001:19f0:6401:1d9c:5400:2ff:feef:bb82") for "controlplane.tailscale.com" ...
May 03 23:28:29 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp9.tailscale.com", "2001:19f0:6401:1d9c:5400:2ff:feef:bb82") for "controlplane.tailscale.com" error: Get "https://derp9.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": dial tcp [2001:19f0:6401:1d9c:5400:2ff:feef:bb82]:443: connect: network is unreachable
May 03 23:28:29 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp8d.tailscale.com", "178.62.44.132") for "controlplane.tailscale.com" ...
May 03 23:28:32 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp8d.tailscale.com", "178.62.44.132") for "controlplane.tailscale.com" error: Get "https://derp8d.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": context deadline exceeded
May 03 23:28:32 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp3.tailscale.com", "2400:6180:0:d1::67d:8001") for "controlplane.tailscale.com" ...
May 03 23:28:32 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp3.tailscale.com", "2400:6180:0:d1::67d:8001") for "controlplane.tailscale.com" error: Get "https://derp3.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": dial tcp [2400:6180:0:d1::67d:8001]:443: connect: network is unreachable
May 03 23:28:32 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp1c.tailscale.com", "104.248.8.210") for "controlplane.tailscale.com" ...
May 03 23:28:35 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp1c.tailscale.com", "104.248.8.210") for "controlplane.tailscale.com" error: Get "https://derp1c.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": context deadline exceeded
May 03 23:28:35 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp12.tailscale.com", "2001:19f0:5c01:289:5400:3ff:fe8d:cb5e") for "controlplane.tailscale.com" ...
May 03 23:28:35 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp12.tailscale.com", "2001:19f0:5c01:289:5400:3ff:fe8d:cb5e") for "controlplane.tailscale.com" error: Get "https://derp12.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": dial tcp [2001:19f0:5c01:289:5400:3ff:fe8d:cb5e]:443: connect: network is unreachable
May 03 23:28:35 rust-PowerEdge-R750xs tailscaled[1618237]: Received error: fetch control key: Get "https://controlplane.tailscale.com/key?v=90": dial tcp [2a05:d014:386:202:30f5:de62:8eed:5c47]:443: connect: network is unreachable
May 03 23:28:35 rust-PowerEdge-R750xs tailscaled[1618237]: control: LoginInteractive -> regen=true
May 03 23:28:35 rust-PowerEdge-R750xs tailscaled[1618237]: control: doLogin(regen=true, hasUrl=false)
May 03 23:29:09 rust-PowerEdge-R750xs tailscaled[1618237]: logtail: dial "log.tailscale.io:443" failed: dial tcp 54.161.152.147:443: i/o timeout (in 30.001s), trying bootstrap...
May 03 23:30:48 rust-PowerEdge-R750xs tailscaled[1618237]: logtail: dial "log.tailscale.io:443" failed: dial tcp 54.161.152.147:443: i/o timeout (in 30.001s), trying bootstrap...
May 03 23:30:53 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp12b.tailscale.com", "45.63.71.144") for "controlplane.tailscale.com" ...
May 03 23:30:56 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp12b.tailscale.com", "45.63.71.144") for "controlplane.tailscale.com" error: Get "https://derp12b.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": context deadline exceeded
May 03 23:30:56 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp9.tailscale.com", "2001:19f0:6401:1d9c:5400:2ff:feef:bb82") for "controlplane.tailscale.com" ...
May 03 23:30:56 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp9.tailscale.com", "2001:19f0:6401:1d9c:5400:2ff:feef:bb82") for "controlplane.tailscale.com" error: Get "https://derp9.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": dial tcp [2001:19f0:6401:1d9c:5400:2ff:feef:bb82]:443: connect: network is unreachable
May 03 23:30:56 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp12c.tailscale.com", "149.28.119.105") for "controlplane.tailscale.com" ...
May 03 23:30:59 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp12c.tailscale.com", "149.28.119.105") for "controlplane.tailscale.com" error: Get "https://derp12c.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": context deadline exceeded
May 03 23:30:59 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp7.tailscale.com", "2401:c080:1000:467f:5400:2ff:feee:22aa") for "controlplane.tailscale.com" ...
May 03 23:30:59 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp7.tailscale.com", "2401:c080:1000:467f:5400:2ff:feee:22aa") for "controlplane.tailscale.com" error: Get "https://derp7.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": dial tcp [2401:c080:1000:467f:5400:2ff:feee:22aa]:443: connect: network is unreachable
May 03 23:30:59 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp3.tailscale.com", "68.183.179.66") for "controlplane.tailscale.com" ...
May 03 23:31:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp3.tailscale.com", "68.183.179.66") for "controlplane.tailscale.com" error: Get "https://derp3.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": context deadline exceeded
May 03 23:31:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: trying bootstrapDNS("derp1c.tailscale.com", "2604:a880:800:10::7a0:e001") for "controlplane.tailscale.com" ...
May 03 23:31:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: bootstrapDNS("derp1c.tailscale.com", "2604:a880:800:10::7a0:e001") for "controlplane.tailscale.com" error: Get "https://derp1c.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": dial tcp [2604:a880:800:10::7a0:e001]:443: connect: network is unreachable
May 03 23:31:02 rust-PowerEdge-R750xs tailscaled[1618237]: [RATELIMIT] format("control: bootstrapDNS(%q, %q) for %q error: %v")
May 03 23:31:02 rust-PowerEdge-R750xs tailscaled[1618237]: Received error: fetch control key: Get "https://controlplane.tailscale.com/key?v=90": dial tcp [2a05:d014:386:202:30f5:de62:8eed:5c47]:443: connect: network is unreachable
May 03 23:31:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: LoginInteractive -> regen=true
May 03 23:31:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: doLogin(regen=true, hasUrl=false)
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: Start
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: client.Shutdown()
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: client.Shutdown
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: authRoutine: exiting
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: updateRoutine: exiting
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: mapRoutine: exiting
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: Client.Shutdown done.
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: Backend: logs: be:14bac8e93e829ff292ecd77ba8eb47c9abc123d7e992730956ef34689bf82bca fe:
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: Switching ipn state NoState -> NeedsLogin (WantRunning=true, nm=false)
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: blockEngineUpdates(true)
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: Reconfig(down): no changes made to Engine config
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: StartLoginInteractive: url=false
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: client.Login(false, 2)
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: LoginInteractive -> regen=true
May 03 23:32:02 rust-PowerEdge-R750xs tailscaled[1618237]: control: doLogin(regen=true, hasUrl=false)
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: Start
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: control: client.Shutdown()
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: control: client.Shutdown
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: control: updateRoutine: exiting
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: control: authRoutine: exiting
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: control: mapRoutine: exiting
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: control: Client.Shutdown done.
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: Backend: logs: be:14bac8e93e829ff292ecd77ba8eb47c9abc123d7e992730956ef34689bf82bca fe:
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: Switching ipn state NoState -> NeedsLogin (WantRunning=true, nm=false)
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: blockEngineUpdates(true)
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: Reconfig(down): no changes made to Engine config
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: StartLoginInteractive: url=false
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: control: client.Login(false, 2)
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: control: LoginInteractive -> regen=true
May 03 23:32:15 rust-PowerEdge-R750xs tailscaled[1618237]: control: doLogin(regen=true, hasUrl=false)
May 03 23:32:26 rust-PowerEdge-R750xs tailscaled[1618237]: logtail: dial "log.tailscale.io:443" failed: dial tcp 54.161.152.147:443: i/o timeout (in 30.001s), trying bootstrap...

Are there any recent changes that introduced the issue?

No response

OS

Linux

OS version

Ununtu 20.04

Tailscale version

1.64.0

Other software

No response

Bug report

No response

@bcookatpcsd
Copy link

Sorry to poke in here..

Are you saying that you need to use a proxy to connect to the internet from this machine?

Have you defined the proxy within this terminal?

Do an env do you have an http_proxy or https_proxy defined? (It could also be upper case)

Assuming bash shell here..

Just sudo su - (just be root)

Then env

If it's not defined (meaning there is no http_ or https_ in the output)

export https_proxy=http://your.ip.add.ress:port

Then do an env and see the https_ variable set..

Then try tailscale up

I can't say that I've used ts with a proxy..

But if it does work, that would be what seems to be missing here..

HTH

@xizheyin
Copy link
Author

xizheyin commented May 4, 2024 via email

@agottardo
Copy link
Contributor

If I want to log in at tailscale, I may have to ping log.tailscale.io first

That's not the case. Connections to log.tailscale.io are optional. As a matter of fact, some users block connections to that server entirely. The service will still work properly without it. log.tailscale.io is only used by the client to upload errors and debug messages so that our support team can investigate issues when you contact them.

There's likely something else going on with your setup. context deadline exceeded and network is unreachable indicate Tailscale cannot reach our servers. You need to be able to connect to controlplane.tailscale.com at a minimum in order for Tailscale to work.

As @bcookatpcsd suggested above, Tailscale follows the HTTPS_PROXY or ALL_PROXY environment variables. You'll need to specify those to use a proxy.

Once those are set up, what's the output of curl -vvv https://controlplane.tailscale.com? Can you try also running that command on another computer on your network? You need to understand if there is something wrong with your computer, or your network is blocking Tailscale entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants