openHAB resets persistence configuration for influxdb

Hi all,

I started using influxdb as my persistence service. With my first configuration I entered a already existing influxb v1.8 database and autogen as the default retention policy. But later I decided to use a separate database (called “influxdb_persistence”) and a own retention policy (called “18_months”). That is working perfectly fine. But I realized, that after safe rebooting of the raspberry pi, the config is reverted/reset back to the defaults (openHAB + autogen). If I then reenter the new database and retention policy, everything again works as aspected … until the next reboot. Can you tell me what is going on there and how to fix this?

Influxes persistence addon is configured via UI, the configuration of items is done in the influxb.persistence file. Using influxdb v1, installed from openhabian menu. ZRAM is activated. Default persistence service is set to influxdb. Log does not mention any issue, because also the “default” database + retention is available too (values then are going in there instead of my desired separate one).

Thanks for a hint,

Best Regards
Patrick

Please try to disable ZRAM, then reboot, then change settings, a second reboot, check whether settings are still correct, finally switch ZRAM on.

Hi Udo,

tried to disable zram from openhabian-config using Option 38 “uninstall zram”. But this fails

+ echo -n '2024-09-04_21:16:36_CEST [openHABian] Removing zram service... '
2024-09-04_21:16:36_CEST [openHABian] Removing zram service... + cond_redirect systemctl stop zram-config.service zsync.service
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl stop zram-config.service zsync.service \033[39;49;00m'

$ systemctl stop zram-config.service zsync.service
+ systemctl stop zram-config.service zsync.service
Failed to stop zsync.service: Unit zsync.service not loaded.
+ return 5
+ echo 'FAILED (stop zram)'
FAILED (stop zram)
+ return 1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n  "30 | System Settings"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/main/docs/openhabian-DEBUG.md how to proceed.' 14 80

Any ideas how to fix this?

Please don’t punch me. I found the error by myself. I have had configured influxdb persistence on both UI and file-based. But on the file-based (/etc/openhab/services/influxdb.cfg), the wrong database and retention policy was specified.

Sorry for the efforts and thanks.

Topic can be closed

1 Like