NEWS
Grundlegende Fragen / Probleme
-
Hallo zusammen,
ich habe mal eine frage. Irgendwie habe ich das Gefühl das der Iobroker bei mir nicht richtig sauber läuft. Irgendwie habe ich immer wieder probleme mit iobroker.
Fangen wir mal an. Irgendwie startet der Dienst nicht von alleine . Ich muss immer mit putty den dienst starten
Dann bekomme ich beim starten eine Nachricht das meine Nodejs Version nicht unterstützt wird
` > Empfehlung
error_outlineioBroker unterstützt die LTS Versionen 4, 6 und 8 von Node.js. Bitte aktualisieren Sie die verwendete Node.js Version ("v9.10.1") auf dem Rechner "raspberrypi" auf eine unterstützte Version. Wir empfehlen die Verwendung von Node.js 6. `
Dann kann ich diverze Adapter ( zB Yahka nicht installieren )
! ` > $ ./iobroker add yahka
NPM version: 5.8.0
npm install iobroker.yahka –production --save --prefix "/opt/iobroker" (System call)
../authenticate_pam.cc:30:31: fatal error: security/pam_appl.h: Datei oder Verzeichnis nicht gefunden #include <security pam_appl.h="">^
compilation terminated.
make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
gyp
ERR! build error
gyp ERR! stack Error:
makefailed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:258:23)gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.9.80-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
In file included from ../src/dns_sd.cpp:1:0:../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
#include <dns_sd.h>^
compilation terminated.
make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Fehler 1
gyp
ERR!
build error
gyp
ERR!
stack
Error:
makefailed with exit code: 2gypERR!
stack
at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:258:23)gyp
ERR!
stack at ChildProcess.emit (events.js:180:13)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.9.80-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/mdns
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
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: authenticate-pam@1.0.2 (node_modules/authenticate-pam):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install:
node-gyp rebuildnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm
ERR! code ELIFECYCLEnpm ERR! errno
1npm ERR! mdns@2.3.4 install:
node-gyp rebuildnpm ERR! Exit status 1
npm ERR! npm ERR! Failed at the mdns@2.3.4 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-04-02T10_36_57_840Z-debug.log
host.raspberrypi install adapter yahka
NPM version: 5.8.0
npm install iobroker.yahka –production --save --prefix "/opt/iobroker" (System call)
../authenticate_pam.cc:30:31: fatal error: security/pam_appl.h: Datei oder Verzeichnis nicht gefunden #include <security pam_appl.h="">^
compilation terminated.
make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
gyp
ERR! build error
gyp ERR! stack Error:
makefailed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:258:23)gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp
ERR! System Linux 4.9.80-v7+gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pamgyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp
ERR! not ok
In file included from ../src/dns_sd.cpp:1:0:../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
#include <dns_sd.h>^
compilation terminated.
make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Fehler 1
gyp
ERR!
build error gyp ERR! stack Error:
makefailed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.9.80-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/mdns
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
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: authenticate-pam@1.0.2 (node_modules/authenticate-pam):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install:
node-gyp rebuildnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLEnpm ERR! errno 1
npm ERR! mdns@2.3.4 install:
node-gyp rebuildnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mdns@2.3.4 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-04-02T10_37_47_704Z-debug.log
host.raspberrypi install adapter yahka
NPM version: 5.8.0
npm install iobroker.yahka –production --save --prefix "/opt/iobroker" (System call)
../authenticate_pam.cc:30:31: fatal error: security/pam_appl.h: Datei oder Verzeichnis nicht gefunden #include <security pam_appl.h="">^
compilation terminated.
make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
gyp ERR! build error gyp ERR! stack Error:
makefailed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.9.80-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
In file included from ../src/dns_sd.cpp:1:0:../src/mdns.hpp:32:20: fatal error: dns_sd.h: Datei oder Verzeichnis nicht gefunden
#include <dns_sd.h>^
compilation terminated.
make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Fehler 1
gyp
ERR! build error
gyp ERR! stack Error:
makefailed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:258:23)gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.9.80-v7+gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/mdns
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
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: authenticate-pam@1.0.2 (node_modules/authenticate-pam):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install:
node-gyp rebuildnpm WARN
optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm
ERR! code ELIFECYCLEnpm
ERR! errno 1npm ERR! mdns@2.3.4 install:
node-gyp rebuildnpm ERR!
Exit status 1npm ERR!
npm ERR! Failed at the mdns@2.3.4 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-04-02T10_38_37_503Z-debug.log
host.raspberrypi install adapter yahka
ERROR: host.raspberrypi Cannot install yahka
ERROR: process exited with code 13</dns_sd.h></security></dns_sd.h></security></dns_sd.h></security> `
Hier ein paar wichtie Informationen:
Node Version -> v9.10.1
npm Version-> 5.8.0
Hat jemand evtl eine Idee wo das Problem liegen könnte?
Ich muss dazu sagen ich habe nicht wirklich Ahnung von Linux und suche mir alle Befehle im netz raus… Dafür vorab schonmal Sorry.
-
Das Problem fängt damit an, das Du eine Node-Version hast, die nicht sauber unterstützt wird.
Versionen mit ungeraden Nummern sind Entwicklerversionen und sollte nicht produktiv genutzt werden.
Wie hast Du ioBroker denn installiert (nach welcher Anleitung, usw.)?
Gruß,
Eric
Von unterwegs getippert
-
Irgendwie startet der Dienst nicht von alleine `
Das klingt nach Windows Installation.Allerdings sagt das
@Hohenbostler:ich habe nicht wirklich Ahnung von Linux `
etwas anderes.Wenn es jedoch Linux (Raspbian) ist, wie ich dem log entnehme, bitte zuerst die node-version auf 8.x downgraden und dann einfach noch einmal ioBroker installieren:
cd /opt/iobroker sudo npm install iobroker --unsafe-perm --production sudo rebootGruß
Rainer
-
Hi,
ja installiert und eingerichtet nach dem Youtube Video von Schimmer Media.
wie kann ich denn wieder auf eine Version downgraden zB 4,6 oder 8
-
installiert und eingerichtet nach dem Youtube Video von Schimmer Media. `
Wir können leider keinen Support für externe Anbieter geben.wie kann ich denn wieder auf eine Version downgraden zB 4,6 oder 8 `
nimm ruhig v8.x da dein npm bereits auf 5.8 istDowngrade entsprechen diesem Teil der Anleitung:
http://www.iobroker.net/docu/?page_id=5 … ion_Nodejs
Gruß
Rainer
-
Hi,
ja installiert und eingerichtet nach dem Youtube Video von Schimmer Media. `
da wäre unsere eigene Anleitung besser gewesen :-) (http://www.iobroker.net/docu/?page_id=5106&lang=de)wie kann ich denn wieder auf eine Version downgraden zB 4,6 oder 8 `
Das hat Rainer gerade gepostet.Gruß,
Eric
Von unterwegs getippert
-
Irgendwie startet der Dienst nicht von alleine `
Das klingt nach Windows Installation.Allerdings sagt das
@Hohenbostler:ich habe nicht wirklich Ahnung von Linux `
etwas anderes.Wenn es jedoch Linux (Raspbian) ist, wie ich dem log entnehme, bitte zuerst die node-version auf 8.x downgraden und dann einfach noch einmal ioBroker installieren:
cd /opt/iobroker sudo npm install iobroker --unsafe-perm --production sudo rebootGruß
Rainer `
Sorry das habe ich natürlich vergessen. Läuft auf einem Raspberry 3.
Hi
! ` > root@raspberrypi:/opt/iobroker# sudo npm install iobroker –unsafe-perm --produc tion
authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam
node-gyp rebuild
make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten
CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o
../authenticate_pam.cc:30:31: fatal error: security/pam_appl.h: Datei oder Verzeichnis nicht gefunden
#include <security pam_appl.h="">^
compilation terminated.
authenticate_pam.target.mk:93: die Regel für Ziel „Release/obj.target/authenticate_pam/authenticate_pam.o“ scheiterte
make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird verlassen
gyp ERR! build error
gyp ERR! stack Error:
makefailed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.9.80-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
iobroker@1.0.8 install /opt/iobroker/node_modules/iobroker
node lib/setup.js
NPM version: 5.8.0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NPM 5 is currently NOT supported!
Please use "npm install -g npm@4" to downgrade npm to 4.x and try again.
You need to make sure to downgrade again with the above command after you
installed an update to nodejs/npm!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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: authenticate-pam@1.0.2 (node_modules/authenticate-pam):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install:
node-gyp rebuildnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! iobroker@1.0.8 install:
node lib/setup.jsnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iobroker@1.0.8 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-04-02T11_03_34_478Z-debug.log</security> `
Leider bleibt es bei der Meldung das die Version nicht unterstützt wird.
-
Leider bleibt es bei der Meldung das die Version nicht unterstützt wird. `
Hast Du den geforderten Downgrade von Node 9 auf 8 gemacht?Von unterwegs getippert
-
Leider bleibt es bei der Meldung das die Version nicht unterstützt wird. `
Du hast ja noch node v9.x!
@Hohenbostler:gyp ERR! node -v v9.10.1 `
Gruß
Rainer
-
Leider bleibt es bei der Meldung das die Version nicht unterstützt wird. `
Hast Du den geforderten Downgrade von Node 9 auf 8 gemacht?Von unterwegs getippert ` Ja mit dem Befehl von oben.
-
Leider bleibt es bei der Meldung das die Version nicht unterstützt wird. `
Hast Du den geforderten Downgrade von Node 9 auf 8 gemacht?Von unterwegs getippert
Ja mit dem Befehl von oben.
Mit welchem Befehl von oben?Der Downgrade wird erst im Link beschrieben.
Von unterwegs getippert
-
Hi,
ja installiert und eingerichtet nach dem Youtube Video von Schimmer Media. `
da wäre unsere eigene Anleitung besser gewesen :-) (http://www.iobroker.net/docu/?page_id=5106&lang=de)wie kann ich denn wieder auf eine Version downgraden zB 4,6 oder 8 `
Das hat Rainer gerade gepostet.Gruß,
Eric
Von unterwegs getippert `
Die Anleitung von Schimmer Media bezieht sich genau auf eure Seite.
Hast Du den geforderten Downgrade von Node 9 auf 8 gemacht?
Von unterwegs getippert
Ja mit dem Befehl von oben.
Mit welchem Befehl von oben?Der Downgrade wird erst im Link beschrieben.
Von unterwegs getippert `
Jetzt habe ich laut putty diese Versionen installiert.
root@raspberrypi:~# node -v
v9.10.1
root@raspberrypi:~# nodejs -v
v8.11.1
root@raspberrypi:~# npm -v
5.8.0
root@raspberrypi:~#
-
-
Naja ein wenig was ist schon umgesetzt.
Es sind natürlich diverse Smart Home geräte drin und auch schon ein paar scripte…
Gibt es einen anderen Weg ?
-
Wege gibt es immer, ob die aber die besten / die sicheren sind, ist offen.
Ich würde die Scripte sichern, usw. und dann alles neu machen.
Wer weiß, was da sonst noch, ggf. auch sehr viel später, um die Ecke kommt.
Gruß,
Eric
Von unterwegs getippert
-
ok ich mache es mal eben neu und schau dann weiter ;)
-
Hallo,
so neu aufgesetzt.
Wie kann ich jetzt prüfen ob alles richtig ist??
Und ist es normal das die Weboberfläche jetzt wieder in V2 ist und nicht in 3 ?
-
Hi,
was gibt denn
node -v npm -v ````für Versionen zurück? Eine Neuinstallation ist im Stable-Repository und da ist der Admin 2 aktuell. Der Admin 3 ist im Lastest-Repo - siehe auch [http://download.iobroker.net/list.html](http://download.iobroker.net/list.html) (diese Info ist auf der Webseite zu finden). Gruß, Eric
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden