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

Failed to login #477

Closed
NicodemPL opened this issue Feb 21, 2025 · 12 comments
Closed

Failed to login #477

NicodemPL opened this issue Feb 21, 2025 · 12 comments

Comments

@NicodemPL
Copy link

After installation, cannot get login to tailscale via Open Web UI.
Always getting "Failed to login" error.
Tried with Arc, Chrome, Safari - same errors.

Is there any workaround to build link for activation?

@lmagyar
Copy link
Contributor

lmagyar commented Feb 21, 2025

It seems to be a bug in tailscale web ui, it happens when you are accessing HA with http, not https.

Please open an issue at the tailscale repo.

Workaround: try https to access HA, or see the add-on's log, there is a line:

To authenticate, visit:
	https://login.tailscale.com/a/xxxxxxxxxxxxxxxx

@Lorca-R
Copy link

Lorca-R commented Feb 24, 2025

It seems to be a bug in tailscale web ui, it happens when you are accessing HA with http, not https.

Please open an issue at the tailscale repo.

Workaround: try https to access HA, or see the add-on's log, there is a line:

To authenticate, visit:
	https://login.tailscale.com/a/xxxxxxxxxxxxxxxx

I'm using HTTPS, but I'm still encountering the problem.

I saw a post request sent to https://nas.xxxxxxx.com:7182/api/hassio_ingress/dmxxxxxxxxxxxxxxxxxxxxxxxkPs/api/up, which resulted in a 403 Forbidden error with the message "Forbidden - origin invalid."

It seems Tailscale may have reverted to a previous version, so this issue might be related.

The workaround is working great, thank you.

@lmagyar
Copy link
Contributor

lmagyar commented Feb 24, 2025

This seems to be the correct TS issue: tailscale/tailscale#15065

@lmagyar
Copy link
Contributor

lmagyar commented Feb 24, 2025

It seems Tailscale may have reverted to a previous version, so this issue might be related.

UmbrelOS reverted it's TS client to a previous version due to the bug, TS hasn't done anything with this issue.

@pustek
Copy link

pustek commented Feb 24, 2025

I have installed 1st time, need to check the log, visit the page and login. Then it paired to account.

@tolwan
Copy link

tolwan commented Feb 24, 2025

Same isseu here , failed to connect

@coo-private
Copy link

It seems to be a bug in tailscale web ui, it happens when you are accessing HA with http, not https.

Please open an issue at the tailscale repo.

Workaround: try https to access HA, or see the add-on's log, there is a line:

To authenticate, visit:
	https://login.tailscale.com/a/xxxxxxxxxxxxxxxx

unfortunately this does not solve the problem of remote access.

This only works if you are physically in the same local network.
But from an external network (Mobile - for example) - HASS blocks the connection.

@NicodemPL
Copy link
Author

unfortunately this does not solve the problem of remote access.

This only works if you are physically in the same local network. But from an external network (Mobile - for example) - HASS blocks the connection.

If you are on free version of Tailscale you have to be in the TS network, this is not visible from outside. Can be exposed if you have paid plan for Tailscale.

@NicodemPL
Copy link
Author

Workaround: try https to access HA, or see the add-on's log, there is a line:

To authenticate, visit:
	https://login.tailscale.com/a/xxxxxxxxxxxxxxxx

This works fine and seems to be only solution available now.

@coo-private
Copy link

coo-private commented Feb 25, 2025

It's very strange. Because I found this way myself a few days ago (wrote about it here - https://community.home-assistant.io/t/problem-with-login-tailscale-on-vm-hass-os/851859)

Connection between HASS and Teilscale is successful. And the application sees my HASS server (admin panel in web interface, personal cabinet).

Image

But what I've encountered.
Steps to reproduce

  1. I have the Teilscale app installed on my phone
  2. The HASS application is installed on my phone.
  3. My phone is in my home wifi network
  4. When I open the HASS application, everything is fine,

  1. My phone is disconnected from the home network.
  2. My phone is connected to the internet via mobile network.
  3. When opening the HASS application - it cannot establish a connection with the home server.

@NicodemPL
Copy link
Author

NicodemPL commented Feb 25, 2025 via email

@coo-private
Copy link

What server settings you have in app? Looks like you still use local address when connected to tailscale.

You mean field "external address" in mobile app?
I've tried everything.
I tried the address listed here.

Image

for example: http://100.100.1.15:8123

Image

Image

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

No branches or pull requests

6 participants