Netbird configure.sh script fails to detect Curl is actually installed. #910

Open
opened 2025-11-20 05:19:45 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @alex-ritter on GitHub (May 20, 2024).

Describe the problem

When trying to run configure.sh from infrastructure_files the following error message happens :

'This script uses curl fetch OpenID configuration from IDP.'

Currently I'm installing NetBird via ansible to deploy NetBird as IaC, and I'm installing curl before installing Netbird. Directly in the terminal I can run curl before running configure.sh

image

To Reproduce

Steps to reproduce the behavior:

  1. Create a new Alma Linux 9.0 LXC container on Proxmox.
  2. Install Docker, Git, and Curl
  3. Follow the Netbird install documentation up-to configure.sh
  4. The first 2 checks in configure.sh fails

Expected behavior

Netbird should know Curl is installed and move onto the JQ check

Are you using NetBird Cloud?

No

NetBird version

Latest (installed latest from GitHub via IaC)

Additional context

The reason why Netbird fails to verify Curl is installed is because configure.sh is using Which to check if curl is installed, and Which actually is not installed by default on Red Hat / Alma Linux 9, at least for Alma Linux LXC cloud containers.

Originally created by @alex-ritter on GitHub (May 20, 2024). **Describe the problem** When trying to run configure.sh from infrastructure_files the following error message happens : 'This script uses curl fetch OpenID configuration from IDP.' Currently I'm installing NetBird via ansible to deploy NetBird as IaC, and I'm installing curl before installing Netbird. Directly in the terminal I can run curl before running configure.sh <img width="414" alt="image" src="https://github.com/netbirdio/netbird/assets/48510521/111601a7-f67c-4400-bf56-0e32eaabf168"> **To Reproduce** Steps to reproduce the behavior: 1. Create a new Alma Linux 9.0 LXC container on Proxmox. 2. Install Docker, Git, and Curl 3. Follow the Netbird install documentation up-to configure.sh 4. The first 2 checks in configure.sh fails **Expected behavior** Netbird should know Curl is installed and move onto the JQ check **Are you using NetBird Cloud?** No **NetBird version** Latest (installed latest from GitHub via IaC) **Additional context** The reason why Netbird fails to verify Curl is installed is because configure.sh is using Which to check if curl is installed, and Which actually is not installed by default on Red Hat / Alma Linux 9, at least for Alma Linux LXC cloud containers.
saavagebueno added the bugsystem-compatibility-issuedistribution labels 2025-11-20 05:19:45 -05:00
Author
Owner

@pascal-fischer commented on GitHub (May 21, 2024):

Hi @alex-ritter,
What's blocking you from installing which as well?
We could update the script with a different detection. Does either command -v curl or type curl work on your container?

@pascal-fischer commented on GitHub (May 21, 2024): Hi @alex-ritter, What's blocking you from installing which as well? We could update the script with a different detection. Does either `command -v curl` or `type curl` work on your container?
Author
Owner

@alex-ritter commented on GitHub (May 21, 2024):

Hi Pascal

It's currently not affecting my deployment currently since I know why the script is failing. The script is failing because it can't find the package 'Which' on Alma Linux 9 by default but there isn't a condition to check if this package is installed. Netbird uses Which to check if Curl or JQ is installed so what's why it's saying that curl is uninstalled.

I can take a look at this and update the script once I finish the netbird deployment on my side :) It should be a simple enough fix and I've already updated the script on my end to handle it.

@alex-ritter commented on GitHub (May 21, 2024): Hi Pascal It's currently not affecting my deployment currently since I know why the script is failing. The script is failing because it can't find the package 'Which' on Alma Linux 9 by default but there isn't a condition to check if this package is installed. Netbird uses Which to check if Curl or JQ is installed so what's why it's saying that curl is uninstalled. I can take a look at this and update the script once I finish the netbird deployment on my side :) It should be a simple enough fix and I've already updated the script on my end to handle it.
Author
Owner

@nazarewk commented on GitHub (Apr 23, 2025):

@alex-ritter is it still an issue for you or were you able to resolve it?

@nazarewk commented on GitHub (Apr 23, 2025): @alex-ritter is it still an issue for you or were you able to resolve it?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#910