Closed binderth closed 7 years ago
My Workaround for this was to name the new database differently from the first tries. The first ones where named "openHAB", at my last try I named it "openHAB2".
Still, I believe I found a bug, because:
Thanks! Thomas.
short update on this: If I add some new Item, which should be persisted, at first I get some ERROR:
2016-12-05 19:31:41.792 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Unable to find table for query 'Shutter_OG_ges'.
2016-12-05 19:31:41.796 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Unable to find table for query 'Shutter_OG_KiZiWest'.
2016-12-05 19:31:41.800 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Unable to find table for query 'Shutter_OG_KiZiOst'.
but after some time (I can't say how Long, but I guess at least since 20:30 - an hour later?) the Items appear both in the Items
-Table and get Itemxxx
-tables, which are then populated with values.
edit:
it's not time-related (that was coincidence), it's related, when the first strategy fires. At least, after I added some items with "everyChange" and changed the item, it showed in the Items
-table and got populated in the Itemxxx
-table.
Can you please provide a full debug log, @binderth ?
Hi Chris,
after some more testing, I did not encounter the original problem of not creating tables anymore. At present I use build #643. So I guess some changes since then did the trick!
Regarding my VARCHAR(20000) issue, I did find out, that you could add a line
mysql:sqltype.string=VARCHAR(20000)
to your mysql.cfg, which then could be defined lower chars for UTF encoding of the database.
So, I close this issue. Thomas.
Within openHAB2 I used the mySQL persistance for the first time, unfortunately the collation of my database lead to diverse errors with tablespace (varchar(20000) isn't available within UTF-8, only 16438). Since then, I'm not able to reset the persistance, e.g. start fresh again.
Expected Behavior
Current Behavior
For reference there's my config: (1) addons.cfg
(2) mysql.cfg
(3) mysql.persist
After restart, I've got a new table in MySQL "Items" like this, but it stays empty
openhab.log throws these ERRORS:
Please see thread https://community.openhab.org/t/persistence-isnt-working/15695/18?u=binderth for further details
Possible Solution
I think, there is some kind of persistance for persistances! ;) idk, but I think the binding still knows, there should be tables or something?
Steps to Reproduce (for bugs)
Context
Trying to persist my items for further use
Your Environment