OH 2.5M4 Error Installing Influx and Grafana

Hello,

tried to install Influx+Grafana over openhabian-config
At the end i got the message like - sadly that it could not be installed and so on, please report the bug…

Here is the Log

Installing InfluxDB...

$ apt-get -y install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.8.2).
The following packages were automatically installed and are no longer required:
  rpi.gpio-common triggerhappy
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
--2019-11-12 21:29:09--  https://repos.influxdata.com/influxdb.key
Resolving repos.influxdata.com (repos.influxdata.com)... 13.224.196.96, 13.224.196.5, 13.224.196.27, ...
Connecting to repos.influxdata.com (repos.influxdata.com)|13.224.196.96|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3108 (3.0K) [application/pgp-keys]
Saving to: ‘STDOUT’

-                                       100%[============================================================================>]   3.04K  --.-KB/s    in 0s

2019-11-12 21:29:09 (14.7 MB/s) - written to stdout [3108/3108]

OK

$ apt-get update
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Get:3 https://repos.influxdata.com/debian buster InRelease [4,731 B]
Ign:4 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing InRelease
Hit:5 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing Release
Get:6 https://repos.influxdata.com/debian buster/stable armhf Packages [927 B]
Fetched 5,658 B in 1s (4,441 B/s)
Reading package lists... Done

$ apt-get -y install influxdb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  rpi.gpio-common triggerhappy
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  influxdb
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 59.4 MB of archives.
After this operation, 158 MB of additional disk space will be used.
Get:1 https://repos.influxdata.com/debian buster/stable armhf influxdb armhf 1.7.9-1 [59.4 MB]
Fetched 59.4 MB in 5s (11.2 MB/s)
Selecting previously unselected package influxdb.
(Reading database ... 47551 files and directories currently installed.)
Preparing to unpack .../influxdb_1.7.9-1_armhf.deb ...
Unpacking influxdb (1.7.9-1) ...
Setting up influxdb (1.7.9-1) ...
Created symlink /etc/systemd/system/influxd.service → /lib/systemd/system/influxdb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/influxdb.service → /lib/systemd/system/influxdb.service.
Processing triggers for man-db (2.8.5-2) ...
Updating FireMotD available updates count ...

$ systemctl daemon-reload

$ systemctl enable influxdb.service

$ systemctl restart influxdb.service
OK Configure InfluxDB admin account... curl: (7) Failed to connect to localhost port 8086: Connection refused
FAILED Configure listen on localhost only...
$ sed -i -e /^# Determines whether HTTP endpoint is enabled./ { n ; s/^# enabled = true/enabled = true/ } /etc/influxdb/influxdb.conf

$ sed -i s/# bind-address = ":8086"/bind-address = "localhost:8086"/g /etc/influxdb/influxdb.conf

$ sed -i s/# auth-enabled = false/auth-enabled = true/g /etc/influxdb/influxdb.conf

$ sed -i s/# store-enabled = true/store-enabled = false/g /etc/influxdb/influxdb.conf

$ systemctl restart influxdb.service
FAILED
Installing Grafana...--2019-11-12 21:30:08--  https://packages.grafana.com/gpg.key
Resolving packages.grafana.com (packages.grafana.com)... 151.101.38.217, 2a04:4e42:9::729
Connecting to packages.grafana.com (packages.grafana.com)|151.101.38.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1694 (1.7K) [application/x-iwork-keynote-sffkey]
Saving to: ‘STDOUT’

-                                       100%[============================================================================>]   1.65K  --.-KB/s    in 0s

2019-11-12 21:30:09 (65.4 MB/s) - written to stdout [1694/1694]

OK

$ apt-get update
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 https://repos.influxdata.com/debian buster InRelease
Get:4 https://packages.grafana.com/oss/deb stable InRelease [12.1 kB]
Ign:5 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing InRelease
Hit:6 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing Release
Get:7 https://packages.grafana.com/oss/deb stable/main armhf Packages [11.7 kB]
Fetched 23.8 kB in 2s (14.8 kB/s)
Reading package lists... Done

$ apt-get -y install grafana
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  rpi.gpio-common triggerhappy
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 32.1 MB of archives.
After this operation, 98.0 MB of additional disk space will be used.
Get:1 https://packages.grafana.com/oss/deb stable/main armhf grafana armhf 6.4.4 [32.1 MB]
Fetched 32.1 MB in 3s (9,451 kB/s)
Selecting previously unselected package grafana.
(Reading database ... 47577 files and directories currently installed.)
Preparing to unpack .../grafana_6.4.4_armhf.deb ...
Unpacking grafana (6.4.4) ...
Setting up grafana (6.4.4) ...
Adding system user `grafana' (UID 112) ...
Adding new user `grafana' (UID 112) with group `grafana' ...
Not creating home directory `/usr/share/grafana'.
### 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
Processing triggers for systemd (241-7~deb10u1+rpi1) ...
Updating FireMotD available updates count ...

$ systemctl daemon-reload

$ systemctl enable grafana-server.service
Synchronizing state of grafana-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable grafana-server
Created symlink /etc/systemd/system/multi-user.target.wants/grafana-server.service → /usr/lib/systemd/system/grafana-server.service.

$ systemctl start grafana-server.service
OK
Updating Grafana admin password...{"message":"User password updated"}OK Updating Grafana configuration...
$ sed -i -e /^# disable user signup \/ registration/ { n ; s/^;allow_sign_up = true/allow_sign_up = false/ } /etc/grafana/grafana.ini

$ sed -i -e /^# enable anonymous access/ { n ; s/^;enabled = false/enabled = true/ } /etc/grafana/grafana.ini

$ systemctl restart grafana-server.service
Connection Grafana to InfluxDB...{"datasource":{"id":1,"orgId":1,"name":"openhab_home","type":"influxdb","typeLogoUrl":"","access":"proxy","url":"http://localhost:8086","password":"xNR$251V86EDMWFn","user":"grafana","database":"openhab_db","basicAuth":true,"basicAuthUser":"grafana","basicAuthPassword":"xNR$251V86EDMWFn","withCredentials":false,"isDefault":false,"jsonData":{},"secureJsonFields":{},"version":1,"readOnly":false},"id":1,"message":"Datasource added","name":"openhab_home"}Adding openHAB dashboard tile for Grafana... 2019-11-12_21:31:20_CET [openHABian] Adding an openHAB dashboard tile for 'grafana'... OK
Adding install InfluxDB with database configuration to openHAB
$ touch /etc/openhab2/services/influxdb.cfg
2019-11-12_21:31:34_CET [openHABian] Checking for default openHABian username:password combination... OK
2019-11-12_21:31:34_CET [openHABian] We hope you got what you came for! See you again soon ;)

I think problem was here

$ systemctl restart influxdb.service
OK Configure InfluxDB admin account... curl: (7) Failed to connect to localhost port 8086: Connection refused
FAILED Configure listen on localhost only...
$ sed -i -e /^# Determines whether HTTP endpoint is enabled./ { n ; s/^# enabled = true/enabled = true/ } /etc/influxdb/influxdb.conf

$ sed -i s/# bind-address = ":8086"/bind-address = "localhost:8086"/g /etc/influxdb/influxdb.conf

$ sed -i s/# auth-enabled = false/auth-enabled = true/g /etc/influxdb/influxdb.conf

$ sed -i s/# store-enabled = true/store-enabled = false/g /etc/influxdb/influxdb.conf

But maybe other.

PS
After starting openhab-config i got upadate with this http://prntscr.com/pw4db5

What do i do now? Do i need to uninstall it (how?) and try again or?

Same here. Please help

I have installed in manual mode - here is manual https://www.youtube.com/watch?v=T0GnfHt8aLg

The is also file with commands under the video.

Little bit longer. But works very well!

1 Like

thank you very much!