Fehler in mysql.persist und mapdb.persist

Einrichtung der openHAB Umgebung und allgemeine Konfigurationsthemen.

Moderatoren: seppy, udo1toni

Antworten
SaschaQ
Beiträge: 206
Registriert: 2. Mär 2020 13:50
Answers: 0

Fehler in mysql.persist und mapdb.persist

Beitrag von SaschaQ »

Hallo zusammen,

ich bekomme bei meinen Persistences die folgenden Fehler:

Code: Alles auswählen


2026-03-20 14:23:10.422 [WARN ] [el.core.internal.ModelRepositoryImpl] - DSL model 'mysql.persist' has errors, therefore ignoring it: [10,5]: no viable alternative at input 'default'

2026-03-20 14:23:10.430 [WARN ] [el.core.internal.ModelRepositoryImpl] - DSL model 'mapdb.persist' has errors, therefore ignoring it: [2,9]: no viable alternative at input 'default'



Könnt ihr mir helfen woran das liegt?
Bisher hat das immer einwandfrei funktioniert. Nach irgendeinem Update ging das nicht mehr.

Hier die Config:

Code: Alles auswählen


/************************************************** MySQL Persistence ********************************************/

// persistence strategies have a name and a definition and are referred to in the "Items" section
Strategies {
	// if no strategy is specified for an item entry below, the default list will be used
	everyMinute	: "0 * * * * ?"
	every5Minutes : "0 */5 * * * ?"
   	everyHour   : "0 0 * * * ?"
   	everyDay    : "0 0 0 * * ?"
   	default = everyChange
}



Items {

    // persist all items once a day and on every change and restore them from the db at startup
    *: strategy = everyChange, restoreOnStartup
	
	
		   }

Code: Alles auswählen


Strategies {
        default = everyChange
}
Items {
// persist all items once a day and on every change and restore them from the db at startup
       *: strategy = everyChange, restoreOnStartup
}





nw378
Beiträge: 359
Registriert: 22. Sep 2018 10:38
Answers: 5

Re: Fehler in mysql.persist und mapdb.persist

Beitrag von nw378 »

Schätzungsweise nach einem Update auf 5.1+

Hier gibt es die default - Strategie nicht mehr. Lösch die Zeile und ergänze wo notwendig Items/Groups und die entsprechende Strategie.

Code: Alles auswählen

Strategies {
	// if no strategy is specified for an item entry below, the default list will be used
	everyMinute	: "0 * * * * ?"
	every5Minutes : "0 */5 * * * ?"
   	everyHour   : "0 0 * * * ?"
   	everyDay    : "0 0 0 * * ?"
}

Code: Alles auswählen

Strategies {
}
siehe auch breaking changes https://github.com/openhab/openhab-dist ... /tag/5.1.0
Breaking Changes that Require Manual Interaction after the Upgrade
Changes in Core
Persistence default strategies are removed and not applied automatically anymore. Managed persistence configurations are updated automatically. If you have a file based configuration with an existing .persist file, you may have to update your configuration: remove "default" from Strategies and make sure all Items definitions have a strategy defined.
openHAB 5.1.3 @ RPi 5 / M.2 SSD - openhabian/Debian 13.3 (trixie) - InfluxDB2 und Grafana @ Synology Docker - KNX, Viessmann vcontrol, u.v.m.

Antworten