Code Monkey home page Code Monkey logo

Comments (11)

notheotherben avatar notheotherben commented on June 7, 2024 1

Thanks @bennettp123, I've not yet had the chance to test this on a UniFi OS 2.x device myself, so these details are extremely helpful.

I'll see what we can put together for those issues and let you know. One of the options around state is to configure the state directory using a flag when we start tailscaled, so that may also be a good option.

from tailscale-udm.

notheotherben avatar notheotherben commented on June 7, 2024 1

Okay, I've published v2.3.2 which should address most of these issues, however I've not yet had the chance to test it against a real firmware upgrade (I've not received one since my UDM recently got updated to 2.x).

I'm hoping that the switch to using apt to install Tailscale should ensure it is re-installed after a firmware upgrade, however the /etc/default/tailscaled file might not include the required changes, in which case running /data/tailscale/manage.sh install should set things up correctly (and continue to use your original state file).

from tailscale-udm.

GlitchWitch avatar GlitchWitch commented on June 7, 2024 1

We had our tailscale instance on our UDM go missing as well. However the upgrade was from 1.12.33 to 1.12.38. Running the latest install script seems to have solved it.

Edit: The upgrade from 1.12.38 to 2.4.27 caused tailscale to be removed again. Will update with the results of the next 2.x update.

from tailscale-udm.

notheotherben avatar notheotherben commented on June 7, 2024 1

Thanks, I'm surprised that the 1.12.33 → 1.12.38 update resulted in it being removed as 1.x upgrades traditionally retained the contents of the /mnt/data partition. The upgrade from 1.x to 2.x is expected to wipe all content on the device, so that's normal - and I'll be keeping a close eye on 2.x to 2.x updates to see if they work correctly.

from tailscale-udm.

notheotherben avatar notheotherben commented on June 7, 2024 1

Thanks @GlitchWitch, I've put together #54 with the goal of solving the persistence issues (and implementing the auto-update functionality). That's going to require some testing (with a firmware upgrade on an eligible device). I've included testing steps in #54 and I'll look to get that PR merged once I (or someone else) has had a chance to confirm that it works correctly.

from tailscale-udm.

notheotherben avatar notheotherben commented on June 7, 2024 1

Okay folks, I've got #54 tested and working on my local UDM, I'll get that packaged up and a new release out shortly.

from tailscale-udm.

notheotherben avatar notheotherben commented on June 7, 2024 1

...and you'll find the release notes for v2.4.0 here.

Please let me know if you run into any issues at all with it.

from tailscale-udm.

bennettp123 avatar bennettp123 commented on June 7, 2024

I suspect this is not implemented. Unifi firmware upgrades typically only retain the contents of /data (uniOS 2.x) or /mnt/data (uniOS 1.x).

I can think of two things that need to be fixed to get tailscale to persist across firmware updates:

  • reinstall the tailscale package—I thought the firmware upgrade handled this automatically, so not sure what went wrong here—perhaps it was skipped (or failed) because it was installed using dpkg instead of apt-get?
  • retain tailscale state after firmware update (/var/lib/tailscale, possibly more)

For reinstalling the package, we could probably just add that to the on_boot script

For the tailscale state, we could just replace it with a symlink to a folder in /data or /mnt/data

from tailscale-udm.

notheotherben avatar notheotherben commented on June 7, 2024

Just a heads up that I've added #41 with the hope that it'll ensure Tailscale is installed automatically after the OS is updated (it ensures that the correct apt source is present and we use that for installs).

I'll look at putting together something for the state directory as well (probably editing /etc/default/tailscaled to tell it to use /data/tailscale for state.

from tailscale-udm.

mhubig avatar mhubig commented on June 7, 2024

Automatic UDM Pro update from version 1.12.38 to 2.5.17 wiped the Tailscale installation. Reinstalling with curl -sSLq https://raw.github.com/SierraSoftworks/tailscale-udm/main/install.sh | sh immediately fixed the issue.

from tailscale-udm.

GlitchWitch avatar GlitchWitch commented on June 7, 2024

Just had our UDM Pro upgrade from 2.4.27 to 2.5.17, Tailscale did not stick around with it and the UDM has shown offline in the tailscale machine's list since the upgrade completed.

When we SSH in, it seems tailscale is no longer installed but the configuration remains.

Reinstalling and reissuing tailscale up allows it to connect again without any further configuration.

Is there any extra data we can provide to help with troubleshooting @notheotherben

from tailscale-udm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.