netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
11.32k stars 519 forks source link

Updating NetBird #1105

Closed Aqua1ung closed 10 months ago

Aqua1ung commented 1 year ago

How does one update NetBird when it's been installed "using binary files"?

Aqua1ung commented 1 year ago

The dev team will update the installation script to handle updates for installations using binary files.

Aqua1ung commented 1 year ago

Updating Netbird using curl -fsSL https://pkgs.netbird.io/install.sh | sh -s -- --update fails:

mom@Spectre~/Applications $ curl -fsSL https://pkgs.netbird.io/install.sh | sh -s -- --update
Updating NetBird ...

Password: 
NetBird new version (0.23.4) available. Updating...

Initiating NetBird update. This will stop the netbird service and restart it after the update
Netbird service has been stopped
Netbird has been uninstalled
Installing netbird from https://github.com/netbirdio/netbird/releases/download/v0.23.4/netbird_0.23.4__amd64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     9  100     9    0     0     52      0 --:--:-- --:--:-- --:--:--    53
mkdir: cannot create directory ‘’: No such file or directory
Aqua1ung commented 1 year ago

Latest NetBird update (0.23.6) using curl -fsSL https://pkgs.netbird.io/install.sh | sh -s -- --update fails (NB: it was working fine with 0.23.5(!)):

Updating NetBird ...

The installation will be performed using binary files
Password: 
NetBird new version (0.23.6) available. Updating...

Initiating NetBird update. This will stop the netbird service and restart it after the update
Netbird service has been stopped
Netbird has been uninstalled
Installing netbird from https://github.com/netbirdio/netbird/releases/download/v0.23.6/netbird_0.23.6_linux_amd64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     9  100     9    0     0     59      0 --:--:-- --:--:-- --:--:--    59
gzip: skipping: <stdin> unrecognized format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Aqua1ung commented 1 year ago

The 0.23.6 debacle has been fixed. Nevertheless, it appears that one needs to manually quit netbird-ui before updating netbird using the curl -fsSL https://pkgs.netbird.io/install.sh | sh -s -- --update command, otherwise netbird-ui will not be updated.