[GH-ISSUE #5280] Log line in install.sh doesn't show tag #10910

Open
opened 2026-08-05 01:27:40 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @gene1wood on GitHub (Feb 9, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5280

Describe the problem

There's a small bug in install.sh.

6981fdce7e/release_files/install.sh (L55)

The download_release_binary function tries to echo out the TAG_NAMEvariable, but this variable is local to the subshell which calls the get_release function and so is not available. This results in the output always showing

Using the following tag name for binary installation:

With no tag name.

To Reproduce

Steps to reproduce the behavior:

  1. Run install.sh on a system that uses binary installs (e.g. GitHub Action under Ubuntu) or force binary install by running USE_BIN_INSTALL=true install.sh

Expected behavior

In the displayed output it should show

Using the following tag name for binary installation: v0.64.5

Are you using NetBird Cloud?

Yes

NetBird version

v0.64.5

Is any other VPN software installed?

No

Debug output

root@40f11c7adfec:/# USE_BIN_INSTALL=true bash -x install.sh
+ set -e
+ CONFIG_FOLDER=/etc/netbird
+ CONFIG_FILE=/etc/netbird/install.conf
+ OWNER=netbirdio
+ REPO=netbird
+ CLI_APP=netbird
+ UI_APP=netbird-ui
+ OS_NAME=
+ OS_TYPE=
++ uname -m
+ ARCH=x86_64
+ PACKAGE_MANAGER=bin
+ INSTALL_DIR=
+ SUDO=
+ command -v sudo
+ command -v doas
+ '[' -z ']'
+ NETBIRD_RELEASE=latest
+ TAG_NAME=
+ '[' -z '' ']'
+ SKIP_UI_APP=false
+ type uname
+ case "$(uname)" in
++ uname
+ OS_TYPE=linux
++ uname -a
+ UNAME_OUTPUT='Linux 40f11c7adfec 6.17.9-76061709-generic #202511241048~1764704751~22.04~b24b425 SMP PREEMPT_DYNAMIC Tue D x86_64 x86_64 x86_64 GNU/Linux'
+ echo 'Linux 40f11c7adfec 6.17.9-76061709-generic #202511241048~1764704751~22.04~b24b425 SMP PREEMPT_DYNAMIC Tue D x86_64 x86_64 x86_64 GNU/Linux'
+ grep -qi synology
+ '[' -f /etc/os-release ']'
++ . /etc/os-release
+++ PRETTY_NAME='Ubuntu 24.04.3 LTS'
+++ NAME=Ubuntu
+++ VERSION_ID=24.04
+++ VERSION='24.04.3 LTS (Noble Numbat)'
+++ VERSION_CODENAME=noble
+++ ID=ubuntu
+++ ID_LIKE=debian
+++ HOME_URL=https://www.ubuntu.com/
+++ SUPPORT_URL=https://help.ubuntu.com/
+++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
+++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
+++ UBUNTU_CODENAME=noble
+++ LOGO=ubuntu-logo
++ echo ubuntu
+ OS_NAME=ubuntu
+ INSTALL_DIR=/usr/bin
+ '[' x86_64 '!=' amd64 ']'
+ '[' x86_64 '!=' arm64 ']'
+ '[' x86_64 '!=' x86_64 ']'
+ '[' -z '' ']'
+ SKIP_UI_APP=true
+ echo 'NetBird UI installation will be omitted as Linux does not run desktop environment'
NetBird UI installation will be omitted as Linux does not run desktop environment
+ check_use_bin_variable
+ '[' true-x = true-x ']'
+ echo 'The installation will be performed using binary files'
The installation will be performed using binary files
+ return 0
+ PACKAGE_MANAGER=bin
+ UPDATE_FLAG=
+ '[' -x = true-x ']'
+ case "$UPDATE_FLAG" in
+ install_netbird
++ command -v netbird
+ '[' -x '' ']'
+ case "$PACKAGE_MANAGER" in
+ '[' ubuntu = nixos ']'
+ install_native_binaries
+ case "$ARCH" in
+ ARCH=amd64
+ download_release_binary netbird
++ get_release latest
++ local RELEASE=latest
++ '[' latest = latest ']'
++ local TAG=latest
++ local URL=https://pkgs.netbird.io/releases/latest
++ OUTPUT=
++ '[' -n '' ']'
+++ curl -s https://pkgs.netbird.io/releases/latest
++ OUTPUT='{
  "url": "https://api.github.com/repos/netbirdio/netbird/releases/282644671",
  "assets_url": "https://api.github.com/repos/netbirdio/netbird/releases/282644671/assets",

...SNIP...

    "eyes": 0
  },
  "mentions_count": 2
}'
+++ grep -Eo '\"tag_name\":\s*\"v([0-9]+\.){2}[0-9]+"'
+++ tail -n 1
+++ echo '{' '"url":' '"https://api.github.com/repos/netbirdio/netbird/releases/282644671",' '"assets_url":' '"https://api.github.com/repos/netbirdio/netbird/releases/282644671/assets",' '"upload_url":' '"https://uploads.github.com/repos/netbirdio/netbird/releases/282644671/assets{?name,label}",' '"html_url":' '"https://github.com/netbirdio/netbird/releases/tag/v0.64.5",' '"id":' 282644671, '"author":' '{' '"login":' '"pascal-fischer",' '"id":' 32096965, '"node_id":' 

...SNIP...

'[CVE-YYYY-XXXXX]' once the CVE ID is 'assigned",' '"reactions":' '{' '"url":' '"https://api.github.com/repos/netbirdio/netbird/releases/282644671/reactions",' '"total_count":' 8, '"+1":' 0, '"-1":' 0, '"laugh":' 0, '"hooray":' 0, '"confused":' 0, '"heart":' 8, '"rocket":' 0, '"eyes":' 0 '},' '"mentions_count":' 2 '}'
++ TAG_NAME='"tag_name": "v0.64.5"'
++ grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+'
++ echo '"tag_name": "v0.64.5"'
+ VERSION=v0.64.5
+ echo 'Using the following tag name for binary installation: '
Using the following tag name for binary installation: 
+ BASE_URL=https://github.com/netbirdio/netbird/releases/download
+ BINARY_BASE_NAME=0.64.5_linux_amd64.tar.gz
+ '[' linux = darwin ']'
+ '[' netbird = netbird-ui ']'
+ BINARY_NAME=netbird_0.64.5_linux_amd64.tar.gz
+ DOWNLOAD_URL=https://github.com/netbirdio/netbird/releases/download/v0.64.5/netbird_0.64.5_linux_amd64.tar.gz
+ echo 'Installing netbird from https://github.com/netbirdio/netbird/releases/download/v0.64.5/netbird_0.64.5_linux_amd64.tar.gz'
Installing netbird from https://github.com/netbirdio/netbird/releases/download/v0.64.5/netbird_0.64.5_linux_amd64.tar.gz
+ '[' -n '' ']'
+ cd /tmp
+ curl -LO https://github.com/netbirdio/netbird/releases/download/v0.64.5/netbird_0.64.5_linux_amd64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 12.8M  100 12.8M    0     0  19.9M      0 --:--:-- --:--:-- --:--:-- 19.9M
+ '[' linux = darwin ']'
+ mkdir -p /usr/bin
+ tar -xzvf netbird_0.64.5_linux_amd64.tar.gz
LICENSE
LICENSES/AGPL-3.0.txt
LICENSES/BSD-3-Clause.txt
LICENSES/REUSE.toml
README.md
netbird
+ mv netbird /usr/bin/
+ true
+ '[' ubuntu = synology ']'
+ mkdir -p /etc/netbird
+ echo package_manager=bin
+ tee /etc/netbird/install.conf
+ '[' bin '!=' rpm-ostree ']'
+ '[' bin '!=' pkg ']'
+ netbird service install
NetBird service has been installed
+ netbird service start
NetBird service has been started
+ echo 'Installation has been finished. To connect, you need to run NetBird by executing the following command:'
Installation has been finished. To connect, you need to run NetBird by executing the following command:
+ echo ''

+ echo 'netbird up'
netbird up

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @gene1wood on GitHub (Feb 9, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5280 **Describe the problem** There's a small bug in [`install.sh`]( https://github.com/netbirdio/netbird/blob/main/release_files/install.sh). https://github.com/netbirdio/netbird/blob/6981fdce7e86640b9ff1c222a807390296fc684c/release_files/install.sh#L55 The `download_release_binary` function tries to echo out the `TAG_NAME`variable, but this variable is local to the subshell which calls the `get_release` function and so is not available. This results in the output always showing > Using the following tag name for binary installation: With no tag name. **To Reproduce** Steps to reproduce the behavior: 1. Run `install.sh` on a system that uses binary installs (e.g. GitHub Action under Ubuntu) or force binary install by running `USE_BIN_INSTALL=true install.sh` **Expected behavior** In the displayed output it should show > Using the following tag name for binary installation: v0.64.5 **Are you using NetBird Cloud?** Yes **NetBird version** v0.64.5 **Is any other VPN software installed?** No **Debug output** ``` root@40f11c7adfec:/# USE_BIN_INSTALL=true bash -x install.sh + set -e + CONFIG_FOLDER=/etc/netbird + CONFIG_FILE=/etc/netbird/install.conf + OWNER=netbirdio + REPO=netbird + CLI_APP=netbird + UI_APP=netbird-ui + OS_NAME= + OS_TYPE= ++ uname -m + ARCH=x86_64 + PACKAGE_MANAGER=bin + INSTALL_DIR= + SUDO= + command -v sudo + command -v doas + '[' -z ']' + NETBIRD_RELEASE=latest + TAG_NAME= + '[' -z '' ']' + SKIP_UI_APP=false + type uname + case "$(uname)" in ++ uname + OS_TYPE=linux ++ uname -a + UNAME_OUTPUT='Linux 40f11c7adfec 6.17.9-76061709-generic #202511241048~1764704751~22.04~b24b425 SMP PREEMPT_DYNAMIC Tue D x86_64 x86_64 x86_64 GNU/Linux' + echo 'Linux 40f11c7adfec 6.17.9-76061709-generic #202511241048~1764704751~22.04~b24b425 SMP PREEMPT_DYNAMIC Tue D x86_64 x86_64 x86_64 GNU/Linux' + grep -qi synology + '[' -f /etc/os-release ']' ++ . /etc/os-release +++ PRETTY_NAME='Ubuntu 24.04.3 LTS' +++ NAME=Ubuntu +++ VERSION_ID=24.04 +++ VERSION='24.04.3 LTS (Noble Numbat)' +++ VERSION_CODENAME=noble +++ ID=ubuntu +++ ID_LIKE=debian +++ HOME_URL=https://www.ubuntu.com/ +++ SUPPORT_URL=https://help.ubuntu.com/ +++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ +++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy +++ UBUNTU_CODENAME=noble +++ LOGO=ubuntu-logo ++ echo ubuntu + OS_NAME=ubuntu + INSTALL_DIR=/usr/bin + '[' x86_64 '!=' amd64 ']' + '[' x86_64 '!=' arm64 ']' + '[' x86_64 '!=' x86_64 ']' + '[' -z '' ']' + SKIP_UI_APP=true + echo 'NetBird UI installation will be omitted as Linux does not run desktop environment' NetBird UI installation will be omitted as Linux does not run desktop environment + check_use_bin_variable + '[' true-x = true-x ']' + echo 'The installation will be performed using binary files' The installation will be performed using binary files + return 0 + PACKAGE_MANAGER=bin + UPDATE_FLAG= + '[' -x = true-x ']' + case "$UPDATE_FLAG" in + install_netbird ++ command -v netbird + '[' -x '' ']' + case "$PACKAGE_MANAGER" in + '[' ubuntu = nixos ']' + install_native_binaries + case "$ARCH" in + ARCH=amd64 + download_release_binary netbird ++ get_release latest ++ local RELEASE=latest ++ '[' latest = latest ']' ++ local TAG=latest ++ local URL=https://pkgs.netbird.io/releases/latest ++ OUTPUT= ++ '[' -n '' ']' +++ curl -s https://pkgs.netbird.io/releases/latest ++ OUTPUT='{ "url": "https://api.github.com/repos/netbirdio/netbird/releases/282644671", "assets_url": "https://api.github.com/repos/netbirdio/netbird/releases/282644671/assets", ...SNIP... "eyes": 0 }, "mentions_count": 2 }' +++ grep -Eo '\"tag_name\":\s*\"v([0-9]+\.){2}[0-9]+"' +++ tail -n 1 +++ echo '{' '"url":' '"https://api.github.com/repos/netbirdio/netbird/releases/282644671",' '"assets_url":' '"https://api.github.com/repos/netbirdio/netbird/releases/282644671/assets",' '"upload_url":' '"https://uploads.github.com/repos/netbirdio/netbird/releases/282644671/assets{?name,label}",' '"html_url":' '"https://github.com/netbirdio/netbird/releases/tag/v0.64.5",' '"id":' 282644671, '"author":' '{' '"login":' '"pascal-fischer",' '"id":' 32096965, '"node_id":' ...SNIP... '[CVE-YYYY-XXXXX]' once the CVE ID is 'assigned",' '"reactions":' '{' '"url":' '"https://api.github.com/repos/netbirdio/netbird/releases/282644671/reactions",' '"total_count":' 8, '"+1":' 0, '"-1":' 0, '"laugh":' 0, '"hooray":' 0, '"confused":' 0, '"heart":' 8, '"rocket":' 0, '"eyes":' 0 '},' '"mentions_count":' 2 '}' ++ TAG_NAME='"tag_name": "v0.64.5"' ++ grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' ++ echo '"tag_name": "v0.64.5"' + VERSION=v0.64.5 + echo 'Using the following tag name for binary installation: ' Using the following tag name for binary installation: + BASE_URL=https://github.com/netbirdio/netbird/releases/download + BINARY_BASE_NAME=0.64.5_linux_amd64.tar.gz + '[' linux = darwin ']' + '[' netbird = netbird-ui ']' + BINARY_NAME=netbird_0.64.5_linux_amd64.tar.gz + DOWNLOAD_URL=https://github.com/netbirdio/netbird/releases/download/v0.64.5/netbird_0.64.5_linux_amd64.tar.gz + echo 'Installing netbird from https://github.com/netbirdio/netbird/releases/download/v0.64.5/netbird_0.64.5_linux_amd64.tar.gz' Installing netbird from https://github.com/netbirdio/netbird/releases/download/v0.64.5/netbird_0.64.5_linux_amd64.tar.gz + '[' -n '' ']' + cd /tmp + curl -LO https://github.com/netbirdio/netbird/releases/download/v0.64.5/netbird_0.64.5_linux_amd64.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12.8M 100 12.8M 0 0 19.9M 0 --:--:-- --:--:-- --:--:-- 19.9M + '[' linux = darwin ']' + mkdir -p /usr/bin + tar -xzvf netbird_0.64.5_linux_amd64.tar.gz LICENSE LICENSES/AGPL-3.0.txt LICENSES/BSD-3-Clause.txt LICENSES/REUSE.toml README.md netbird + mv netbird /usr/bin/ + true + '[' ubuntu = synology ']' + mkdir -p /etc/netbird + echo package_manager=bin + tee /etc/netbird/install.conf + '[' bin '!=' rpm-ostree ']' + '[' bin '!=' pkg ']' + netbird service install NetBird service has been installed + netbird service start NetBird service has been started + echo 'Installation has been finished. To connect, you need to run NetBird by executing the following command:' Installation has been finished. To connect, you need to run NetBird by executing the following command: + echo '' + echo 'netbird up' netbird up ``` **Have you tried these troubleshooting steps?** - [ ] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [ ] Checked for newer NetBird versions - [ ] Searched for similar issues on GitHub (including closed ones) - [ ] Restarted the NetBird client - [ ] Disabled other VPN software - [ ] Checked firewall settings
saavagebueno added the triage-needed label 2026-08-05 01:27:40 -04:00
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#10910