Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datenübername von history nach influxdb funktioniert nicht #289

Open
ghost opened this issue Nov 25, 2023 · 3 comments
Open

Datenübername von history nach influxdb funktioniert nicht #289

ghost opened this issue Nov 25, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 25, 2023

dietpi@server2:/opt/iobroker$ sudo node analyzeinflux.js influxdb.0 info --deepAnalyze
Do deep analysis to find holes in data
InfluxDB-Configuration: {"debounce":1000,"retention":7948800,"dbname":"smarthome","host":"85.215.52.227","protocol":"http","path":"","port":8086,"user":"","organization":"Softwerk","round":4,"seriesBufferMax":0,"seriesBufferFlushInterval":600,"changesRelogInterval":0,"changesMinDelta":0,"reconnectInterval":10000,"pingInterval":15000,"requestTimeout":30000,"validateSSL":true,"dbversion":"2.x","usetags":true,"pingserver":true,"blockTime":0,"debounceTime":0,"disableSkippedValueLogging":false,"enableLogging":false,"customRetentionDuration":365,"relogLastValueOnStart":true}
Query Data from instance "influxdb.0" (Version 2, Bucket smarthome)
Datapoints found: 4
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read properties of undefined (reading 'ts')
at Object.cb (/opt/iobroker/analyzeinflux.js:143:73)
at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:11102:45)
at Immediate. (/opt/iobroker/node_modules/@iobroker/db-states-redis/src/lib/states/statesInRedisClient.ts:379:37)
at processImmediate (node:internal/timers:476:21)

ioBroker log:

2023-11-25 15:42:43.726 - info: history.0 (19403) starting. Version 3.0.1 in /opt/iobroker/node_modules/iobroker.history, node: v18.18.2, js-controller: 5.0.16 -- 2023-11-25 15:42:43.893 - error: history.0 (19403) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2023-11-25 15:42:43.894 - error: history.0 (19403) unhandled promise rejection: Cannot read properties of undefined (reading 'ts') 2023-11-25 15:42:44.173 - error: history.0 (19403) TypeError: Cannot read properties of undefined (reading 'ts') at Object.cb (/opt/iobroker/analyzeinflux.js:143:73) at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:11102:45) at Immediate. (/opt/iobroker/node_modules/@iobroker/db-states-redis/src/lib/states/statesInRedisClient.ts:379:37) at processImmediate (node:internal/timers:476:21) 2023-11-25 15:42:44.174 - error: history.0 (19403) Cannot read properties of undefined (reading 'ts') 2023-11-25 15:42:45.191 - warn: history.0 (19403) Terminated (UNCAUGHT_EXCEPTION): Without reason 2023-11-25 15:47:20.606 - info: admin.0 (17154) ==> Connected system.user.admin from ::ffff:192.168.253.15
@Apollon77
Copy link
Contributor

As said in forum , please add some logging to the file and post the data

@ghost
Copy link
Author

ghost commented Nov 26, 2023

Das ioBroker-Log:

2023-11-26 10:57:35.745 - info: history.0 (21226) starting. Version 3.0.1 in /opt/iobroker/node_modules/iobroker.history, node: v18.18.2, js-controller: 5.0.16 -- 2023-11-26 10:57:35.922 - error: history.0 (21226) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2023-11-26 10:57:35.923 - error: history.0 (21226) unhandled promise rejection: Cannot read properties of undefined (reading 'ts') 2023-11-26 10:57:36.202 - error: history.0 (21226) TypeError: Cannot read properties of undefined (reading 'ts') at Object.cb (/opt/iobroker/history/analyzeinflux.js:143:73) at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:11102:45) at Immediate. (/opt/iobroker/node_modules/@iobroker/db-states-redis/src/lib/states/statesInRedisClient.ts:379:37) at processImmediate (node:internal/timers:476:21) 2023-11-26 10:57:36.202 - error: history.0 (21226) Cannot read properties of undefined (reading 'ts') 2023-11-26 10:57:37.220 - warn: history.0 (21226) Terminated (UNCAUGHT_EXCEPTION): Without reason


Die History-Daten werden in Orner mit Datum gespeichert. Hier die aktuellen Daten: [history.alias.0.Variablen.Energie.verbrauch.json](https://github.com/ioBroker/ioBroker.history/files/13466458/history.alias.0.Variablen.Energie.verbrauch.json) [history.PV-Produktion.json](https://github.com/ioBroker/ioBroker.history/files/13466460/history.PV-Produktion.json)

Ich hoffe daß Du damit etwas anfangen und mir helfen kannst.
MfG
Willi

@ghost
Copy link
Author

ghost commented Dec 6, 2023

dietpi@server2:/opt/iobroker$ sudo node analyzeinflux.js influxdb.0 info --deepAnalyze Do deep analysis to find holes in data InfluxDB-Configuration: {"debounce":1000,"retention":7948800,"dbname":"smarthome","host":"85.215.52.227","protocol":"http","path":"","port":8086,"user":"","organization":"Softwerk","round":4,"seriesBufferMax":0,"seriesBufferFlushInterval":600,"changesRelogInterval":0,"changesMinDelta":0,"reconnectInterval":10000,"pingInterval":15000,"requestTimeout":30000,"validateSSL":true,"dbversion":"2.x","usetags":true,"pingserver":true,"blockTime":0,"debounceTime":0,"disableSkippedValueLogging":false,"enableLogging":false,"customRetentionDuration":365,"relogLastValueOnStart":true} Query Data from instance "influxdb.0" (Version 2, Bucket smarthome) Datapoints found: 4 This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: TypeError: Cannot read properties of undefined (reading 'ts') at Object.cb (/opt/iobroker/analyzeinflux.js:143:73) at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:11102:45) at Immediate. (/opt/iobroker/node_modules/@iobroker/db-states-redis/src/lib/states/statesInRedisClient.ts:379:37) at processImmediate (node:internal/timers:476:21)

ioBroker log:

2023-11-25 15:42:43.726 - info: history.0 (19403) starting. Version 3.0.1 in /opt/iobroker/node_modules/iobroker.history, node: v18.18.2, js-controller: 5.0.16 -- 2023-11-25 15:42:43.893 - error: history.0 (19403) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2023-11-25 15:42:43.894 - error: history.0 (19403) unhandled promise rejection: Cannot read properties of undefined (reading 'ts') 2023-11-25 15:42:44.173 - error: history.0 (19403) TypeError: Cannot read properties of undefined (reading 'ts') at Object.cb (/opt/iobroker/analyzeinflux.js:143:73) at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:11102:45) at Immediate. (/opt/iobroker/node_modules/@iobroker/db-states-redis/src/lib/states/statesInRedisClient.ts:379:37) at processImmediate (node:internal/timers:476:21) 2023-11-25 15:42:44.174 - error: history.0 (19403) Cannot read properties of undefined (reading 'ts') 2023-11-25 15:42:45.191 - warn: history.0 (19403) Terminated (UNCAUGHT_EXCEPTION): Without reason 2023-11-25 15:47:20.606 - info: admin.0 (17154) ==> Connected system.user.admin from ::ffff:192.168.253.15

??????

@ghost ghost closed this as completed Dec 6, 2023
@ghost ghost reopened this Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant