Update/upgrade grafana

Thanks for the workaround.
It seems that they plan on building a version with lower glibc dependency, so maybe we just have to wait a little: https://github.com/grafana/grafana/issues/24844

If I get too impatient, I’ll try the testing repo as suggested :slight_smile:

Did someone have solved it before? I couldn’t solve it so far.

@mvo

According to v7.0.0 ARM64 binaries don't work on Ubuntu 18.04 · Issue #24844 · grafana/grafana · GitHub the build environment was moved to a stretch based build system three days ago. The latest stable release ( 7.0.1 ) was made available 5 days ago.
So you either may upgrade to buster in case you are still on stretch or wait a few more days until the next release is made available. Alternatively you may install an older version.

I’m not specialist on linux, then the best is to way for new release. Thanks o much for your support.

I had the same problems when my Grafana was updated to 7.0 by an apt upgrade. As I don’t need Grafana 7 for a particular reason, the solution for me was

sudo apt-get install grafana=6.7.3

I´m not seeking a way to update Grafana. Infact my request is more, how to get rid of it.
Originally long time ago I used openhabian-config to install grafana and influxdb. But I have no need of Grafana, as I run it on another server (windows). And since there are no way to choose to only install Influxdb from openhabian-config, I now seek a way to get rid of it…
But before I do, I wonder, how would updating openhab2 react, if Granfa is no longer at the system?

grafana and influxdb are not installed together with / are not part of the bare openhab software.
So in case you deinstall grafana and then do an update of openhab only openhab will be updated.
For updating the linux package management is being used.

They are, if you install them via openhabian-config, which I said… They are then installed together.

Ok - you can install grafana by using oenhabian-config. This is why I wrote bare openhab software. I did not explicitly explain what I mean by that. What I meant is the two repos openhab2 and openhab2-addons.
According to my technical understanding ( I am not using openhabian-config but had a partial look into the code ) deinstalation of grafana will not be a problem. The way how openhabian-config installs grafana is by:

  echo -n "Installing Grafana... "
  cond_redirect wget -O - https://packages.grafana.com/gpg.key | apt-key add - || FAILED=2
  echo "deb https://packages.grafana.com/oss/deb stable main" > /etc/apt/sources.list.d/grafana.list || FAILED=2
  cond_redirect apt-get update || FAILED=1
  cond_redirect apt-get install --yes grafana || FAILED=2

These are the same steps that also during a manual installation need to be done.
Apart of the configuration that you need to do to access grafana data ( graphs ) I do not see any other dependency. As you wrote you already use a grafana instance on other hardware you must have resolved this dependency in your local setup already.

Not really… I just installed Grafana on my Windows server, and then pointed it to the InfluxDB database on my Rpi (openhabian).
This mean I still have Grafana running on my openhabian, but its not beeing used. Which is why I want to get rid of it… I just wasnt sure if I could just purge grafana without running into other problems/dependencies on my openhabian when I upgrade openhabian. As far as I understand, upgrading openhabian means it will upgrade grafana and influxdb as well…

Hi,
I just try to update Grafana on my Raspberry, but I get:
grafana is already the newest version (5.4.3)

Wondering …
(OpenHab Version is 2.5.1)

[17:48:11] root@openHABianPi:/etc/openhab2/items# sudo apt-get update
Ign:1 http://repos.azulsystems.com/debian stable InRelease
Hit:2 http://repos.azulsystems.com/debian stable Release
Hit:3 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Get:4 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Ign:5 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Hit:6 https://repos.influxdata.com/debian stretch InRelease
Hit:7 https://deb.nodesource.com/node_8.x stretch InRelease
Get:8 https://dl.bintray.com/openhab/apt-repo2 stable Release [6,051 B]
Hit:8 https://dl.bintray.com/openhab/apt-repo2 stable Release
Fetched 25.4 kB in 2s (8,529 B/s)
Reading package lists… Done

[17:48:24] root@openHABianPi:/etc/openhab2/items# sudo apt-get --only-upgrade install grafana
Reading package lists… Done
Building dependency tree
Reading state information… Done
grafana is already the newest version (5.4.3).
The following packages were automatically installed and are no longer required:
libfam0 spawn-fcgi
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.

I looks like you have an openhabian installation. According to the repos that are listed there is not granfa repo that was added by openhabian.
Thus my conclusion is that you are using the granfa binaray that is being provided by the OSs’ repository. To get newer grafana package you need to install grafana using the openhabian-config menu.

OK, thx for this hint.

I try … using the option to update “Grafana & InfluxDB” (which I already has installed and use)
after entering lot of informations (DB-Name, credentials, web-adress) but it exists with an error:


Set-Cookie: grafana_sess=2592b02deba04f65; Path=/; HttpOnly
Set-Cookie: redirect_to=%252F; Path=/; HttpOnly
Date: Mon, 14 Dec 2020 18:19:53 GMT
Preformatted text`Resetting Grafana admin password…

$ chsh --shell /bin/bash grafana

$ grafana-cli admin reset-admin-password MY-PASSWORD
Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath
FAILED (admin password)
FAILED

Before I set a new Grafana password with command:
grafana-cli admin reset-admin-password --homepath “/usr/share/grafana” MY-Password
So the Grafana-Admin password should be correct (and has no special chars etc.)

I’m also in the folder /usr/share/grafana when I start the
openhabian-config command

Any idea what causes the error ?
Can I update manually the Grafana and Influxdb by installing the packages with OS commands ?
Or will this cause other (integration) errors ?

openhabian-config is a shell script and uses OS commands.
So in case you know what you do you can execute the commands manually.
To analyse the problem you have during using openhabian-config you need to set the debug level.
https://github.com/openhab/openhabian/blob/master/docs/openhabian-DEBUG.md#debug describes how to do this.

Hi,

you will have to install the newer version of grafana manually (see in this thread). Just get the package from the grafana website and when you install it, it will replace your current grafana installation.

Yes, I install it manually, and it works.

I only need to add in /etc/grafana/grafana.ini

[security]
allow_embedding=true

And to have the germany time format I add:

[date_formats]
full_date = MMM Do, YYYY @ hh:mm:ss a
interval_second = HH:mm:ss
interval_minute = HH:mm
interval_hour = DD MMM HH:mm
interval_day = DD MMM
interval_month = MM-YYYY
interval_year = YYYY

(this is possible in the newer Grafana version, main reason for me to update)

Now I will alos updat ethe influxdb, unshure if I should …
I saw on homepage, that I have already the newest 1.x version (1.8.3).
Will update to 2.03 also fine and no big issue ?
But I can’t find a version for my Raspberry, I try arm.64.deb .
I think I need “armhf.deb” (for Grafana I found ths “hf” version), but for Influx :frowning:

Any hints here? Thx!

I would leave the db as is. Unless you need Flux…