Hello,
I performed a fresh installation of OpenHabian. Afterward, I wanted to install InfluxDB and Grafana. However, the installation aborts with an error.
In the console, I see the following:
2026-07-08_12:55:52_CEST [openHABian] Beginning setup of InfluxDB and Grafana… OK
2026-07-08_12:55:53_CEST [openHABian] Configuring InfluxDB… OK
2026-07-08_12:56:31_CEST [openHABian] Configuring Grafana… OK
2026-07-08_12:56:43_CEST [openHABian] Installing InfluxDB…
$ influxdb_install admin 12345678
2026-07-08_12:56:43_CEST [openHABian] Setting up InfluxDB service…
$ sed -i -e s|auth-enabled = true|# auth-enabled = false|g /etc/influxdb/influxdb.conf
$ zram_dependency install influxdb
$ systemctl -q daemon-reload
$ systemctl enable --now influxdb.service
OK
2026-07-08_12:56:45_CEST [openHABian] Setting up InfluxDB…
Configure InfluxDB admin account…
$ curl -m 120 --retry 20 --retry-connrefused --insecure http://localhost:8086/query --data-urlencode q=CREATE USER admin WITH PASSWOR D ‘12345678’ WITH ALL PRIVILEGES
{“error”:“unable to parse authentication credentials”}
$ curl --insecure http://localhost:8086/query --data-urlencode q=SET PASSWORD FOR admin = ‘12345678’
{“error”:“unable to parse authentication credentials”}
Disable InfluxDB external access…
$ sed -i -e /# Determines whether HTTP endpoint is enabled./ { n ; s/# enabled = true/enabled = true/ } /etc/influxdb/influxdb.conf
$ sed -i -e s|# bind-address = “:8086”|bind-address = “localhost:8086”|g /etc/influxdb/influxdb.conf
$ sed -i -e s|# auth-enabled = false|auth-enabled = true|g /etc/influxdb/influxdb.conf
$ sed -i -e s|# store-enabled = true|store-enabled = false|g /etc/influxdb/influxdb.conf
$ systemctl restart influxdb.service
Check if InfluxDB is running…
$ curl --retry 6 --retry-connrefused --user admin:12345678 --insecure http://localhost:8086/query
{“error”:“authorization failed”}
OK
OK
2026-07-08_12:56:47_CEST [openHABian] Setting up new InfluxDB installation… Creating InfluxDB database openhab
$ curl --user admin:12345678 --insecure http://localhost:8086/query --data-urlencode q=CREATE DATABASE openhab
{“error”:“authorization failed”}
Creating InfluxDB user openhab
$ curl --user admin:12345678 --insecure http://localhost:8086/query --data-urlencode q=CREATE USER openhab WITH PASSWORD ‘12345678’
{“error”:“authorization failed”}
$ curl --user admin:12345678 --insecure http://localhost:8086/query --data-urlencode q=SET PASSWORD FOR openhab = ‘12345678’
{“error”:“authorization failed”}
$ curl --user admin:12345678 --insecure http://localhost:8086/query --data-urlencode q=GRANT ALL ON openhab TO openhab
{“error”:“authorization failed”}
Creating InfluxDB user grafana
$ curl --user admin:12345678 --insecure http://localhost:8086/query --data-urlencode q=CREATE USER grafana WITH PASSWORD ‘12345678’
{“error”:“authorization failed”}
$ curl --user admin:12345678 --insecure http://localhost:8086/query --data-urlencode q=SET PASSWORD FOR grafana = ‘12345678’
{“error”:“authorization failed”}
$ curl --user admin:12345678 --insecure http://localhost:8086/query --data-urlencode q=GRANT READ ON openhab TO grafana
{“error”:“authorization failed”}
OK
2026-07-08_12:56:48_CEST [openHABian] Installing Grafana..
$ grafana_install 12345678
2026-07-08_12:56:48_CEST [openHABian] Setting up Grafana service…
$ zram_dependency install grafana-server
$ systemctl -q daemon-reload
$ systemctl enable --now grafana-server.service
Synchronizing state of grafana-server.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable grafana-server
OK
2026-07-08_12:56:51_CEST [openHABian] Setting up Grafana…
Wait for Grafana to start…
$ curl -4 --retry 6 --retry-connrefused --insecure --head http://localhost:3000
HTTP/1.1 302 Found
Cache-Control: no-store
Content-Type: text/html; charset=utf-8
Location: /login
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block
Date: Wed, 08 Jul 2026 10:56:51 GMT
Resetting Grafana admin password…
$ chsh --shell /bin/bash grafana
$ grafana-cli admin reset-admin-password 12345678
Deprecation warning: ‘grafana-cli’ is deprecated and will be removed in a future release. Use the ‘grafana cli’ subcommand instead.
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
2026-07-08_12:57:07_CEST [openHABian] Checking for default openHABian username:password combination… FAILED
2026-07-08_12:57:08_CEST [openHABian] We hope you got what you came for! See you again soon
openhabian@openhabian:/etc/influxdb $
It looks like it’s a authorization problem.
Is there a problem with OpenHabian?