nograx / ioBroker.zendure-solarflow

An ioBroker adapter for Zendure SolarFlow devices
MIT License
24 stars 6 forks source link

Error Retrieving device & "DB closed" errors #28

Closed andiweli closed 7 months ago

andiweli commented 7 months ago

Describe the bug
Seems the issue from last week is back with the latest Firmware upgrade... 🤷🏻‍♂️

zendure-solarflow.0 2024-03-01 19:31:15.529 error Retrieving device failed!

But seems to work so far even with this issue.

andiweli commented 7 months ago

Got some more errors today...

`zendure-solarflow.0 2024-03-03 18:53:00.593 error DB closed
zendure-solarflow.0 2024-03-03 18:53:00.592 error Error: DB closed at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:636:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:122:25) at ObjectsInRedisClient._getObject (/opt/iobroker/node_modules/@iobroker/db-objects-redis/build/lib/objects/objectsInRedisClient.js:2413:37) at Immediate. (/opt/iobroker/node_modules/@iobroker/db-objects-redis/build/lib/objects/objectsInRedisClient.js:2460:33) at process.processImmediate (node:internal/timers:478:21)
zendure-solarflow.0 2024-03-03 18:53:00.589 error unhandled promise rejection: DB closed
zendure-solarflow.0 2024-03-03 18:53:00.586 error 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().
zendure-solarflow.0 2024-03-03 18:53:00.580 error DB closed
zendure-solarflow.0 2024-03-03 18:53:00.579 error Error: DB closed at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:636:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:122:25) at StateRedisClient.setState (/opt/iobroker/node_modules/@iobroker/db-states-redis/build/lib/states/statesInRedisClient.js:521:40) at ZendureSolarflow._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5537:76)
zendure-solarflow.0 2024-03-03 18:53:00.578 error unhandled promise rejection: DB closed
zendure-solarflow.0 2024-03-03 18:53:00.577 error 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().
zendure-solarflow.0 2024-03-03 18:53:00.574 error DB closed
zendure-solarflow.0 2024-03-03 18:53:00.573 error Error: DB closed at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:636:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:122:25) at StateRedisClient.setState (/opt/iobroker/node_modules/@iobroker/db-states-redis/build/lib/states/statesInRedisClient.js:521:40) at ZendureSolarflow._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5537:76) at runNextTicks (node:internal/process/task_queues:60:5) at process.processImmediate (node:internal/timers:447:9)
zendure-solarflow.0 2024-03-03 18:53:00.566 error unhandled promise rejection: DB closed
zendure-solarflow.0 2024-03-03 18:53:00.559 error 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().`
andiweli commented 7 months ago

Seems this issue is also existing in 1.1.14...

zendure-solarflow.0 2024-03-05 18:44:00.577 error DB closed

zendure-solarflow.0 2024-03-05 18:44:00.576 error Error: DB closed at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:636:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:122:25) at StateRedisClient.setState (/opt/iobroker/node_modules/@iobroker/db-states-redis/build/lib/states/statesInRedisClient.js:521:40) at ZendureSolarflow._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5537:76)

zendure-solarflow.0 2024-03-05 18:44:00.574 error unhandled promise rejection: DB closed

zendure-solarflow.0 2024-03-05 18:44:00.571 error 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().

nograx commented 7 months ago

Releasing a new version this moment. I think I fixed this...

andiweli commented 7 months ago

Thanks!

With 1.1.15 I have a new error message… 🫢 Not running long enough if the „DB closed“ error is gone…

zendure-solarflow.0 2024-03-07 12:14:18.894 error [onReady] Retrieving device failed!

Also the adapter now restarts every few minutes.

andiweli commented 7 months ago

Hmm seems the DB Closed bug isn't gone...

zendure-solarflow.0 2024-03-07 12:35:00.612 error 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().
zendure-solarflow.0 2024-03-07 12:35:00.599 error DB closed
zendure-solarflow.0 2024-03-07 12:35:00.598 error Error: DB closed at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:636:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:122:25) at StateRedisClient.setState (/opt/iobroker/node_modules/@iobroker/db-states-redis/build/lib/states/statesInRedisClient.js:521:40) at ZendureSolarflow._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5537:76)
zendure-solarflow.0 2024-03-07 12:35:00.597 error unhandled promise rejection: DB closed
andiweli commented 7 months ago

And a new one...

zendure-solarflow.0 2024-03-07 18:55:16.594 error [onReady] Logon error at Zendure cloud service! Error: [login] Failed to login to Zendure REST API!
zendure-solarflow.0 2024-03-07 18:55:16.590 error AxiosError: timeout of 10000ms exceeded
andiweli commented 7 months ago

@nograx 1.1.18 nearly instantly goes red in adapters here... A few seconds green, then turns to red with below mentioned error.

zendure-solarflow.0 2024-03-08 10:24:07.496 error [onReady] Logon error at Zendure cloud service! Error: [login] Failed to login to Zendure REST API!
zendure-solarflow.0 2024-03-08 10:24:07.491 error AxiosError: Request failed with status code 400
Webranger2 commented 7 months ago

@nograx 1.1.18 nearly instantly goes red in adapters here... A few seconds green, then turns to red with below mentioned error.

zendure-solarflow.0 2024-03-08 10:24:07.496 error [onReady] Logon error at Zendure cloud service! Error: [login] Failed to login to Zendure REST API! zendure-solarflow.0 2024-03-08 10:24:07.491 error AxiosError: Request failed with status code 400

Login Daten komplett neu eingeben hat bei mir geholfen.

nograx commented 7 months ago

Seid aber schnell beim Updaten... eventl mal mit der 1.1.20 versuchen. Oder Daten neu eingeben...

andiweli commented 7 months ago

Jap kann ich glaub ich bestätigen, Kennwort neu eingegeben und aktuell kein Error 400 mehr, mit 1.1.20 getestet.

andiweli commented 7 months ago

Der Connect Error ist noch da mit 1.1.21 leider.

zendure-solarflow.0 2024-03-09 12:46:00.583 error DB closed
zendure-solarflow.0 2024-03-09 12:46:00.583 error Error: DB closed at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:636:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:122:25) at StateRedisClient.setState (/opt/iobroker/node_modules/@iobroker/db-states-redis/build/lib/states/statesInRedisClient.js:521:40) at ZendureSolarflow._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5537:76)
zendure-solarflow.0 2024-03-09 12:46:00.580 error unhandled promise rejection: DB closed
zendure-solarflow.0 2024-03-09 12:46:00.579 error 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().
andiweli commented 7 months ago

Error retrieving device seems gone now.

@nograx I will open separate reports for the other ones for better clarity before the thread fragments here. I hope that's ok for you.