V2.0 upgrade to v2.1 issue

Dear all,

I’m using Influx CLI v2.0.8 on a Ubuntu LXC container (Proxmox) and I want to upgrade it to the latest version v2.1.

I have tried this :

But it doesn’t work due to the fact brew is not installed.
Then I have tried this :

But the script doesn’t work so I’m blocked.
Indeed, the script does not ask me the password and the script is stopped indicating that it must be not run as root.

Is there a link due to the fact I’m using the root user?
Did I missed something?

Thanks all for your help.

Hi @neuvidor,
You should not need to download and install Brew since you are using an Ubuntu container. Have you tried downloading and installing the new binary?

Note the CLI will work for both cloud and OSS instances. Are you using InfluxDB cloud or OSS out of interest?

Hello @Jay_Clifford,

I’m using Influxdb OSS at home for my home automation system. Is there any risk for my old data if I use your procedure link?

Hi @neuvidor ,
Do you plan to update InfluxDB OSS to the latest as well as the InfluxDB CLI? To answer your question if you are updating your database via apt update etc, This will not affect your data. However, I always recommend if your data is critical to perform a backup process before any update. This will give you peace of mind in many circumstances not just upgrades :slight_smile:

Hi @Jay_Clifford ,

I have installed some month ago this :
And now I’m have seen in the documentation that a new version is available

I think I just made a mistake, I tried to use the macOS procedure like a stupid guy.

That’s why I was looking to upgrade my system in order to be up to date before adding new features.

Finally if I understood well, I have to :

Is that OK ?

Hi @neuvidor,
Perfecto! If you would like a more automated experience in the future I would highly suggest installing InfluxDB as an apt package like so:

wget -qO- https://repos.influxdata.com/influxdb.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdb.gpg > /dev/null
export DISTRIB_ID=$(lsb_release -si); export DISTRIB_CODENAME=$(lsb_release -sc)
echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list > /dev/null

sudo apt-get update && sudo apt-get install influxdb2


Happy playing :slight_smile: ! Let me know if you run into any trouble.

1 Like

Hi can i use the above code for centos?

Hi @ThePeltonian,
For the Centos use:

cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key

sudo yum install influxdb2

Thankyou @Jay_Clifford much appreciated :slight_smile:

1 Like

No worries at all. :slight_smile: