Please may someone help?
I followed this guide to upgrade from v1 to v2 (in my case v1.8.5 to latest v2.6.1)
I wanted to go the “automatic” upgrade route, and the guide takes you to a separate download page. Instead of opting to download binaries from that second page I chose this option:
SCREENSHOT:
Then I followed the instructions given at each stage, so I did this:
wget -q https://repos.influxdata.com/influxdata-archive_compat.key
echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main
sudo apt-get update && sudo apt-get install influxdb2
sudo /usr/share/influxdb/influxdb2-upgrade.sh
After the last command I was prompted to enter my username, organisation, retention period, and bucket name. I just entered some random stuff, not relating to the current installation, I wasn’t sure if that was correct.
Now when I run influx version
I get this: Influx CLI 2.6.1 (git: 61c5b4d) build_date: 2022-12-29T15:41:09Z
- so that seems great.
There were no errors during this process.
I went to check up on Grafana, which shows live sensor data that I sent previously to InfluxDB (from Node-RED), and that data was never interrupted, it’s still there. So either the upgrade went really well, or really badly…
I went to check on the new web interface and pulled up http://server-ip:8086 and a page was returned with plaintext saying “Not found 404”.
Then I read this: The InfluxDB UI is packaged with InfluxDB and runs as part of the InfluxDB server. To access the UI, start the influxd
service and visit localhost:8086 in your web browser.
so I tried to start the influxd service by typing influxd
and got this: Error: listen tcp :8086: bind: address already in use
- perhaps it was already running?
Questions:
-
Given
influxdb version
refers to “Influx CLI” being at the latest version, how can I know that InfluxDB has been upgraded properly? -
Is there a possibility that Node-RED is still posting to the old InfluxDB service which is still running?
-
How can I troubleshoot the issue with “404 not found” error when trying to view the web interface?
Thanks