NEWS
Iobroker und cloud???
-
Admin 2 ist nicht mehr im Support, die neuen Adapterversionen sind auf den Admin 3 angepasst. Bitte zuerst alles auf einen aktuellen Stand bringen, dann sehen wir weiter.
Du betreibst da einen „ungesunden“ Mix.
Gruß,
Eric
Von unterwegs getippert
-
JS downgrade:
cd /opt/iobroker
iobroker stop
npm i iobroker.js-controller@1.4.2
iobroker start
Das ist auch der Grund warum ich es nicht unbedingt gut heißen kann, das fertige Images der IOBroker Installation verwendet werden. Da man so nicht weiß was wie zusammen hängt und man die Anleitung nicht ließt ;)
-
jetzt geht gar nix mehr
! pi@raspberrypi:~ $ sudo su
! root@raspberrypi:/home/pi#
! root@raspberrypi:/home/pi#
! root@raspberrypi:/home/pi# cd /opt/iobroker
! root@raspberrypi:/opt/iobroker#
! root@raspberrypi:/opt/iobroker# iobroker stop
! module.js:550
! throw err;
! ^
! Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
! at Function.Module._resolveFilename (module.js:548:15)
! at Function.Module._load (module.js:475:25)
! at Function.Module.runMain (module.js:694:10)
! at startup (bootstrap_node.js:204:16)
! at bootstrap_node.js:625:3
! root@raspberrypi:/opt/iobroker#
! root@raspberrypi:/opt/iobroker# npm i iobroker.js-controller@1.4.2
! > iobroker.js-controller@1.4.2 preinstall /opt/iobroker/node_modules/iobroker.js-controller
! > node lib/preinstall_check.js
! NPM version: 6.4.1
! npm version >= 5: disabling package-lock
! > bcrypt@2.0.1 install /opt/iobroker/node_modules/bcrypt
! > node-pre-gyp install –fallback-to-build
! node-pre-gyp ERR! Pre-built binaries not installable for bcrypt@2.0.1 and node@8.12.0 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)
! node-pre-gyp ERR! Hit error EACCES: permission denied, mkdir '/opt/iobroker/node_modules/bcrypt/lib'
! gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.12.0"
! gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/bcrypt/.node-gyp"
! gyp WARN install got an error, rolling back install
! gyp WARN install got an error, rolling back install
! gyp ERR! configure error
! gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/bcrypt/.node-gyp'
! gyp ERR! System Linux 4.14.70-v7+
! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/opt/iobroker/node_modules/bcrypt/lib/binding" "--napi_version=3" "--node_abi_napi=napi"
! gyp ERR! cwd /opt/iobroker/node_modules/bcrypt
! gyp ERR! node -v v8.12.0
! gyp ERR! node-gyp -v v3.8.0
! gyp ERR! not ok
! node-pre-gyp ERR! build error
! node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/opt/iobroker/node_modules/bcrypt/lib/binding --napi_version=3 --node_abi_napi=napi' (1)
! node-pre-gyp ERR! stack at ChildProcess. <anonymous>(/opt/iobroker/node_modules/bcrypt/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
! node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
! node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
! node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:915:16)
! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
! node-pre-gyp ERR! System Linux 4.14.70-v7+
! node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/bcrypt/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
! node-pre-gyp ERR! cwd /opt/iobroker/node_modules/bcrypt
! node-pre-gyp ERR! node -v v8.12.0
! node-pre-gyp ERR! node-pre-gyp -v v0.9.1
! node-pre-gyp ERR! not ok
! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/opt/iobroker/node_modules/bcrypt/lib/binding --napi_version=3 --node_abi_napi=napi' (1)
! > iobroker.js-controller@1.4.2 install /opt/iobroker/node_modules/iobroker.js-controller
! > node iobroker.js setup first
! Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../_service_iobroker.bat'
! Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iobroker.bat'
! fs.js:885
! return binding.mkdir(pathModule._makeLong(path),
! ^
! Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../tmp'
! at Object.fs.mkdirSync (fs.js:885:18)
! at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:143:58)
! at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:629:27
! at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:661:15)
! at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3166:5)
! at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:100)
! at Module._compile (module.js:653:30)
! at Object.Module._extensions..js (module.js:664:10)
! at Module.load (module.js:566:32)
! at tryModuleLoad (module.js:506:12)
! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
! npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@2.0.1 (node_modules/bcrypt):
! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@2.0.1 install:node-pre-gyp install --fallback-to-build
! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
! npm ERR! code ELIFECYCLE
! npm ERR! errno 1
! npm ERR! iobroker.js-controller@1.4.2 install:node iobroker.js setup first
! npm ERR! Exit status 1
! npm ERR!
! npm ERR! Failed at the iobroker.js-controller@1.4.2 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! /root/.npm/_logs/2018-11-03T08_46_44_302Z-debug.log
! root@raspberrypi:/opt/iobroker#
! root@raspberrypi:/opt/iobroker# iobroker start
! module.js:550
! throw err;
! ^
! Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
! at Function.Module._resolveFilename (module.js:548:15)
! at Function.Module._load (module.js:475:25)
! at Function.Module.runMain (module.js:694:10)
! at startup (bootstrap_node.js:204:16)
! at bootstrap_node.js:625:3
! root@raspberrypi:/opt/iobroker#</anonymous></anonymous> -
-
Da steht was zur NPM Version und da ich vermute, dass dieser Hinweis:
Bei einer bestehenden ioBroker-Installation müssen beim Wechsel der Masterversion von nodejs (4.x, 6.x, 8.x, 10.x) anschließend unbedingt die bereits installierten Adapter für diese geänderte node-Version neu kompiliert werden.Deine Installation ebenfalls betrifft, sollte das auch mal, in Betracht gezogen werden.
Wenn die Ausgaben dann mit der Anleitung überein stimmen, läuft das. Wenn nicht hat man zumindest mal ne Basis
-
so hat alles fast geklappt außer das reinstall wie zu sehen und ich kann immer noch keine neuen gerät hinzufügen
! root@raspberrypi:~# node -v
! v8.12.0
! root@raspberrypi:~#
! root@raspberrypi:~# nodejs -v
! v8.12.0
! root@raspberrypi:~#
! root@raspberrypi:~# npm -v
! 4.6.1
! root@raspberrypi:~# sudo ./reinstall.sh
! sudo: ./reinstall.sh: Befehl nicht gefunden
! root@raspberrypi:~# cd iobroker
! bash: cd: iobroker: Datei oder Verzeichnis nicht gefunden
! root@raspberrypi:~# cd /opt/iobroker
! root@raspberrypi:/opt/iobroker#
! root@raspberrypi:/opt/iobroker# ls -l reinstall.sh
! ls: Zugriff auf 'reinstall.sh' nicht möglich: Datei oder Verzeichnis nicht gefunden
! root@raspberrypi:/opt/iobroker#
3445_03-11-_2018_10-44-17.png -
bei mir fehlt die das verzeichniss reinstall.sh
! root@raspberrypi:/home/pi# cd /opt/iobroker
! root@raspberrypi:/opt/iobroker# ls -la
! insgesamt 516
! drwxr-xr-x 7 root root 4096 Nov 3 10:40 .
! drwxr-xr-x 9 root root 4096 Mär 4 2018 ..
! drwxrwxrwx 2 root root 4096 Nov 3 07:06 backups
! drwxrwxrwx 2 root root 4096 Jan 29 2018 etc
! -rwxrwxrwx 1 root root 297 Jan 29 2018 install.sh
! -rwxrwxrwx 1 root root 57 Nov 3 09:56 iob
! -rwxrwxrwx 1 root root 67 Jan 29 2018 iobroker
! drwxrwxrwx 6 root root 4096 Nov 3 00:19 iobroker-data
! -rwxrwxrwx 1 root root 92 Nov 3 10:36 killall.sh
! drwxrwxrwx 2 root root 4096 Nov 3 02:28 log
! drwxrwxrwx 813 root root 32768 Nov 3 10:40 node_modules
! -rw-rw-rw- 1 root root 19 Nov 3 09:56 .npmrc
! -rwxrwxrwx 1 root root 2059 Nov 3 10:40 package.json
! -rwxrwxrwx 1 root root 426988 Nov 2 22:50 package-lock.json
! -rwxrwxrwx 1 root root 709 Nov 3 09:53 reinstall.dos
! -rwxrwxrwx 1 root root 5868 Nov 3 09:56 reinstall.js
! root@raspberrypi:/opt/iobroker#