ioBroker / ioBroker.history

manages state history
MIT License
29 stars 22 forks source link

Datenübername von history nach influxdb funktioniert nicht #304

Closed MSal-RPI4 closed 8 months ago

MSal-RPI4 commented 8 months ago

Describe the bug
Versuche die vergangenen 2 Jahre Iobroker History mit /opt/iobroker/node_modules/iobroker.history/converter/history2db.js in leere InfluxDB zu migrieren.

To Reproduce
Routine über SSH gestartet, mit Resultat gem beigefügter txt: 20231230_IOB_History2DB_Error.txt => Erster Tag scheint ok ... danach Abbruch.

Versions:

Additional context
Retention period im InfluxDB Adapter auf "forever" eingestellt. History Adapter abgestellt, InfluxDB Adapter läuft.

Apollon77 commented 8 months ago

I think there is a logging. try to provide the END Date as parameter ... not the start date. he should start always with the oldest files and work up to the provided date.

Does that work?

MSal-RPI4 commented 8 months ago

I figured that I must have misunderstood ... sorry ;-(.

I have changed to

Overall, the migration seems to work pretty well. However, I just don't understand why the Wolf heating values won't get transferred (have attached the updated "existingDBValues.json" accordingly).

existingDBValues.json

Is this possibly because of naming convention ?! Initially, the Zigbee devices did not work either, but they seems to be fine now ?!

b.t.w., forgot to mention that there are several others which don't transfer either, but I'm less worried about them.

MSal-RPI4 commented 8 months ago

Has been resolved: After deactivating history logging, reboot and converter re-run over night everything is good ... works like a charm !