Looks like somehow there is an openhab_db
database that already existed (from previous setup?) before you created the initial admin
user.
I suggest to delete the data directory and recreate everything:
- stop the InfluxDB daemon with
sudo systemctl stop influxdb
- delete the data directory and subdirectories (specified in
influxdb.conf
) - start the daemon
- start the InfluxDB CLI
- create the
admin
user - create the openHAB database
- create the openHAB user
- grant the openHAB user all privileges on the openHAB database
- create the Grafana user
- grant the Grafana user read privileges on the openHAB database
- don’t forget to match the user/password/database in influxdb.cfg
Indeed, these entries are just records of a write action. But given the strange behaviour shown on the commandline, I suggest the start clean.