NEWS
massive CPU Auslastung
-
@thomas-braun
hmm, eigentlich so gemacht wie es in der beschreibung steht...
anyway. nach dem stop ja offensichtlich weg.
trotzdem kommtNo connection to databases possible ...
woody@ioBroker:/opt/iobroker$ sudo -H -u iobroker npm install iobroker.js-controller@3.3.22 > iobroker.js-controller@3.3.22 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.14.16 > iobroker.js-controller@3.3.22 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first No connection to databases possible ... npm WARN xmlhttprequest-ts@1.0.1 requires a peer of @angular/common@>= 5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN xmlhttprequest-ts@1.0.1 requires a peer of @angular/core@>= 5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (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":"x64"}) 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":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 22 npm ERR! iobroker.js-controller@3.3.22 install: `node iobroker.js setup first` npm ERR! Exit status 22 npm ERR! npm ERR! Failed at the iobroker.js-controller@3.3.22 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-02-16T13_08_27_568Z-debug.log woody@ioBroker:/opt/iobroker$
notfalls hab ich mal eine 2. VM jetzt am laufen. wenns hart auf hart geht, versuch ich dort mal ein jännerbackup einspielen...
@apollon77 jetzt hab ich länger gewartet...
-
@da_woody Ja jetzt kommt ja auch kein "can not lock database" - das war darauf bezogen.
Ok, welche Version ist da denn jetzt drauf wirklich? Es gibt noch eine Idee die ich habe weil es ja jsonl ist.
editiere /opt/iobroekr/iobroker-data/iobroker.json und schauee dort beide stellen wo ein "connectTiemout" steht und schreibe dort 5000 rein falls 2000 drin steht. Das war früher mal ein Issue - ist ab der 4.0.10 erledigt weil wir dann mindestens 5s warten
Danach nochmal versuchen
-
@apollon77 gute frage, will einfach nicht starten...
woody@ioBroker:/opt/iobroker$ iob start woody@ioBroker:/opt/iobroker$ iob status internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } woody@ioBroker:/opt/iobroker$
-
@da_woody Naja das liegt daran das der npm install es kaputt gemacht hat ... als müssen wir da anfangen
-
@apollon77 muss kurz mit dem hund raus, bin aber zu jeder schandtat bereit...
-
@da_woody siehe oben connectTimeout auf 500 setzen, nochmal versuchen
-
-
@homoran klar, war auch ein tippfehler drinnen...
@apollon77 keine änderung...gerade mal mit winscp geschaut. das verzeichniss /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js gibts nicht.
-
@da_woody was ich aber gefunden habe:
/opt/iobroker/node_modules/iobroker.backitup/lib/restore/iobroker.js
/home/woody/node_modules/iobroker.js-controller/iobroker.js
-
@da_woody sagte in massive CPU Auslastung:
/home/woody/node_modules/iobroker.js-controller/iobroker.js
Naja das ist der Additional controller den Du dir weiter oben mal selbst verpasst hast. Das sollte aber egal sein.
Schreib mal anstelle 5000 eine 10000 an beiden stellen mit connectTimeout rein!! Dann ist die Frage wartet er ca. 10s bevor der Fehler kommt oder kürzer?
-
@apollon77 beide connectTimeout auf 10000 geändert, gespeichert. nach iob start ist der prompt sofort wieder da max 1sec. keine 10sec.
woody@ioBroker:~$ iob start woody@ioBroker:~$ iob status internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } woody@ioBroker:~$
-
@da_woody Grmmppfffff ... du solltest ein "npm install iobroker.js-controller@3.3.22 --production" versuchen. Der kann nicht starten weil er grad nicht installiert ist. Also erstmal installieren und da gabs den "Connot connect to DB "Fehler
-
@apollon77 sorry...
okwoody@ioBroker:~$ npm install iobroker.js-controller@3.3.22 --production > iobroker.js-controller@3.3.22 preinstall /home/woody/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.14.16 > iobroker.js-controller@3.3.22 install /home/woody/node_modules/iobroker.js-controller > node iobroker.js setup first object _design/custom updated object _design/system updated ATTENTION: Error reporting via Sentry will be activated on next start of ioBroker ioBroker wants to make sure to deliver the most stable smart home system. To allow this we decided to implement an automatic error and crash reporting solution into the js-controller and also into adapters. THIS REPORTING WILL BE ENABLED WITH THE NEXT START OF YOUR IOBROKER! For any error that leads to the crash of the js-controller or one of the relevant adapters the error details are send to a server. For the js-controller and core adapters this server is located and operated in germany. For community adapters please check the Github Readme of the affected adapter for details which Sentry server is used. If you want to disable the error reporting you can use the command 'iobroker plugin disable sentry' This command will also make sure that no adapter that runs on this host will send crash reporting data to sentry. npm WARN saveError ENOENT: no such file or directory, open '/home/woody/package.json' npm WARN enoent ENOENT: no such file or directory, open '/home/woody/package.json' npm WARN woody No description npm WARN woody No repository field. npm WARN woody No README data npm WARN woody No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (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":"x64"}) + iobroker.js-controller@3.3.22 updated 1 package and audited 485 packages in 8.91s 12 packages are looking for funding run `npm fund` for details found 21 vulnerabilities (13 low, 5 moderate, 3 high) run `npm audit fix` to fix them, or `npm audit` for details woody@ioBroker:~$
sieht mal nicht so schlecht aus... denk ich mal.
was bedeutet das runnpm audit fix
to fix them, ornpm audit
for details jetzt? soll ich den fix ausführen vor iob start?
ich kann diese meldungen nicht wirklich interpretieren ob notwendig, oder nicht. -
@da_woody sagte in massive CPU Auslastung:
/home/woody/
Jetzt haste es wieder in deinem Home Dir ausgeführt und nicht in /opt/iobroker ... also nochmal bitte an deer richtigen Stelle.
npm audit ... ignorieren bzw wenn alles wieder tut machste einmal "iob fix" und das kommt eh nie wieder
-
@apollon77 oh mann. die shell geschichten treiben mich noch ins irrenhaus.
woody@ioBroker:/opt/iobroker$ npm install iobroker.js-controller@3.3.22 --production > iobroker.js-controller@3.3.22 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.14.16 > iobroker.js-controller@3.3.22 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"! npm WARN xmlhttprequest-ts@1.0.1 requires a peer of @angular/common@>= 5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN xmlhttprequest-ts@1.0.1 requires a peer of @angular/core@>= 5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (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":"x64"}) 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":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 24 npm ERR! iobroker.js-controller@3.3.22 install: `node iobroker.js setup first` npm ERR! Exit status 24 npm ERR! npm ERR! Failed at the iobroker.js-controller@3.3.22 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-02-16T15_24_17_456Z-debug.log woody@ioBroker:/opt/iobroker$
jetzt kommen wieder die errors und plötzlich port 9000?
-
@da_woody Ok, versuch mal ob er vllt den 4.0.10 installiert manuell ... so langsam gehen mir die ideeen aus ... und du bist sicher das nicht iiiiirgendwas auf der kiste noch läuft?
-
Hallo, @apollon77,
sorry, wenn ich mich hier reinhänge. Ich könnte anbieten, mit @da_Woody via Telefon und Anydesk die VM und den ioB neu aufzusetzen. Dann erst mal sein Backup zurückspielen und dann erst den Contoller 4.0.10. Habe ihm das auch per Chat angeboten. VM aufsetzen und IOB installieren dauert ja nicht lange. Da hätte man dann erst einmal eine "Grundstock", mit dem man arbeiten könnte. Ginge auch sofort.
-
-
@apollon77 sagte in massive CPU Auslastung:
und du bist sicher das nicht iiiiirgendwas auf der kiste noch läuft?
login as: woody woody@192.168.0.250's password: Linux ioBroker 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Feb 16 16:18:11 2022 from 192.168.7.209 woody@ioBroker:~$ cd /opt/iobroker woody@ioBroker:/opt/iobroker$ ps auxww|grep io root 12 0.0 0.0 0 0 ? S 16:17 0:00 [migration/0] root 16 0.0 0.0 0 0 ? S 16:17 0:00 [migration/1] root 212 0.0 0.0 0 0 ? I< 16:17 0:00 [rpciod] root 215 0.0 0.0 0 0 ? I< 16:17 0:00 [xprtiod] message+ 370 0.0 0.0 9100 4280 ? Ss 16:17 0:07 /usr/bin/dbus-daemon --system --address=systemd: --nofork - -nopidfile --systemd-activation --syslog-only woody 11698 0.0 0.0 6088 888 pts/1 S+ 21:12 0:00 grep io woody@ioBroker:/opt/iobroker$ ps auxww|grep backup woody 11732 0.0 0.0 6088 888 pts/1 S+ 21:12 0:00 grep backup woody@ioBroker:/opt/iobroker$
sieht für mich nicht danach aus...
versucht mit 4.0.10. auch nicht. hab aber das log mal rausgefischt das am schluß angegeben ist. vllt hilft das?
0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli '/usr/bin/node', 1 verbose cli '/usr/bin/npm', 1 verbose cli 'install', 1 verbose cli 'iobroker.js-controller@4.0.10', 1 verbose cli '--production' 1 verbose cli ] 2 info using npm@6.14.16 3 info using node@v14.19.0 4 verbose npm-session ec259e75475dbf14 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 200 https://registry.npmjs.org/iobroker.js-controller 1004ms 8 http fetch GET 200 https://registry.npmjs.org/iobroker.js-controller/-/iobroker.js-controller-4.0.10.tgz 97ms 9 silly pacote version manifest for iobroker.js-controller@4.0.10 fetched in 1127ms 10 timing stage:loadCurrentTree Completed in 3105ms 11 silly install loadIdealTree 12 silly install cloneCurrentTreeToIdealTree 13 timing stage:loadIdealTree:cloneCurrentTree Completed in 29ms 14 silly install loadShrinkwrap 15 timing stage:loadIdealTree:loadShrinkwrap Completed in 1076ms 16 silly install loadAllDepsIntoIdealTree 17 silly resolveWithNewModule iobroker.js-controller@4.0.10 checking installable status 18 silly removeObsoleteDep removing iobroker.js-controller@4.0.9 from the tree as its been replaced by a newer version or is no longer required 19 silly removeObsoleteDep removing @alcalzone/esbuild-register@2.5.1-1 from the tree as its been replaced by a newer version or is no longer required 20 silly removeObsoleteDep removing esbuild@0.11.23 from the tree as its been replaced by a newer version or is no longer required 21 silly removeObsoleteDep removing jsonc-parser@3.0.0 from the tree as its been replaced by a newer version or is no longer required 22 silly removeObsoleteDep removing @iobroker/js-controller-adapter@4.0.9 from the tree as its been replaced by a newer version or is no longer required 23 silly removeObsoleteDep removing node-schedule@2.1.0 from the tree as its been replaced by a newer version or is no longer required 24 silly removeObsoleteDep removing cron-parser@3.5.0 from the tree as its been replaced by a newer version or is no longer required 25 silly removeObsoleteDep removing luxon@1.28.0 from the tree as its been replaced by a newer version or is no longer required 26 silly removeObsoleteDep removing semver@7.3.5 from the tree as its been replaced by a newer version or is no longer required 27 silly removeObsoleteDep removing @iobroker/js-controller-cli@4.0.9 from the tree as its been replaced by a newer version or is no longer required 28 silly removeObsoleteDep removing debug@4.3.3 from the tree as its been replaced by a newer version or is no longer required 29 silly removeObsoleteDep removing ms@2.1.2 from the tree as its been replaced by a newer version or is no longer required 30 silly removeObsoleteDep removing @iobroker/js-controller-common-db@4.0.9 from the tree as its been replaced by a newer version or is no longer required 31 silly removeObsoleteDep removing @iobroker/db-objects-file@4.0.9 from the tree as its been replaced by a newer version or is no longer required 32 silly removeObsoleteDep removing @iobroker/db-base@4.0.9 from the tree as its been replaced by a newer version or is no longer required 33 silly removeObsoleteDep removing @iobroker/js-controller-common@4.0.9 from the tree as its been replaced by a newer version or is no longer required 34 silly removeObsoleteDep removing @alcalzone/pak@0.7.0 from the tree as its been replaced by a newer version or is no longer required 35 silly removeObsoleteDep removing execa@5.1.1 from the tree as its been replaced by a newer version or is no longer required 36 silly removeObsoleteDep removing cross-spawn@7.0.3 from the tree as its been replaced by a newer version or is no longer required 37 silly removeObsoleteDep removing path-key@3.1.1 from the tree as its been replaced by a newer version or is no longer required 38 silly removeObsoleteDep removing shebang-command@2.0.0 from the tree as its been replaced by a newer version or is no longer required 39 silly removeObsoleteDep removing shebang-regex@3.0.0 from the tree as its been replaced by a newer version or is no longer required 40 silly removeObsoleteDep removing get-stream@6.0.1 from the tree as its been replaced by a newer version or is no longer required 41 silly removeObsoleteDep removing human-signals@2.1.0 from the tree as its been replaced by a newer version or is no longer required 42 silly removeObsoleteDep removing merge-stream@2.0.0 from the tree as its been replaced by a newer version or is no longer required 43 silly removeObsoleteDep removing npm-run-path@4.0.1 from the tree as its been replaced by a newer version or is no longer required 44 silly removeObsoleteDep removing onetime@5.1.2 from the tree as its been replaced by a newer version or is no longer required 45 silly removeObsoleteDep removing mimic-fn@2.1.0 from the tree as its been replaced by a newer version or is no longer required
-
nachdem ja der Port 9000 blockiert war/ist ...
was bringt
sudo netstat -tulpen | grep -i 9000