- Platform information:
- Hardware: RaspPi 3
- OS: Raspberian
- Java Runtime Environment: Oracle 1.8_
- openHAB version: 2.4.0-20181001 something…
- Issue of the topic: mySQL persistence complains about SOME tables not being found
- Please post configurations (if applicable):
- Items configuration related to the issue
- Sitemap configuration related to the issue
- Rules code related to the issue
- Services configuration related to the issue
- If logs where generated please post these here using code fences:
018-10-02 09:20:02.860 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Unable to find table for query 'MainHallManual_Mode'.
2018-10-02 09:20:03.154 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Unable to find table for query 'ZWTaylorRoomTRV_Temperature'.
2018-10-02 09:20:03.160 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Unable to find table for query 'ZWEnsuiteTRV_Temperature'.
2018-10-02 09:20:03.188 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Unable to find table for query 'ZWBackroomTRV_SensorTemperature'.
Some tables get created… And populate fine. But some just spit errors about not being able to find the table. What gives? The persistence is set to automatically create tables. So why does it randomly decide not to and just complain?
Config for persistence is
oot@piman-301:/etc/openhab2/persistence# cat mysql.persist
// 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
}
/*
* Each line in this section defines for which item(s) which strategy(ies) should be applied.
* You can list single items, use "*" for all items or "groupitem*" for all members of a group
* item (excl. the group item itself).
*/
Items {
// persist all items once a day and on every change and restore them from the db at startup
* : strategy = everyChange, everyDay, restoreOnStartup
// Get Temps every 5 minutes at least...
ZW_Boiler* : strategy = every5Minutes
// additionally, persist all temperature and weather values every hour
gTemperatur* : strategy = every5Minutes, restoreOnStartup
}
root@piman-301:/etc/openhab2/persistence#