Endless Loop at startup after restoring backup to fresh install of OH3

Hi all,

I’m experiencing an issue similar to this thread:

I am trying to move an OH3 install to a new OH3 server (both Raspberry Pi 4s running OpenHABian) using the backup/restore functionality. I am doing this because some bindings were not updating items properly on the old system, and in a test with the new environment, they were working fine so I figured it is time. This install goes back to a 2.0 release of some sort…

here are some logs:

2021-02-03 20:38:18.991 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'America/New_York'.
2021-02-03 20:38:19.052 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '42.5000,-70.8578'.
2021-02-03 20:38:19.057 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'en_US'.
2021-02-03 20:38:42.845 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2021-02-03 20:38:50.398 [INFO ] [org.openhab.ui.internal.UIService   ] - Started UI on port 8080
2021-02-03 20:38:52.375 [INFO ] [internal.ModuleHandlerFactoryStarter] - WebPushNotificationModuleHandlerFactory started by ModuleHandlerFactoryStarter
2021-02-03 20:38:53.528 [INFO ] [hab.ui.habot.tile.internal.HABotTile] - Started HABot at /habot
2021-02-03 20:38:54.256 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Started HABPanel at /habpanel
2021-02-03 20:39:00.134 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/NestOfficeThermostat_TimeToTarget.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/NestOfficeThermostat_TimeToTarget.rrd] is not a RRD4J RRD file
2021-02-03 20:39:00.146 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/Unifi_TasmotaAHRiseSunroom_Reconnect.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/Unifi_TasmotaAHRiseSunroom_Reconnect.rrd] is not a RRD4J RRD file
2021-02-03 20:39:00.175 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/g3ChronosOffWhenNight.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/g3ChronosOffWhenNight.rrd] is not a RRD4J RRD file
2021-02-03 20:39:00.209 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/EcobeeLivingroomThermostat_FollowMeComfort.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/EcobeeLivingroomThermostat_FollowMeComfort.rrd] is not a RRD4J RRD file
==> /var/log/openhab/openhab.log <==
2021-02-03 20:38:18.991 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'America/New_York'.
2021-02-03 20:38:19.052 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '42.5000,-70.8578'.
2021-02-03 20:38:19.057 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'en_US'.
2021-02-03 20:38:42.845 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2021-02-03 20:38:50.398 [INFO ] [org.openhab.ui.internal.UIService   ] - Started UI on port 8080
2021-02-03 20:38:52.375 [INFO ] [internal.ModuleHandlerFactoryStarter] - WebPushNotificationModuleHandlerFactory started by ModuleHandlerFactoryStarter
2021-02-03 20:38:53.528 [INFO ] [hab.ui.habot.tile.internal.HABotTile] - Started HABot at /habot
2021-02-03 20:38:54.256 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Started HABPanel at /habpanel
2021-02-03 20:39:00.134 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/NestOfficeThermostat_TimeToTarget.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/NestOfficeThermostat_TimeToTarget.rrd] is not a RRD4J RRD file
2021-02-03 20:39:00.146 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/Unifi_TasmotaAHRiseSunroom_Reconnect.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/Unifi_TasmotaAHRiseSunroom_Reconnect.rrd] is not a RRD4J RRD file
2021-02-03 20:39:00.175 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/g3ChronosOffWhenNight.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/g3ChronosOffWhenNight.rrd] is not a RRD4J RRD file
2021-02-03 20:39:00.209 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/EcobeeLivingroomThermostat_FollowMeComfort.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/EcobeeLivingroomThermostat_FollowMeComfort.rrd] is not a RRD4J RRD file
==> /var/log/openhab/events.log <==
==> /var/log/openhab/openhab.log <==
2021-02-03 20:39:24.478 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'America/New_York'.
2021-02-03 20:39:24.540 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '42.5000,-70.8578'.
2021-02-03 20:39:24.545 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'en_US'.

Between each restart I’ve renamed/disabled all the file-based definitions one-per-restart: rules, things, items, sitemaps and persistence definitions. And although it complains about RRJ4 files it does seem to create them successfully (and I’ve reset permissions). The ‘Invalid File Header’ seems to be an indicator of issues.

Because of the challenges I’m somewhat tempted to try to manually move everything instead of backup/restore, but I’m unsure of what those steps would look like.

Any thoughts?

I started a clean install without restoring from a backup and started moving things and items through files and the REST API and eventually ran into the same reboot/RRD4J problem. :-/