ioBroker / ioBroker.js-controller

ioBroker controller
http://iobroker.net
MIT License
294 stars 58 forks source link

Error message on update from @3.3.22 to @4.0.15 #1826

Closed sebingel closed 2 years ago

sebingel commented 2 years ago
iob upgrade self
Update js-controller from @3.3.22 to @4.0.15
NPM version: 6.14.16
npm install iobroker.js-controller@4.0.15 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
In file included from ../../nan/nan.h:58,
                 from ../src/unix_dgram.cc:5:
/home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void (*)(v8::Local< v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(unix_dgram, Initialize)
 ^~~~~~~~~~~
Server Objects 127.0.0.1:48102 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"]
Server States 127.0.0.1:49992 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"]
Server Objects 127.0.0.1:48102 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"]
Server States 127.0.0.1:49994 Error from InMemDB: Error: PSUBSCRIBE-UNSUPPORTED for namespace meta.: Data=["meta.*"]
Server Objects 127.0.0.1:48102 Error from InMemDB: Error: Unknown LUA script load
Server Objects 127.0.0.1:48102 Error from InMemDB: Error: Unknown LUA script load
Server Objects 127.0.0.1:48102 Error from InMemDB: Error: Unknown LUA script load
Server Objects 127.0.0.1:48102 Error from InMemDB: Error: SET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets",{"type":"B uffer","data":[49]}]
Could not migrate objects to corresponding sets: Error SET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets",{"type":"Buff er","data":[49]}]

Since this is partly different from issue #1758 I am opening this new issue. iobroker started with the new version and the expected message about the migration to JSONL. Installed version shows 4.0.15.

AlCalzone commented 2 years ago

The first part is just the "normal" compiled module warnings from the npm installation.

The second half looks to me like the expected log outputs as mentioned here. @Apollon77 @foxriver76 hope I didn't miss any?

sebingel commented 2 years ago

Oh. I thought the first party may be an error. I have very few experience with npm, so please excuse if this is a false alarm.

Apollon77 commented 2 years ago

No, all fine, just the "usual npm warnings that can happen"

MrSonei6 commented 2 years ago

Hello i just update my ioBroker on Rasperry I got the same error Message like above

i Make an Backup bevor how can i go back to that backup?

My ioBroker is at the moment not reachable over Web browser

Please help

pi@raspberrypi:~ $ pi@raspberrypi:~ $ pi@raspberrypi:~ $ cd /opt/iobroker pi@raspberrypi:/opt/iobroker $ iobroker backup host.raspberrypi 7317 states saved host.raspberrypi 8659 objects saved Backup created: /opt/iobroker/backups/2022_03_04-12_15_34_backupiobroker.tar.gz pi@raspberrypi:/opt/iobroker $ sudo iobroker stop pi@raspberrypi:/opt/iobroker $ sudo iobroker update Used repository: stable hash unchanged, use cached sources update done Adapter "admin" : 5.3.1 , installed 5.3.1 Adapter "alexa2" : 3.11.2 , installed 3.11.2 Adapter "backitup" : 2.3.3 , installed 2.3.3 Adapter "discovery" : 2.7.5 , installed 2.7.5 Adapter "fakeroku" : 0.2.1 , installed 0.2.1 Adapter "harmony" : 1.2.2 , installed 1.2.2 Adapter "hmip" : 1.15.4 , installed 1.15.4 Adapter "hue" : 3.6.5 , installed 3.6.5 Adapter "ical" : 1.11.4 , installed 1.11.4 Adapter "info" : 1.9.8 , installed 1.9.8 Adapter "javascript" : 5.2.21 , installed 5.2.21 Controller "js-controller" : 4.0.15 , installed 3.3.22 [Updateable] Adapter "telegram" : 1.11.1 , installed 1.11.1 Adapter "trashschedule" : 1.4.1 , installed 1.4.1 Adapter "web" : 3.4.16 , installed 3.4.16 pi@raspberrypi:/opt/iobroker $ sudo iobroker upgrade self Update js-controller from @3.3.22 to @4.0.15 NPM version: 6.14.4 npm install iobroker.js-controller@4.0.15 --loglevel error --unsafe-perm --prefi x "/opt/iobroker" (System call) In file included from ../../nan/nan.h:58, from ../src/unix_dgram.cc:5: /home/iobroker/.cache/node-gyp/12.16.3/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void ()(v8::Local)’ to ‘ node::addon_register_func’ {aka ‘void ()(v8::Local, v8::Local, void)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /home/iobroker/.cache/node-gyp/12.16.3/include/node/node.h:642:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~ ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(unix_dgram, Initialize) ^~~ Server Objects 127.0.0.1:59922 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"] Server Objects 127.0.0.1:59922 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"] Server States 127.0.0.1:58932 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"] Server States 127.0.0.1:58934 Error from InMemDB: Error: PSUBSCRIBE-UNSUPPORTEDfor namespace meta.: Data=["meta."] Server Objects 127.0.0.1:59922 Error from InMemDB: Error: Unknown LUA script load Server Objects 127.0.0.1:59922 Error from InMemDB: Error: Unknown LUA script load Server Objects 127.0.0.1:59922 Error from InMemDB: Error: Unknown LUA script load Server Objects 127.0.0.1:59922 Error from InMemDB: Error: SET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets",{"type":"Buffer","data":[49] }] Could not migrate objects to corresponding sets: Error SET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets",{"type":"Buffer","data":[49]}] pi@raspberrypi:/opt/iobroker $ sudo iobroker start pi@raspberrypi:/opt/iobroker $ reboot Failed to set wall message, ignoring: Interactive authentication required. Failed to reboot system via logind: Interactive authentication required. Failed to open initctl fifo: Keine Berechtigung Failed to talk to init daemon.

foxriver76 commented 2 years ago

and now what is actually the problem? btw do not use iobroker commands with sudo

MrSonei6 commented 2 years ago

The Problem is that my ioBroker was not reachable over web browser i have no access to it Power off and on does not help

Do you know how can i go back to my backup version?

Apollon77 commented 2 years ago

Ideally head into the forum, in german we have full article https://forum.iobroker.net/topic/52886/js-controller-4-0-x-jetzt-f%C3%BCr-alle-user-im-stable

In general: What does the log say?

And BTW: WHo said that you sgould do the commands with "sudo"?

Ideally try "iob fix" (NO sudo!) and then iob start and provide log information

MrSonei6 commented 2 years ago

yes i read that artikel

i tryed that comand

cd /opt/iobroker iobroker stop iobroker fix npm install iobroker.js-controller@3.3.22

pi@raspberrypi:/opt/iobroker $ pi@raspberrypi:/opt/iobroker $ npm install iobroker.js-controller@3.3.22 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

iobroker.js-controller@3.3.22 preinstall /opt/iobroker/node_modules/iobroker.js-controller node lib/preinstallCheck.js

NPM version: 6.14.4

iobroker.js-controller@3.3.22 install /opt/iobroker/node_modules/iobroker.js-controller node iobroker.js setup first

object _design/custom updated object _design/system updated npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.7 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

58 packages are looking for funding run npm fund for details

pi@raspberrypi:/opt/iobroker $ pi@raspberrypi:/opt/iobroker $

But the Web broswer is still not reachable

edit: I make all of that


Editiere /opt/iobroker/iobroker-data/iobroker.json
Unter objects und states gibt es ein ' "connectTimeout": 2000,`
Zahl ändern in 5000
Neu versuchen
Nach dem Upgrade am besten den Wert wieder zurücketzen weil der js-controller 3.3+ hier optimiert und länger wartet

Bei Fehlern: Wenn bei der Installation Fehler wegen fehlender Zugriffsrechte auftreten, am besten den Installation-Fixer (iobroker fix wer schon einen js-controller 2.x oder höher hat, alternativ weiterhin manuell via curl -sL https://iobroker.net/fix.sh | bash -) nutzen und die Installation wiederholen. Falls es auch danach noch Fehler gibt, bitte die Installation erneut mittels sudo -H -u iobroker npm install iobroker.js-controller vers


But nothing helps The Browser message tells me no connection "connection error"

MrSonei6 commented 2 years ago

pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

iobroker.js-controller@4.0.18 preinstall /opt/iobroker/node_modules/iobroker.js-controller node lib/preinstallCheck.js

NPM version: 6.14.4

iobroker.js-controller@4.0.18 install /opt/iobroker/node_modules/iobroker.js-controller node iobroker.js setup first

Successfully migrated 8659 objects to Redis Sets object _design/system updated { "defaultPrivate": "-----BEGIN RSA PRIVATE KEY-----\r cert data was edit from me \n-----END RSA PRIVATE KEY-----\r\n", "defaultPublic": "-----BEGIN CERTIFICATE-----\ cert data was edit from me -----END CERTIFICATE-----\r\n" } Update certificate defaultPrivate Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 The object "system.certificates" was updated successfully. Update certificate defaultPublic The object "system.certificates" was updated successfully. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.7 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

58 packages are looking for funding run npm fund for details

Any posibility to rollback to my old working ioBroker installation? I Make that backup comand at the beginning ist it possible to rollback the old installation? I Installd last year an Adapter Adapter "backitup" : 2.3.3 , installed 2.3.3 Can i make a rollback with that?

EDIT: I rollback the old Controller Version @3.3.22 and restored the last made backup with that Command:

sudo iobroker restore /opt/iobroker/backups/2022_03_04-12_15_34_backupiobroker.tar.gz --force

EDIT2: The Restore was succesfull but after the restore i can't reach the ioBroker over the website at all.

Please help Is it Posible that the web service have a problem?

Apollon77 commented 2 years ago

Again: Whats in the logs when you try to start? Logs are placed in /opt/iobroker/logs/...

MrSonei6 commented 2 years ago

Hello what log do you want?

iobroker.2022-02-26.log.gz
iobroker.2022-02-28.log.gz
iobroker.2022-03-02.log.gz
iobroker.2022-03-04.log
iobroker.current.log iobroker.2022-02-27.log.gz
iobroker.2022-03-01.log.gz
iobroker.2022-03-03.log.gz
iobroker-audit.json
restart.log

Apollon77 commented 2 years ago

The one from today maybe? ;-)

MrSonei6 commented 2 years ago

2022-03-04 15:03:16.318 - ^[[32minfo^[[39m: host.raspberrypi Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system 2022-03-04 15:03:16.372 - ^[[31merror^[[39m: host.raspberrypi Cannot find view "system" for search "host" 2022-03-04 15:03:16.383 - ^[[31merror^[[39m: host.raspberrypi Cannot find view "system" for search "state" 2022-03-04 15:03:16.383 - ^[[31merror^[[39m: host.raspberrypi Cannot find view "system" for search "instance" 2022-03-04 15:03:16.384 - ^[[31merror^[[39m: host.raspberrypi Could not collect system.host.raspberrypi states to check for obsolete states: Error: Cannot find view "system" 2022-03-04 15:03:16.385 - ^[[31merror^[[39m: host.raspberrypi _design/system missing - call node iobroker.js setup 2022-03-04 15:03:16.386 - ^[[32minfo^[[39m: host.raspberrypi no instances found 2022-03-04 15:03:16.389 - ^[[31merror^[[39m: host.raspberrypi uncaught exception: doc.rows is not iterable 2022-03-04 15:03:16.390 - ^[[31merror^[[39m: host.raspberrypi TypeError: doc.rows is not iterable at Object.getInstancesOrderedByStartPrio (/opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:2863:27) 2022-03-04 15:03:16.398 - ^[[32minfo^[[39m: host.raspberrypi iobroker _restart 2022-03-04 15:03:16.419 - ^[[31merror^[[39m: host.raspberrypi Cannot write host object:Error: DB closed 2022-03-04 15:03:16.441 - ^[[32minfo^[[39m: host.raspberrypi terminated 2022-03-04 15:03:17.020 - ^[[32minfo^[[39m: host.raspberrypi iobroker Starting node restart.js 2022-03-04 15:03:17.230 - ^[[32minfo^[[39m: host.raspberrypi received SIGTERM 2022-03-04 15:03:17.235 - ^[[33mwarn^[[39m: host.raspberrypi get state error: Connection is closed. 2022-03-04 15:03:17.236 - ^[[32minfo^[[39m: host.raspberrypi terminated 2022-03-04 15:03:17.238 - ^[[32minfo^[[39m: host.raspberrypi iobroker exit null 2022-03-04 15:03:18.423 - ^[[32minfo^[[39m: host.raspberrypi iobroker.js-controller version 3.3.22 js-controller starting 2022-03-04 15:03:18.430 - ^[[32minfo^[[39m: host.raspberrypi Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker 2022-03-04 15:03:18.431 - ^[[32minfo^[[39m: host.raspberrypi hostname: raspberrypi, node: v12.16.3 2022-03-04 15:03:18.431 - ^[[32minfo^[[39m: host.raspberrypi ip addresses: 192.168.178.46 fe80::8079:b799:3f77:4a10 2022-03-04 15:03:18.560 - ^[[31merror^[[39m: host.raspberrypi Cannot read system.config: null (OK when migrating or restoring) 2022-03-04 15:03:18.704 - ^[[32minfo^[[39m: host.raspberrypi connected to Objects and States 2022-03-04 15:03:18.726 - ^[[32minfo^[[39m: host.raspberrypi added notifications configuration of host 2022-03-04 15:03:18.757 - ^[[31merror^[[39m: host.raspberrypi Cannot find view "system" for search "instance" 2022-03-04 15:03:18.758 - ^[[31merror^[[39m: host.raspberrypi Could not add notifications config of this host: Could not get notifications setup from instances: Cannot find view "system" 2022-03-04 15:03:18.779 - ^[[32minfo^[[39m: host.raspberrypi Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system 2022-03-04 15:03:18.832 - ^[[31merror^[[39m: host.raspberrypi Cannot find view "system" for search "host" 2022-03-04 15:03:18.843 - ^[[31merror^[[39m: host.raspberrypi Cannot find view "system" for search "state" 2022-03-04 15:03:18.843 - ^[[31merror^[[39m: host.raspberrypi Cannot find view "system" for search "instance" 2022-03-04 15:03:18.844 - ^[[31merror^[[39m: host.raspberrypi Could not collect system.host.raspberrypi states to check for obsolete states: Error: Cannot find view "system" 2022-03-04 15:03:18.845 - ^[[31merror^[[39m: host.raspberrypi _design/system missing - call node iobroker.js setup 2022-03-04 15:03:18.846 - ^[[32minfo^[[39m: host.raspberrypi no instances found 2022-03-04 15:03:18.849 - ^[[31merror^[[39m: host.raspberrypi uncaught exception: doc.rows is not iterable 2022-03-04 15:03:18.850 - ^[[31merror^[[39m: host.raspberrypi TypeError: doc.rows is not iterable at Object.getInstancesOrderedByStartPrio (/opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:2863:27) 2022-03-04 15:03:18.858 - ^[[32minfo^[[39m: host.raspberrypi iobroker _restart 2022-03-04 15:03:18.879 - ^[[31merror^[[39m: host.raspberrypi Cannot write host object:Error: DB closed 2022-03-04 15:03:18.902 - ^[[32minfo^[[39m: host.raspberrypi terminated 2022-03-04 15:03:19.511 - ^[[32minfo^[[39m: host.raspberrypi iobroker Starting node restart.js 2022-03-04 15:03:19.722 - ^[[32minfo^[[39m: host.raspberrypi received SIGTERM 2022-03-04 15:03:19.725 - ^[[33mwarn^[[39m: host.raspberrypi get state error: Connection is closed. 2022-03-04 15:03:19.726 - ^[[32minfo^[[39m: host.raspberrypi terminated 2022-03-04 15:03:19.729 - ^[[32minfo^[[39m: host.raspberrypi iobroker exit null

Apollon77 commented 2 years ago

Pleas echeck whats it at the end of the logfile. maybe use "tail -f iobroker.2022-03-04.log"

MrSonei6 commented 2 years ago

I I Opend vi iobroker.2022-03-04.log and above are now the date from the end of the log file

Apollon77 commented 2 years ago

It seems that your database got corrupted or you have an invalid database type set and not correct files.

Please show "iob status" output and please show content of /opt/iobroker/iobroker-data directory

MrSonei6 commented 2 years ago

Hello

pi@raspberrypi:/opt/iobroker/log $ iob status Cannot read system.config: null (OK when migrating or restoring) iobroker is not running on this host.

Objects type: file States type: file


pi@raspberrypi:/opt/iobroker/iobroker-data $ ls backitup files notifications.json objects.json.bak objects.jsonl states.json states.json.bak.migrated states.json.migrated backup-objects iobroker.json objects.json objects.json.bak.migrated objects.json.migrated states.json.bak states.jsonl tmp pi@raspberrypi:/opt/iobroker/iobroker-data $

Apollon77 commented 2 years ago

As expected your DB files are "jsonl" but your setting is file ...

So first of all "iob stop" and verify it is stopped!

Then two options: A.) Edit /opt/iobroker/iobroker-data/iobroker.json and change the "type": "file" that you have in section "objects" and in section "states" to "jsonl" (so goal: "type": "jsonl",) B) delete the *.jsonl files in /opt/iobroker/iobroker-data and rename the "objects.json.migrated" to "objects.json" and "states.json.migrated" to "states.json"

One of those should fix it

MrSonei6 commented 2 years ago

Hi the option A was not working

"objects": { "type": "jsonl", "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].", "host": "127.0.0.1", "port": 9001, "user": "", "pass": "", "noFileCache": false, "connectTimeout": 2000, "options": { "auth_pass": null, "retry_max_delay": 5000 }, "backup": { "disabled": false, "files": 24, "filesComment": "Minimal number of backup files, after the deletion will be executed according to backupTime settings", "hours": 48, "hoursComment": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber", "period": 120, "periodComment": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0", "path": "", "pathComment": "Absolute path to backup directory or empty to backup in data directory" } }, "states": { "type": "jsonl",

after start the iobroker the web services are not reachable

MrSonei6 commented 2 years ago

Option B

You tell me i shold delet all .jsonl files should i delete .jsonl and .json files ore only the .jsonl files?

Here are the files_

notifications.json
objects.jsonl
states.jsonl
iobroker.json
objects.json
states.json

EDit i tryed to delete at first the jsonl files with rm objects.jsonl
rm states.jsonl

But now the Files are in the folder as -objects.jsonl.lock -states.jsonl.lock

se her the LS after Del pi@raspberrypi:/opt/iobroker/iobroker-data $ ls backitup files notifications.json objects.json.bak objects.jsonl.lock states.json states.json.bak.migrated states.json.migrated backup-objects iobroker.json objects.json objects.json.bak.migrated objects.json.migrated states.json.bak states.jsonl.lock tmp pi@raspberrypi:/opt/iobroker/iobroker-data $

Edit2: an now i renamed the two files

pi@raspberrypi:/opt/iobroker/iobroker-data $ mv objects.json.migrated objects.json pi@raspberrypi:/opt/iobroker/iobroker-data $ mv states.json.migrated states.json pi@raspberrypi:/opt/iobroker/iobroker-data $ pi@raspberrypi:/opt/iobroker/iobroker-data $ pi@raspberrypi:/opt/iobroker/iobroker-data $ ls backitup backup-objects files iobroker.json notifications.json objects.json objects.json.bak objects.json.bak.migrated states.json states.json.bak states.json.bak.migrated tmp pi@raspberrypi:/opt/iobroker/iobroker-data $

But i cann not reach the browser session After that A and B The browser tell me no connection

Apollon77 commented 2 years ago

Honestly ... I have no idea what your current status is ... IF you change file->jsonl in konfig and now removed all jsonl file yes this will break. If you do oütion B you need to revent that one change in config

MrSonei6 commented 2 years ago

Ok i set the both Types back to "file"

The aktual Status? I dont know how can i get them?

I make sudo apt update sudo apt full-upgrade sudo reboot

nothing chaneged

Apollon77 commented 2 years ago

please provide a "ls -la /opt/iobroker/iobroker-data" and the last lines of the currrent log if you try to start iobroker again.

And realyl honestly: This topic is much better and fast handled in teh forum then here

MrSonei6 commented 2 years ago

pi@raspberrypi:~ $ ls -la /opt/iobroker/iobroker-data insgesamt 32316 drwxrwxr-x+ 8 iobroker iobroker 4096 Mär 4 16:42 . drwxrwxr-x+ 8 iobroker iobroker 4096 Mär 4 16:42 .. drwxrwxr-x+ 2 iobroker iobroker 4096 Mär 4 16:43 backitup drwxrwxr-x+ 2 iobroker iobroker 12288 Mär 4 16:40 backup-objects drwxrwxr-x+ 20 iobroker iobroker 4096 Aug 19 2020 files -rw-rwxr--+ 1 iobroker iobroker 4347 Mär 4 16:40 iobroker.json -rw-rwxr--+ 1 iobroker iobroker 119 Mär 4 16:40 notifications.json -rw-rwxr--+ 1 iobroker iobroker 8022625 Mär 4 16:39 objects.json.bak.migrated -rw-rwxr--+ 1 iobroker iobroker 10901335 Mär 4 16:47 objects.jsonl drwxrwxr-x+ 2 iobroker iobroker 4096 Mär 4 16:48 objects.jsonl.lock -rw-rwxr--+ 1 iobroker iobroker 8022625 Mär 4 16:40 objects.json.migrated -rw-rwxr--+ 1 iobroker iobroker 1599759 Mär 4 16:40 states.json.bak.migrated -rw-rwxr--+ 1 iobroker iobroker 2883426 Mär 4 16:48 states.jsonl drwxrwxr-x+ 2 iobroker iobroker 4096 Mär 4 16:48 states.jsonl.lock -rw-rwxr--+ 1 iobroker iobroker 1599759 Mär 4 16:40 states.json.migrated drwxrwxr-x+ 3 iobroker iobroker 4096 Mai 25 2020 tmp pi@raspberrypi:~ $

aktual status is

pi@raspberrypi:~ $ pi@raspberrypi:~ $ iobroker status iobroker is running on this host.

Objects type: jsonl States type: jsonl pi@raspberrypi:~ $ pi@raspberrypi:~ $ pi@raspberrypi:~ $ iobroker update -i Used repository: stable Adapter "admin" : 5.3.1 , installed 5.3.1 Adapter "alexa2" : 3.11.2 , installed 3.11.2 Adapter "backitup" : 2.3.3 , installed 2.3.3 Adapter "discovery" : 2.7.5 , installed 2.7.5 Adapter "fakeroku" : 0.2.1 , installed 0.2.1 Adapter "harmony" : 1.2.2 , installed 1.2.2 Adapter "hmip" : 1.15.4 , installed 1.15.4 Adapter "hue" : 3.6.5 , installed 3.6.5 Adapter "ical" : 1.11.4 , installed 1.11.4 Adapter "info" : 1.9.8 , installed 1.9.8 Adapter "javascript" : 5.2.21 , installed 5.2.21 Controller "js-controller": 4.0.15 , installed 4.0.15 Adapter "telegram" : 1.11.1 , installed 1.11.1 Adapter "trashschedule": 1.4.1 , installed 1.4.1 Adapter "web" : 3.4.16 , installed 3.4.16 pi@raspberrypi:~ $ pi@raspberrypi:~ $ pi@raspberrypi:~ $ pi@raspberrypi:~ $ pi@raspberrypi:~ $ pi@raspberrypi:~ $ pi@raspberrypi:~ $ pi@raspberrypi:~ $ iobroker list instances

Apollon77 commented 2 years ago

But honestly .. this all looks good ... try "iob restart admin" and check the log what is written there

Anzic23 commented 2 years ago

can i open the issue? This situation happens to me every time when the container is reloaded. I'm already tired of restoring from a backup file. For me the procedure looks like this: reloading the container, I get: Cannot read system.config: null (OK when migrating or restoring) npm i iobroker.js-controller@4.0.23 --production iob stop iob restore iobroker_2022_05_05-02_00_10_backupiobroker.tar.gz and the agonizing wait until everything is removed and re-installed. Is there a way to fix it faster? I tried the fix, it doesn't help. also found that when this happens the iobroker.json file resets the objects setting to "file" even though I'm using JSONL. I thought it would be better when I switched to it, but it only got worse. Please help, I'm really tired of restoring the entire system every time.

Apollon77 commented 2 years ago

Pleas elets discuss that in forum first