Hi,
I am running a RP3 system and have recently upgraded to OH2. The database has not changed, only OH2 was upgraded. So I assume the database and connection itself should not be the problem for my issue - never had any problems on OH1.
I have following in log:
2017-11-10 08:19:45.279 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Connection is not valid!
2017-11-10 08:19:45.280 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Connection is not valid!
2017-11-10 08:19:45.282 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Could not store item 'roofTemp01' in database with statement 'INSERT INTO Item2 (TIME, VALUE) VALUES(NOW(),?) ON DUPLICATE KEY UPDATE VALUE=?;': No operations allowed after connection closed.
2017-11-10 08:19:46.186 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Connection is not valid!
2017-11-10 08:19:46.188 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Connection is not valid!
2017-11-10 08:19:46.190 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Could not store item 'roofSunTemp01' in database with statement 'INSERT INTO Item3 (TIME, VALUE) VALUES(NOW(),?) ON DUPLICATE KEY UPDATE VALUE=?;': No operations allowed after connection closed.
I am using the mysql binding (not the JDBC one - this did not work at all).
Two questions:
Does anyone know what that means?
How to increase the log level for mysql? - I can switch all to debug but that makes the log quite unreadable.
When checking the database content, I am missing some of the values. So it does not store them, even saying it is a duplicate entry.
I log that value anytime it changes, and at around the time of the issue, the value is missing in the database. a few minutes later, it saves most of the times again.
Thank you and best Regards,
SJ