NEWS
Nach fehlstart, wie iobroker etc. löschen ?
-
Hallo zusammen,
ich habe vor einigen Tagen auf einem Pi3 fhem installiert. Nun wollte ich iobroker nachziehen um die beiden zu verheiraten. Ich bin nach dieser Anleitung vorgegangen:
http://www.iobroker.net/docu/?page_id=5106&lang=de
Nun bekam ich am Ende der ersten Installation folgende Fehlermeldung:
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json' npm WARN iobroker No description npm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field.
ich dachte ich versuche mal das Web-Interface, aber konnte es nicht aufrufen…
Im inet fand ich unter anderem den Hinweis man solle "npm init" ausfühden um das Problem zu lösen. Habe ich gemacht und die folgenden Abfragen mangels besseren Wissens alle mit den defaultvorgaben bestätigt.
root@raspberrypi:~# npm init This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults. See `npm help json` for definitive documentation on these fields and exactly what they do. Use `npm install <pkg>--save` afterwards to install a package and save it as a dependency in the package.json file. Press ^C at any time to quit. name: (iobroker) version: (1.0.0) entry point: (index.js) test command: git repository: keywords: author: license: (ISC) About to write to /root/package.json: { "name": "iobroker", "version": "1.0.0", "private": true, "description": "Automation platfrom in node.js", "main": "index.js", "dependencies": { "iobroker": "^1.0.1", "iobroker.admin": "^2.0.7", "iobroker.discovery": "^0.4.4", "iobroker.js-controller": "^1.2.0" }, "devDependencies": {}, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC" } Is this ok? (yes)</pkg>
Daraufhin habe ich wieder versucht iobroker zu installieren, bekam dann aber die Meldung:
root@raspberrypi:~# sudo npm install iobroker --unsafe-perm npm ERR! Linux 4.9.41-v7+ npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker" "--unsafe-perm" npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR! code ENOSELF npm ERR! Refusing to install iobroker as a dependency of itself npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https: github.com/npm/issues="">npm ERR! Please include the following file with any support request: npm ERR! /root/npm-debug.log</https:>
Also in meiner Verzweiflung /opt/iobroker gelöscht und von vorne angefangen. Resultat war dasselbe wie im ersten Versuch…
root@raspberrypi:/opt/iobroker# sudo npm install iobroker --unsafe-perm > iobroker@1.0.1 install /opt/iobroker/node_modules/iobroker > node lib/setup.js npm install iobroker.discovery --production --prefix /opt/iobroker node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v48-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@6.11.4 (node-v48 ABI) (falling back to source compile with node-gyp) ../src/serialport.cpp: In function âint getIntFromObject(v8::Local<v8::object>, std::__cxx11::string)â: ../src/serialport.cpp:90:52: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] return getValueFromObject(options, key)->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport.cpp: In function âdouble getDoubleFromObject(v8::Local<v8::object>, std::__cxx11::string)â: ../src/serialport.cpp:102:53: warning: âv8::Local <v8::number>v8::Value::ToNumber() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] return getValueFromObject(options, key)->ToNumber()->NumberValue(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8178:15: note: declared here Local <number>Value::ToNumber() const { ^~~~~ ../src/serialport.cpp: In function âvoid EIO_AfterOpen(uv_work_t*)â: ../src/serialport.cpp:174:31: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] int fd = argv[1]->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport.cpp: In function âNan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)â: ../src/serialport.cpp:193:29: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport.cpp:217:116: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] baton->baudRate = Nan::Get(options, Nan::New<v8::string>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport.cpp: In function âNan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)â: ../src/serialport.cpp:252:29: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport.cpp: In function âNan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)â: ../src/serialport.cpp:369:32: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] baton->fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport.cpp: In function âNan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)â: ../src/serialport.cpp:480:29: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport.cpp: In function âNan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)â: ../src/serialport.cpp:528:29: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport.cpp: In function âNan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)â: ../src/serialport.cpp:585:29: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport_unix.cpp: In function âOpenBatonPlatformOptions* ParsePlatformOptions(const v8::Local<v8::object>&)â: ../src/serialport_unix.cpp:44:109: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] result->vmin = Nan::Get(options, Nan::New<v8::string>("vmin").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport_unix.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport_unix.cpp:45:111: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] result->vtime = Nan::Get(options, Nan::New<v8::string>("vtime").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport_unix.cpp:1: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ ../src/serialport_poller.cpp: In static member function âstatic Nan::NAN_METHOD_RETURN_TYPE SerialportPoller::New(Nan::NAN_METHOD_ARGS_TYPE)â: ../src/serialport_poller.cpp:86:31: warning: âv8::Local <v8::int32>v8::Value::ToInt32() constâ is deprecated: Use maybe version [-Wdeprecated-declarations] obj->fd_ = info[0]->ToInt32()->Int32Value(); ^ In file included from /root/.node-gyp/6.11.4/include/node/node.h:42:0, from ../../nan/nan.h:49, from ../src/serialport_poller.cpp:5: /root/.node-gyp/6.11.4/include/node/v8.h:8214:14: note: declared here Local <int32>Value::ToInt32() const { ^~~~~ npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json' npm WARN iobroker No description npm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field. npm install iobroker.admin --production --prefix /opt/iobroker npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json' npm WARN iobroker No description npm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field. npm install iobroker.js-controller --production --prefix /opt/iobroker host.raspberrypi error: this adapter does not allow multiple instances on one host npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json' npm WARN iobroker No description npm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field. npm ERR! Linux 4.9.41-v7+ npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.js-controller" "--production" "--prefix" "/opt/iobroker" npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! iobroker.js-controller@1.2.0 install: `node iobroker.js setup first` npm ERR! Exit status 21 npm ERR! npm ERR! Failed at the iobroker.js-controller@1.2.0 install script 'node iobroker.js setup first'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the iobroker.js-controller package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node iobroker.js setup first npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs iobroker.js-controller npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls iobroker.js-controller npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /opt/iobroker/node_modules/iobroker/npm-debug.log Cannot install as normal user. Try sudo... sudo npm install iobroker.js-controller --production --prefix /opt/iobroker npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json' npm WARN iobroker No description npm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field. Write "./iobroker start" to start the ioBroker /usr/bin/env: ânode\râ: No such file or directory Auto-start was enabled. Write "update-rc.d -f iobroker.sh remove" to disable auto-start iobroker is started. Go to "http://ip-addr:8081" to open the admin UI. /opt/iobroker ââ⬠iobroker@1.0.1 ââ⬠yargs@7.1.0 âââ camelcase@3.0.0 ââ⬠cliui@3.2.0 â ââ⬠strip-ansi@3.0.1 â â âââ ansi-regex@2.1.1 â âââ wrap-ansi@2.1.0 âââ decamelize@1.2.0 âââ get-caller-file@1.0.2 ââ⬠os-locale@1.4.0 â ââ⬠lcid@1.0.0 â âââ invert-kv@1.0.0 ââ⬠read-pkg-up@1.0.1 â ââ⬠find-up@1.1.2 â â âââ path-exists@2.1.0 â â ââ⬠pinkie-promise@2.0.1 â â âââ pinkie@2.0.4 â ââ⬠read-pkg@1.1.0 â ââ⬠load-json-file@1.1.0 â â âââ graceful-fs@4.1.11 â â ââ⬠parse-json@2.2.0 â â â ââ⬠error-ex@1.3.1 â â â âââ is-arrayish@0.2.1 â â âââ pify@2.3.0 â â ââ⬠strip-bom@2.0.0 â â âââ is-utf8@0.2.1 â ââ⬠normalize-package-data@2.4.0 â â âââ hosted-git-info@2.5.0 â â ââ⬠is-builtin-module@1.0.0 â â â âââ builtin-modules@1.1.1 â â âââ semver@5.4.1 â â ââ⬠validate-npm-package-license@3.0.1 â â ââ⬠spdx-correct@1.0.2 â â â âââ spdx-license-ids@1.2.2 â â âââ spdx-expression-parse@1.0.4 â âââ path-type@1.1.0 âââ require-directory@2.1.1 âââ require-main-filename@1.0.1 âââ set-blocking@2.0.0 ââ⬠string-width@1.0.2 â âââ code-point-at@1.1.0 â ââ⬠is-fullwidth-code-point@1.0.0 â âââ number-is-nan@1.0.1 âââ which-module@1.0.0 âââ y18n@3.2.1 âââ yargs-parser@5.0.0 npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json' npm WARN iobroker No description npm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field.</int32></v8::int32></int32></v8::string></v8::int32></int32></v8::string></v8::int32></v8::object></int32></v8::int32></int32></v8::int32></int32></v8::int32></int32></v8::int32></int32></v8::int32></int32></v8::string></v8::int32></int32></v8::int32></int32></v8::int32></number></v8::number></v8::object></int32></v8::int32></v8::object>
ABER !!! Ich kann jetzt die web-Gui aufrufen meine Daten eingeben, Geräte suchen etc.
Die Hauptfrage ist nun: Ist jetzt alles gut oder laufe ich Gefahr irgendwo einen Bug mir eingehandelt zu haben ?
viele Grüße
Freddy
-
Das sind doch nur Warming’s - alles müsste gut sein.
Admin kannst Du ja aufrufen, usw. oder?
Gruß,
Eric
Von unterwegs getippert
-
> "eric2905"]Das sind doch nur Warming’s - alles müsste gut sein.
Nunja, ein par ERR's sind schoin auch dabei
Ja, wen Du mit "Admin" die Web-Console meinst, die kann ich aufrufen und auch Devices discovern und so
-
Das sind doch nur Warming’s - alles müsste gut sein.
Admin kannst Du ja aufrufen, usw. oder?
Gruß,
Eric
Von unterwegs getippert `
Genau, es passiert öfter das ioBroker nach der Installation nicht automatisch startet dann muss man manuell
Cd /opt/iobroker Sudo iobroker start
Eingegeben
Manchmal wird der autostart nicht gesetzt (zB wenn man die Installation nicht aus root macht, an Ende des install logs steht welche Befehle man eingehen muss dafür
–-----------------------
Send from mobile device
-
Nunja, ein par ERR's sind schoin auch dabei `
Tapatalk zeigt mir nur Warnings an, die Du gepostet hast :~~![](</s><URL url=)<link_text text="https://uploads.tapatalk-cdn.com/201710 ... b33c09.jpg">https://uploads.tapatalk-cdn.com/20171013/553844de2d076e68a5fff6a20cb33c09.jpg</link_text>" />
Gruß,
Eric
Von unterwegs getippert~~
-
Nunja, ein par ERR's sind schoin auch dabei
Tapatalk zeigt mir nur Warnings an, die Du gepostet hast :z.B.
npm ERR! Linux 4.9.41-v7+ npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.js-controller" "--production" "--prefix" "/opt/iobroker" npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! iobroker.js-controller@1.2.0 install: `node iobroker.js setup first` npm ERR! Exit status 21 npm ERR! npm ERR! Failed at the iobroker.js-controller@1.2.0 install script 'node iobroker.js setup first'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the iobroker.js-controller package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node iobroker.js setup first npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs iobroker.js-controller npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls iobroker.js-controller npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /opt/iobroker/node_modules/iobroker/npm-debug.log Cannot install as normal user. Try sudo...
-
Jetzt sehe ich sie auch. In Deinem Posting (siehe mein Screenshot) waren nur 2 Warnings zu sehen.
Gruß,
Eric
Von unterwegs getippert
-
Und wie wurde es gelöst?