after installation of openHab 3.4.1 package with openhabian on Raspberry pi4 the installation of the optional components InfluxDB an Grafana fails:
“Installing InfluxDB… FAILED”
Debug log contains following:
Err:3 https://repos.influxdata.com/debian bullseye InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
Reading package lists... Done
W: GPG error: https://repos.influxdata.com/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
E: The repository 'https://repos.influxdata.com/debian bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I’m not a linux expert (I’m dependent on openhabian-config) but it seems that the public key is not known.
Err:7 https://repos.influxdata.com/debian bullseye InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
The problem with influxdb installation seems to be that openhabian checks if influxdb is already installed ( dpkg -s influxdb ). If it is not installed then the gpg key is installed/written again. In case the same name is used then it is overwritten.
With regard to grafana error in second command: do you refer to the following one ?
You can switch branches using menu option 01 in openhabian-config but ATTENTION you cannot up- or downgrade this way and you cannot arbitrarily change versions. There’s a high risk you mess up your system if you do.
Menu then looks like:
( ) release recommended version that supports openHAB 3.x (openHAB3 branch)
(*) latest the latest of openHABian, not well tested (main branch)
( ) legacy no longer updated, use for openHAB 2.x support (stable branch)
Hello.
I switch the branch to latest in openhabian-config. The InfluxDB has been installed, but grafana is not.
Here is the log:
Creating InfluxDB user grafana
+ cond_redirect curl --user admin:PASSWORD --insecure http://localhost:8086/query --data-u rlencode 'q=CREATE USER grafana WITH PASSWORD '\''PASSWORD'\'''
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ curl --user admin:PASSWORD --insecure http://localhost:8086/quer y --data-urlencode q=CREATE USER grafana WITH PASSWORD '\''PASSWORD'\'' \033[39;49;00m'
$ curl --user admin:PASSWORD --insecure http://localhost:8086/query --data-urlencode q=CRE ATE USER grafana WITH PASSWORD 'PASSWORD'
+ curl --user admin:PASSWORD --insecure http://localhost:8086/query --data-urlencode 'q=CR EATE USER grafana WITH PASSWORD '\''PASSWORD'\'''
{"results":[{"statement_id":0}]}
+ return 0
+ cond_redirect curl --user admin:PASSWORD --insecure http://localhost:8086/query --data-u rlencode 'q=SET PASSWORD FOR grafana = '\''PASSWORD'\'''
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ curl --user admin:PASSWORD --insecure http://localhost:8086/quer y --data-urlencode q=SET PASSWORD FOR grafana = '\''PASSWORD'\'' \033[39;49;00m'
$ curl --user admin:PASSWORD --insecure http://localhost:8086/query --data-urlencode q=SET PASSWORD FOR grafana = 'PASSWORD'
+ curl --user admin:PASSWORD --insecure http://localhost:8086/query --data-urlencode 'q=SET PASSWORD FOR grafana = '\''PASSWORD'\'''
{"results":[{"statement_id":0}]}
+ return 0
+ cond_redirect curl --user admin:PASSWORD --insecure http://localhost:8086/query --data-u rlencode 'q=GRANT READ ON openhab TO grafana'
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ curl --user admin:PASSWORD --insecure http://localhost:8086/quer y --data-urlencode q=GRANT READ ON openhab TO grafana \033[39;49;00m'
$ curl --user admin:PASSWORD --insecure http://localhost:8086/query --data-urlencode q=GRA NT READ ON openhab TO grafana
+ curl --user admin:PASSWORD --insecure http://localhost:8086/query --data-urlencode 'q=GR ANT READ ON openhab TO grafana'
{"results":[{"statement_id":0}]}
+ return 0
+ echo OK
OK
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-03-19_09:50:31_MSK [openHABian] Installing Grafana.. '
2023-03-19_09:50:31_MSK [openHABian] Installing Grafana.. + cond_redirect grafana_install
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ grafana_install PASSWORD \033[39;49;00m'
$ grafana_install PASSWORD
+ grafana_install PASSWORD
+ local adminPassword=PASSWORD
+ local keyName=grafana
+ grafana_is_installed
+ dpkg -s grafana
+ return 1
+ add_keys https://packages.grafana.com/gpg.key grafana
+ local repoKey=/usr/share/keyrings/grafana.gpg
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-03-19_09:50:31_MSK [openHABian] Adding required keys to apt... '
2023-03-19_09:50:31_MSK [openHABian] Adding required keys to apt... + curl -fsSL https://packages.gr afana.com/gpg.key
+ gpg --dearmor
curl: (22) The requested URL returned error: 403
gpg: no valid OpenPGP data found.
+ echo FAILED
FAILED
+ rm -f /usr/share/keyrings/grafana.gpg
+ return 1
+ return 1
+ return 1
+ echo FAILED
FAILED
+ return 1
+ '[' 1 -ne 0 ']'
The link to grafana site from the message number 2 is not working any more (“Sorry, the provided token is not valid”).
I`m not a Linux user. What should I do? Please help me to install grafana.
That’s strange I would say.
Accessing https://packages.grafana.com/gpg.key using a browser as well as using the curl command that is being used by openhabian-config both work.