Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Reauthenticate Tailscale after reboot

Featured Replies

Hi,

 

I have to reauthenticate Tailscale in Unraid 7 and every docker app that uses Tailscale after a reboot.

I use the latest Tailscale plugin (not the docker one)

Is there a solution?

 

Many thanks for help

 

Solved by SL99999999

  • Author

7.0.0

51 minutes ago, SL99999999 said:

I have to reauthenticate Tailscale in Unraid 7 and every docker app that uses Tailscale after a reboot.

Are you using the Integration in the Docker Templates, so to speak:
grafik.thumb.png.aafda83da78f9c13c4168ba29810f89a.png

 

or do you use the Sidcear method, TSDProxy or the Tailscale Plugin exclusively?

  • Author

I use the integration as in the picture

3 hours ago, SL99999999 said:

I use the integration as in the picture

Okay, what container gives you issues? It might be possible that the wrong state directory is selected.

You can set the state directory manually by opening the Docker template, enabled "Tailscale Show Advanced Settings" and at "Tailscale State Directory" enter a persistent storage path from inside the container (not the path on the host):

grafik.thumb.png.bf4aaeeafc991ef5aaaf688be9f4ee5e.png

 

In this case the path in the container would be "/firefox" and if you need or want to set it manually you would need to enter this directory followed by a directory where you want to store the files for Tailscale (I would recommend to use a "." at the beginning because then the directory is hidden) so to speak the path would be: "/firefox/.tailscale_state"

  • Author

I can't login anymore to Tailscale (no more login link presented in the log) after changing the path,  even when i change it back.

1 hour ago, SL99999999 said:

I can't login anymore to Tailscale (no more login link presented in the log) after changing the path,  even when i change it back.

Please check the whole log, sometimes the autheticatuon link is displayed at the very top in the logs.

 

You also can generate a token and then add add the token into the extra parameters as described in the Tailscale documentation:

https://tailscale.com/kb/1085/auth-keys#generate-an-auth-key

 

This should then look something like that:
grafik.thumb.png.1ac6b3c15bc0659111053af772da66c9.png

(after the container is again in your Tailnet it is safe to remove the auth key)

  • Author

SSS.thumb.jpg.7b5daf51a0c1ccae53e9dca72e064adc.jpg

3 minutes ago, SL99999999 said:

SSS.thumb.jpg.7b5daf51a0c1ccae53e9dca72e064adc.jpg

Do you need the troubleshooting packages?

 

See my post above I edited it.

 

I would also maybe recommend to:

  1. Stop the container
  2. Go into the container directory and delete the .tailscale_state directory
  3. Start the container again

I assume you possibly tried many things and now the state directory is possibky messed up.

 

However it is really interesting to me that the Unraid Tailscale Docker integration is not picking up the directory since the container is using /conf.

 

What path mappings are in your template? Do you use /mnt/user/… or do you use /mnt/cache/… or similar?

If you are using /mnt/cache/… you have to ensure that for example the share directory stays on the cache and is not moved to the Array by the mover.

  • Author

*deleting .tailscale_state = no difference

*troubleshooting packages = no difference

*i don't use cache

*adding Auth key = no difference, not showing up in tailnet, same output in log

Edited by SL99999999

16 minutes ago, SL99999999 said:

*deleting .tailscale_state = no difference

*troubleshooting packages = no difference

*i don't use cache

*adding Auth key = no difference, not showing up in tailnet, same output in log

What container are you using (Repository)?

Can you please provide a bit more information since it is really hard to troubleshoot.

Do you maybe have screenshots or anything?

  • Author

I have it with all containers.

 

I need to go to work now

to be continued...

34 minutes ago, SL99999999 said:

I have it with all containers.

 

I need to go to work now

to be continued...

Can you please post at least one container that you are having issues with?

I even don‘t know one container so that I could try it myselfe?

What container is the one with the /conf directory?

 

May I ask where you are located in the world?

  • Author

FreshRSS, Duplicati, Dailynotes

10 minutes ago, SL99999999 said:

Duplicati

grafik.thumb.png.b882138e5088b2f9b9af9318d2ab22c8.png

 

It picked up the state dir automatically:
grafik.png.40e885092eb1b6c2a4cf133ad02243be.png

 

16 minutes ago, SL99999999 said:

Dailynotes

grafik.thumb.png.ce0a52482707f457f8bf4ee138cc1b6e.png

 

Here you can see that it doesn't picked up the state directory:

grafik.thumb.png.83251fc66285e65778e41495b1fdbeb7.png

 

but after setting it manually:

grafik.png.652759be0b2892e7c76ca2a6610531e9.png

 

grafik.png.b7738b85feb366539abcb6260d2f5624.png

 

everything is working as it should

 

22 minutes ago, SL99999999 said:

FreshRSS

grafik.thumb.png.7d34bd4be46c25ab7c4ca04528e46216.png

 

After the start authentication works:

grafik.png.8475fd51cb4878a19b6929c23e07f8ef.png

 

However if you are using Serve like me you have to disable https in the nginx configuration from FreshRSS, you can simply do that by going to the directory from FreshRSS and edit the nginx default site config: .../freshrss/nginx/site-confs/default.conf and comment these two lines:

grafik.png.6544ab87d5491f1f44cee3588614b8f8.png

 

since Serve uses by default port 443 and nginx can't simply start if a application already uses 443, after that restart the container and freshrss is started.

 

 

I can now see all three container in my Tailnet:

grafik.thumb.png.9b2edc643a0d64c4194fc536eee24f17.png

 

And I can connect to them via the Tailnet:

grafik.thumb.png.a383d2a945520a1877625e4c1ea3d9df.png

 

grafik.thumb.png.6731acd0a4f8a8c363de258632a0dfa0.png


grafik.png.aeecd53561d0cc8bbbc9c608cc3c64d9.png

 

 

 

Where are you located in the world? I've seen already a few reports from China that Tailscale is not working there sometimes.

  • Author

First, many thanks for all the help

I live in Belgium, all my other homelab stuff works with Tailscale, i only have problems with Unraid.

I don't use serve.

My log never show 'To autenticate, visit:"

Edited by SL99999999

1 minute ago, SL99999999 said:

I live in Belgium, all my other homelab stuff works with Tailscale, i only have problems with Unraid.

Please note that I don't use the Tailscale Plugin on my server, if you are using it please try to disable Tailscale DNS, maybe that's the root cause of the issue but I don't think so.

 

Can you also rule out a browser issue try to refresh the browser window after it says Starting Tailscale.

 

Please maybe also try to use a key:

Go to your Tailscale Dashboard -> Settings -> Keys: https://login.tailscale.com/admin/settings/keys

Then click Generate auth key...:

grafik.png.0a054a2950d718ea6cc3d5a92ba7cdd7.png

In the following prompt klick Generate Key:

grafik.thumb.png.616fcc08ad85788b15861463f168f9c5.png

 

Copy the auth key from the following windows to your clipboard:

grafik.png.b31aacb8677d4f587247aade8ea3ae86.png

 

In the template copy the auth key to Tailscale Extra Parameters (don't forget to add --auth-key= in front of the key) :

grafik.thumb.png.c4aeef3a17171fa20e85fa9e3563159e.png

 

After that you should see that you don't get a prompt to authenticate:

grafik.thumb.png.b430fe4f090641b31746a7a37cacc36c.png

 

and in your Tailscale Dashboard you should see that the key is now invalidated since if it is used once it will be invalidated (as long as you don't set it to be Reusable) :

grafik.png.0bc25698e8c78556025fa82a465c6137.png

 

 

Are you also sure that you don't block anything for your Unraid server or you have special rules in place because it's not working?

  • Author

SOLUTION:

*add Auth key: no difference (= same log file)

*disable 'override local DNS' in Tailscale: no difference (I use Control D DNS)

*deleting Tailscale plugin from Unraid: no difference

*refresh browser CTRL+F5: NOW I CAN AUTHENICATE AGAIN

 

Wow, what a journey BUT... i have to restart the container to show up in Tailnet after a reboot.

1. reboot Unraid OK

2. array auto start OK

3. docker auto start OK

4. containers auto start OK

5. containers not showing up in Tailnet, i have to manual restart containers

 

 

 

Edited by SL99999999

1 hour ago, SL99999999 said:

*refresh browser CTRL+F5: NOW I CAN AUTHENICATE AGAIN

Oh okay, this then seems to be a browser issue.

 

1 hour ago, SL99999999 said:

Wow, what a journey BUT... i have to restart the container to show up in Tailnet after a reboot.

This is definitely not how it should work...

Are you also sure if you really need to restart the container since often times if you ping the container from another machine with: `tailscale ping <NAME>` it should respond.

I only can think of a network issue, over here everything is working even after a reboot from the whole server.

  • Author

Back to zero:

The login link is again not avaiable even with browser refresh.

I alos tried on a freshly installed Unraid with same result. ...

 

2 hours ago, SL99999999 said:

Back to zero:

The login link is again not avaiable even with browser refresh.

I alos tried on a freshly installed Unraid with same result. ...

 

And what about the auth key?

When this method also doesn't work I assume something is wrong when the container tries to connect with Tailscale.

Do you have any AdBlocking or Unifi network gear on your network, at least from my game servers support thread Unifi network gear can be quiet tricky because it's very picky when it comes to IDS and IPS.

  • Author
  • Solution

REAL SOLUTION :)

There are some real clever people on this world   (ich777)

 

It was indeed IDS & IPS threat managment

My router was flooded with  "ET USER_AGENTS Go HTTP Client User-Agent" intrusions in the log with all the IP addresses used by Tailnet.

I suppresesed the intrusions and my Tailnet came alive. 

Even the reboot problem is solved. No need to re-authenticate again.

 

Many many thanks to ich777 for your patience and excellent guides.

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.