I lately installed influxdb via openhabian-config which ran for sometime.
Then at a certain point in time I had to restart my PI and I had to manually recreate the database and then it worked fine until a few days ago but then even with all the things I tried (even uninstalling and reinstalling it and now since today being on the 3.4 release) there is no way I am able to get it to run again.
(Michael: I followed you advice, read all the docs thoroughly and put the logging to debugmode=maximum which is how I got the messages below)
Note that I just did a new from scratch install via openhabian-config
runtimeInfo:
version: 3.4.0.RC1
buildString: Milestone Build
locale: en-DE
systemInfo:
configFolder: /etc/openhab
userdataFolder: /var/lib/openhab
logFolder: /var/log/openhab
javaVersion: 11.0.16
javaVendor: Raspbian
osName: Linux
osVersion: 5.10.103-v7l+
osArchitecture: arm
availableProcessors: 4
freeMemory: 264709600
totalMemory: 559939584
startLevel: 100
Dec 24 14:00:56 ourhome systemd[1]: Starting InfluxDB is an open-source, distributed, time series database...
Dec 24 14:00:56 ourhome influxd-systemd-start.sh[19335]: Merging with configuration at: /etc/influxdb/influxdb.conf
Dec 24 14:00:56 ourhome influxd-systemd-start.sh[19335]: ts=2022-12-24T13:00:56.988806Z lvl=info msg="InfluxDB starting" log_id=0ey3P770000 version=1.8.10 branch=1.8 com
Dec 24 14:00:56 ourhome influxd-systemd-start.sh[19335]: ts=2022-12-24T13:00:56.989009Z lvl=info msg="Go runtime" log_id=0ey3P770000 version=go1.13.8 maxprocs=4
Dec 24 14:00:56 ourhome influxd-systemd-start.sh[19335]: run: create server: mkdir all: mkdir /root/.influxdb: permission denied
Dec 24 14:00:57 ourhome influxd-systemd-start.sh[19335]: Merging with configuration at: /etc/influxdb/influxdb.conf
This one is striking
run: create server: mkdir all: mkdir /root/.influxdb: permission denied
though I don’t know why it wants to use the root-user
even though in /etc/influxdb/influxdb.conf the user is set to influxdb
# If you modify this, please also make sure to edit init.sh
[Unit]
Description=InfluxDB is an open-source, distributed, time series database
Documentation=https://docs.influxdata.com/influxdb/
After=network-online.target
[Service]
User=influxdb
Group=influxdb
LimitNOFILE=65536
EnvironmentFile=-/etc/default/influxdb
ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh
KillMode=control-group
Restart=on-failure
Type=forking
PIDFile=/var/lib/influxdb/influxd.pid
[Install]
WantedBy=multi-user.target
Alias=influxd.service
Does anyone have an idea how to track down this issue or what the root cause could be? (I already looked around in several influxdb forums and also checked the threads here but couldn’t find anything that hints to that).