Comments (11)
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.
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.
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.
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.
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.
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.
...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.
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.
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.
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.
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)
- Kernel mode networking allows subnet routing to other machines on the local network HOT 1
- Make `TAILSCALE_ROOT` in on-boot.sh firmware version agnostic
- `TAILSCALE_ROOT` undefined when firmware version 2+
- Not possible to install on my Dream machine pro HOT 1
- 2.5.17 - debian stretch-backports no Release file. HOT 2
- Install fails due to upstream apt repository issues (404 Not Found/401 Unauthorized) HOT 4
- Exit Node Issue
- Unable to route towards/over tailscale from UDM LAN (UDM Pro v3.0.20) HOT 3
- Unable to Install on UDMP HOT 4
- TAILSCALE_FLAGS unused in 2.x version HOT 1
- Exit Node selected but offline HOT 1
- While on Dream Machine Pro, cannot ping or resolve other tailnet devices HOT 1
- tailscaled.service is masked, unable to start service (and therefore unable to connect to tailnet) HOT 2
- Add support for installing beta versions of Tailscale
- `apt-key add` doesn't work on debian bullseye HOT 1
- Error installing tailscale-install.timer -- file exists HOT 2
- Update Timer is not being packaged leading to error HOT 3
- UniFi OS v4 HOT 3
- Integration of P2P via "Site Magic" /w remote leg on Starlink is an ITSM nightmare. NEED TS-UDM on 4.0.3 HOT 1
- unable to run tailscale up command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailscale-udm.