I’m exepriencing similar issues to this topic:
The system is a fresh install of openHABian 1.6.5, on a RPi 4. Like in the topic I had issues installing influxdb from the openhabian-config, where influxdb install would report failing, although I could see that it had installed, but no users or databases had been created, so did that manually afterwards, ran the script again to install grafana.
I can see that on boot influxdb starts but is stopped again, and so i have to start it manually.
The output of > sudo journalctl -u influxdb
Jul 09 15:17:32 openhabian systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Jul 09 15:17:34 openhabian influxd[438]: ts=2021-07-09T13:17:34.629482Z lvl=info msg="InfluxDB starting" log_id=0VErVp9G000 version=1.8.6 branch=1.8 commit=v1.8.6
Jul 09 15:17:34 openhabian influxd[438]: ts=2021-07-09T13:17:34.629575Z lvl=info msg="Go runtime" log_id=0VErVp9G000 version=go1.13.8 maxprocs=4
Jul 09 15:17:34 openhabian influxd[438]: ts=2021-07-09T13:17:34.775855Z lvl=info msg="Using data dir" log_id=0VErVp9G000 service=store path=/var/lib/influxdb/data
Jul 09 15:17:34 openhabian influxd[438]: ts=2021-07-09T13:17:34.775991Z lvl=info msg="Compaction settings" log_id=0VErVp9G000 service=store max_concurrent_compactions=2 throughput_bytes_per_second=50331648 throug
Jul 09 15:17:34 openhabian influxd[438]: ts=2021-07-09T13:17:34.785056Z lvl=info msg="Open store (start)" log_id=0VErVp9G000 service=store trace_id=0VErVplG000 op_name=tsdb_open op_event=start
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.148170Z lvl=info msg="Opened file" log_id=0VErVp9G000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/1/000000001-000000
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.240082Z lvl=info msg="Reading file" log_id=0VErVp9G000 engine=tsm1 service=cacheloader path=/var/lib/influxdb/wal/openhab/autogen/2/_00001.wal size=
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.274411Z lvl=info msg="Opened shard" log_id=0VErVp9G000 service=store trace_id=0VErVplG000 op_name=tsdb_open index_version=inmem path=/var/lib/influx
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.304261Z lvl=info msg="Opened shard" log_id=0VErVp9G000 service=store trace_id=0VErVplG000 op_name=tsdb_open index_version=inmem path=/var/lib/influx
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.304662Z lvl=info msg="Open store (end)" log_id=0VErVp9G000 service=store trace_id=0VErVplG000 op_name=tsdb_open op_event=end op_elapsed=519.598ms
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.311201Z lvl=info msg="Opened service" log_id=0VErVp9G000 service=subscriber
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.311282Z lvl=info msg="Starting monitor service" log_id=0VErVp9G000 service=monitor
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.311313Z lvl=info msg="Registered diagnostics client" log_id=0VErVp9G000 service=monitor name=build
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.311337Z lvl=info msg="Registered diagnostics client" log_id=0VErVp9G000 service=monitor name=runtime
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.311356Z lvl=info msg="Registered diagnostics client" log_id=0VErVp9G000 service=monitor name=network
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.311406Z lvl=info msg="Registered diagnostics client" log_id=0VErVp9G000 service=monitor name=system
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.311447Z lvl=info msg="Starting precreation service" log_id=0VErVp9G000 service=shard-precreation check_interval=10m advance_period=30m
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.311474Z lvl=info msg="Starting snapshot service" log_id=0VErVp9G000 service=snapshot
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.311877Z lvl=info msg="Starting continuous query service" log_id=0VErVp9G000 service=continuous_querier
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.324208Z lvl=info msg="Starting HTTP service" log_id=0VErVp9G000 service=httpd authentication=true
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.324270Z lvl=info msg="opened HTTP access log" log_id=0VErVp9G000 service=httpd path=stderr
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.324291Z lvl=info msg="Auth is enabled but shared-secret is blank. BearerAuthentication is disabled." log_id=0VErVp9G000 service=httpd
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.335754Z lvl=info msg="Listening on HTTP" log_id=0VErVp9G000 service=httpd addr=127.0.0.1:8086 https=false
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.335846Z lvl=info msg="Starting retention policy enforcement service" log_id=0VErVp9G000 service=retention check_interval=30m
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.336641Z lvl=info msg="Listening for signals" log_id=0VErVp9G000
Jul 09 15:17:35 openhabian influxd[438]: ts=2021-07-09T13:17:35.343305Z lvl=info msg="Sending usage statistics to usage.influxdata.com" log_id=0VErVp9G000
Jul 09 15:18:34 openhabian systemd[1]: influxdb.service: Main process exited, code=killed, status=13/PIPE
Jul 09 15:18:34 openhabian systemd[1]: influxdb.service: Succeeded.
I’m pretty confident it is a zram issue or zram causing the issue, as I have tried uninstalling zram from openhabian-config, which enables influx to start on boot, and also fixing permissions from openhabian-config.
I have also tried uninstalling zram, installing influx and reinstalling zram, but then the issue persists.
I could run the system without zram, but after reading posts about pro vs con I think that mstormi makes some convincing arguements. Apart from that, seeing that it is a standard feature nowadays, I don’t see why I shouldn’t not having it working, because clearly it is supposed to. Just apparently something in my system is off…
PS. When i manually do start influx everything is running fine.
Hope someone can tell me some tips as to what I can try, or where I can look for what is going wrong.