Hello,
I use Grafana v7.4.3 on a raspberry Pi with raspbian. I wanted to update Grafana to v 10 and failed with
apt-get upgrade
I found out that I don’t have an apt installation:
$ apt-cache policy grafana
grafana:
Installed: (none)
Candidate: (none)
I don’t know how I installed grafana. So my question is how can I update grafana without loosing my configuration or it is better to make a new installation?
I read this:
https://grafana.com/docs/grafana/latest/upgrade-guide/
Maybe I can use the Binary .tar file method but I think a fresh installation is maybe better. Can you please help me ?
I am no linux expert!
Thank you!
Regards
Thomas
if you do not know how you installed it this is what I would recommend
back up your data and your conf folders first
stop the grafana service not sure how in pi
then install a new separate version of grafana
start that new grafana
stop this new grafana
copy over the backed up folders
start new grafana
I am not sure if a jump from 7 to 10 is possible so I would go one full version upgrade at a time using the above upgrade method
7 => 8
8 => 9
9 => 10
I installed grafana new as described here with apt
https://grafana.com/tutorials/install-grafana-on-raspberry-pi/
and saved the lib file as desrcibed here before installation:
(Backup / Restore to new system)
the installation text was this:
$ sudo apt-get install -y grafana
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libva-wayland2 raspinfo
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
grafana
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 80.4 MB of archives.
After this operation, 302 MB of additional disk space will be used.
Get:1 https://packages.grafana.com/oss/deb stable/main arm64 grafana arm64 10.0.2 [80.4 MB]
Fetched 80.4 MB in 7s (11.1 MB/s)
Selecting previously unselected package grafana.
(Reading database ... 109888 files and directories currently installed.)
Preparing to unpack .../grafana_10.0.2_arm64.deb ...
Unpacking grafana (10.0.2) ...
Replaced by files in installed package grafana-rpi:armhf (7.4.3) ...
Setting up grafana (10.0.2) ...
### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable grafana-server
### You can start grafana-server by executing
sudo /bin/systemctl start grafana-server
no erros, but my grafana is still the old version and the lib file was not changed
I don’t know what to do now ?
apt-cache policy grafana
grafana:
Installed: 10.0.2
Candidate: 10.0.2
1 Like
now garfana stopped working…
● grafana-server.service - Grafana instance
Loaded: loaded (/lib/systemd/system/grafana-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-07-17 22:23:33 CEST; 14s ago
Docs: http://docs.grafana.org
Process: 2460257 ExecStart=/usr/sbin/grafana-server --config=${CONF_FILE} --pidfile=${PID_FILE_DIR}/grafana-server.pid --packaging=deb cfg:default.paths>
Main PID: 2460257 (code=exited, status=1/FAILURE)
CPU: 1.563s
Jul 17 22:23:33 raspberrypi systemd[1]: grafana-server.service: Scheduled restart job, restart counter is at 5.
Jul 17 22:23:33 raspberrypi systemd[1]: Stopped Grafana instance.
Jul 17 22:23:33 raspberrypi systemd[1]: grafana-server.service: Consumed 1.563s CPU time.
Jul 17 22:23:33 raspberrypi systemd[1]: grafana-server.service: Start request repeated too quickly.
Jul 17 22:23:33 raspberrypi systemd[1]: grafana-server.service: Failed with result 'exit-code'.
Jul 17 22:23:33 raspberrypi systemd[1]: Failed to start Grafana instance.
it starts and a few seconfs later it is stopped
1 Like
you installed it on the existing rpi or a new pi? what happened to the installation of the old grafana
I installed v10 on the existing RPi
I don’t know what happend with the existing v 7, I didn’t removed it because I don’t know
still the same question…
What version of rpi and what processor type is it
Raspberry Pi 4 Modell B, 4GB
Broadcom BCM2711 chip set
64 bit Quad Core ARM v8 Cortex-A72 @ 1,5 GHz
1 Like
So which of these ARM downloads fits your rpi?
Are you sure you did not install it using docker maybe?
for V10 I used this way
https://grafana.com/tutorials/install-grafana-on-raspberry-pi/
for the old version 7 I still don’t know which why I installed it
can nobody tell me how I can delete all grafana versions from my raspberry Pi and install it again ?