Hi wondering if you had any thoughts on whether this as possible? Iβ¦e running the script from the CLI would always check for an updated script? And download it?
update-tailscale.sh
thanks
Hi wondering if you had any thoughts on whether this as possible? Iβ¦e running the script from the CLI would always check for an updated script? And download it?
update-tailscale.sh
thanks
Feel free to add the necessary cronjobs to your crontab.
Use the --force
switch so it will skip all confirmations.
Thanks for the script, it worked with Mudi. However, every command with βtailscaleβ results in βSegmentation faultβ as response and I cannot set manual commands for subnet or exit node. Any ideas how to troubleshoot or fix it? βTailscaled -versionβ gives fine result, βtailscale versionβ outputs segmentation fault.
I donβt own an Mudi so I canβt test it right now. Could be possible that the newest tailscale version does not work on Mudi.
Could be indeed, however, from Tailscale GUI I can enable it and subnets and seem to work fine so far, only command line fails. Is there a way to install earlier version of Tailscale with script or best to do manually? Thanks.
Manually is the only way, sorry.
What is βTailscaleβ? For what it is used for?
What is βTailscaleβ? For what it is used for?
Iβm trying to update tailscale on my ar750s but Iβm running into an issue where it wonβt update. At the section βinstalling tailscaleβ
Stopping tailscale β¦
Moving tailscale to /usr/sbin β¦
mv: canβt rename β/tmp/tailscale//tailscaleβ: No such file or directory
mv: canβt rename '/tmp/tailscale//tailscaledβ: No such file or directory
Removing temporary files β¦
Restarting tailscale β¦
After it restarts it still 1.32.3, this scrips work on my mt-3000.
Please post the complete log.
Checking if prerequisites are met β¦
β Firmware version: 4
β Architecture: mips
β Available space: 81 MB
β xz is installed.
β Prerequisites are met.
Do you want to continue? (y/N)
y
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β G E T T I N G N E W E S T T A I L S C A L E V E R S I O N β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Detecting latest tailscale version β¦
The latest tailscale version is: tailscale_1.64.0_mips.tgz
Downloading latest tailscale version β¦
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β C O M P R E S S B I N A R I E S W I T H U P X β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Do you want to compress the binaries with UPX to save space? (y/N) y
Ensuring xz is present β¦
Getting UPX β¦
tar: canβt open β/tmp/tailscale.tar.gzβ: No such file or directory
Compressing tailscale with UPX β¦
This might take 2-3 minutes, depending on your router.
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2024
UPX 4.2.3 Markus Oberhumer, Laszlo Molnar & John Reiser Mar 27th 2024
File size Ratio Format Name
upx: /tmp/tailscale//tailscale: FileNotFoundException: /tmp/tailscale//tailscale: No such file or directory
Packed 0 files.
Command exited with non-zero status 1
0.11
tar: canβt open β/tmp/tailscale.tar.gzβ: No such file or directory
Compressing tailscaled with UPX β¦
This might take 2-3 minutes, depending on your router.
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2024
UPX 4.2.3 Markus Oberhumer, Laszlo Molnar & John Reiser Mar 27th 2024
File size Ratio Format Name
upx: /tmp/tailscale//tailscaled: FileNotFoundException: /tmp/tailscale//tailscaled: No such file or directory
Packed 0 files.
Command exited with non-zero status 1
0.13
rm: canβt remove β/tmp/tailscale.tar.gzβ: No such file or directory
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β C R E A T I N G B A C K U P O F T A I L S C A L E β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Creating backup of tailscale config β¦
Backup created: /root/tailscale_config_backup/2024-04-26_04-18-27.tar.gz
The binaries will not be backed up, you can restore them by using the --restore flag.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β I N S T A L L I N G T A I L S C A L E β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Stopping tailscale β¦
Moving tailscale to /usr/sbin β¦
mv: canβt rename β/tmp/tailscale//tailscaleβ: No such file or directory
mv: canβt rename '/tmp/tailscale//tailscaledβ: No such file or directory
Removing temporary files β¦
Restarting tailscale β¦
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β U P G R A D E P E R S I S T A N C E β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The update was successful. Do you want to make the installation permanent?
This will make your tailscale installation persistent over firmware upgrades.
Please note that this is not officially supported by GL.iNet.
It could lead to issues, even if not likely. Just keep that in mind.
In worst case, you might need to remove the config from /etc/sysupgrade.conf
Do you want to make the installation permanent? (y/N)
If I donβt compress the files I still get errors.
Detecting latest tailscale version β¦
The latest tailscale version is: tailscale_1.64.0_mips.tgz
Downloading latest tailscale version β¦
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β C O M P R E S S B I N A R I E S W I T H U P X β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Do you want to compress the binaries with UPX to save space? (y/N) n
Extracting tailscale without compression β¦
tar: canβt open β/tmp/tailscale.tar.gzβ: No such file or directory
rm: canβt remove β/tmp/tailscale.tar.gzβ: No such file or directory
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β C R E A T I N G B A C K U P O F T A I L S C A L E β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Creating backup of tailscale config β¦
Backup created: /root/tailscale_config_backup/2024-04-26_04-21-25.tar.gz
The binaries will not be backed up, you can restore them by using the --restore flag.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β I N S T A L L I N G T A I L S C A L E β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Stopping tailscale β¦
Moving tailscale to /usr/sbin β¦
mv: canβt rename β/tmp/tailscale//tailscaleβ: No such file or directory
mv: canβt rename '/tmp/tailscale//tailscaledβ: No such file or directory
Removing temporary files β¦
Restarting tailscale β¦
Yup, seems like the download fails. Will further investigate.
I updated the script to check if the download was successfully before continuing.
@Vincent123 please re-run the script.
No, itβs an error with your device / internet connection.
Checking if prerequisites are met β¦
β Firmware version: 4
β Architecture: mips
β Available space: 81 MB
β xz is installed.
β Prerequisites are met.
Do you want to continue? (y/N)
y
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β G E T T I N G N E W E S T T A I L S C A L E V E R S I O N β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Detecting latest tailscale version β¦
The latest tailscale version is: tailscale_1.64.0_mips.tgz
Downloading latest tailscale version β¦
ERROR: Could not download tailscale. Exiting β¦
Guess the update file does not exist?
It does. Do you use VPN or something like that?
I have adblock on my main router that my ar750s is connected to and I do have vpn on my ar750s. I have disabled vpn on my ar750s and have tethered my phone connection to it to eliminate my main router and it is still the same, guess I canβt update it.
Can you please execute:
wget -O /tmp/tailscale.tar.gz "https://pkgs.tailscale.com/stable/tailscale_1.64.0_mips.tgz"