NEWS
Node Red fehlt iobroker Input Output bzw node iobroker vis
-
-
-
-
Wer kann mir helfen?
Ich glaube, ich habe zwei node red Versionen durch das update installiert und durch die Katze wird eine zweite, ohne Zugriffsmöglichkeit auf das node red vom iobroker installliert.
Alternativ habe ich versucht, auf der CCU3 node red installiert, kann jedich auch von dort nicht auf den iobroker (anderer raspbeerry) zugreifen.Im Log ist das Fehlen von etwas erkennbar:
module.js:550 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js' at Function.Module._resolveFilename (module.js:548:15)
-
Hi.
im Github Master ist ein Bug drin, weswegen die Nodes den Pfad zur Controller Lib nicht mehr finden. Deswegen werden beim Start von nodered die Nodes entfernt.
Den Fehler hab ich in meinem Pull-Request zur nodered 0.20.3 behoben. Die ist aber noch nicht in dem Master übernommen worden.
Die Version auf npm geht nicht?Bitte auch nicht die Version des Nodered-Adapters in iobroker mit der Versionsnummer von Nodered selbst verwechseln.
Der Adapter hat die Version 1.7.2. Die durch diesen installierte Nodered-Version ist 0.19.x.
Die neueste Version von nodered ist 0.20.3. Diese ist definitiv noch nicht kompatibel mit der npm Version 1.7.2 des Nodered Adapters, da hier nodered in mehrere Module aufgesplittet wurde. -
Danke für die Erklärung.
Also entweder etwas warten und dann die korrigierte Version updaten oder ...?Ein downgrade im iobroker korrigiert bei mir den Pfad nicht.
Die Installation über ssh und npm install node red habe ich nicht versucht, da ich den genauen Befehl nicht kenne. -
@Mario-Doell
Wenn du die Fehlermeldungmodule.js:550 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js' at Function.Module._resolveFilename (module.js:548:15)
hast, dann liegt es daran, dass du bereits nodered auf Version 0.20.x angehoben hast. Diese läuft mit dem alten node-red-Adapter nicht. Da die geforderte Version von Node-Red im Adapter-Package nur mit ~ angegeben wurde, wird bei Neuinstallation des Adapters die neuere Version von Node-Red nicht durch die 0.19.6 ersetzt.
Du hast jetzt mehrere Möglichkeiten, dies Problem zu lösen:
- manueller Downgrade von Node-red über RPM:
Beende den node-red-Adapter und damit auch node-red.
Überprüfe, in welchem Verzeichnis Node-Red (nicht der iobroker.node-red) installiert wurde. Dies sollte
/opt/iobroker/node_modules/node-red sein.
Wenn dies der Fall ist, gehe in das Verzeichnis /opt/iobroker und gebe dort das folgende Kommando ein:
npm install node-red@0.19.6
Starte danach wieder den node-red-Adapter.
Sollte iobroker bei dir mit dem User iobroker statt root laufen (wird beim Starten eine Fehlermeldung im Log angezeigt), musst du ggf. auch noch den Besitzer des Verzeichnisses
/opt/iobroker/node_modules/node-red auf iobroker ändern.- Installation der Version aus meinem Pull-Request. Dieser ist aber bisher nur von mir geprüft.
Dies kannst du direkt über die Admin-Seite machen, in dem du bei der Installation aus einener URL auf den Reiter Beliebig gehst und da folgende URL angibst:
https://github.com/nobodyMO/ioBroker.node-red.git
Sichere dir aber bitte vorher die flows.json und die flows-cred.json aus deinem Datenverzeichnis (/opt/iobroker/iobroker-data/node-red). Die 0.20.0 hatte einen schweren Bug, bei dem im Zusammenspiel mit dem Kopieren der Flows durch den Adapter mit jeder Veröffentlichung alle Objekte in der flows,json verdoppelt wurden. Dieser Fehler ist bei mir aber mit der 0.20.3 nicht mehr aufgetreten. Diese läuft bei mir nun seit 10 Tagen stabil.
- Warten
Der Pull-Request ist nun 8 Tage alt. Keine Ahnung, wann ob und wann die neue Version veröffentlicht wird.
- manueller Downgrade von Node-red über RPM:
-
Vielen Dank für die Erklärung und Hilfe!
Folgende Fehler kommen beim der npm Installation:
pi@raspberrypi:/opt/iobroker $ npm install node-red@0.19.6
^[[C[..................] - fetchMetadata: sill removeObsoleteDep removing lodashnpm WARN deprecated nodemailer@1.11.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated mailparser@0.6.2: Mailparser versions older than v2.3.0 are deprecated
npm WARN deprecated mimelib@0.3.1: This project is unmaintained
npm WARN deprecated mailcomposer@2.1.0: This project is unmaintained
npm WARN deprecated buildmail@2.0.0: This project is unmaintained
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/append-field
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/bcrypt/node_modules/nan
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/block-stream
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/body-parser/node_modules/debug
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/body-parser/node_modules/qs
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/bytes
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/esprima
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express-session/node_modules/ms
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express-session/node_modules/debug
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express/node_modules/debug
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express/node_modules/qs
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express/node_modules/setprototypeof
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express/node_modules/statuses
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/finalhandler/node_modules/statuses
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/finalhandler
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/fresh
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/fstream
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/fstream-ignore
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/graceful-readlink
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/i18next-client
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iconv-lite
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/ipaddr.js
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/json5
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/keygrip
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/cookies
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/klaw
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/multer/node_modules/object-assign
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-pre-gyp/node_modules/tar
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red/node_modules/follow-redirects
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red/node_modules/jsonfile
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/oauth
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/proxy-addr
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/pump
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/raw-body
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/body-parser
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/send/node_modules/debug
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/send/node_modules/mime
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/send/node_modules/statuses
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/send
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/serve-static
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/source-map
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/string_decoder
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/readable-stream
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/tar-pack/node_modules/tar
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/uglify-js/node_modules/commander
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/uid-number
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/tar-pack
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-pre-gyp
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/utils-merge
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/xml2js/node_modules/xmlbuilder
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/basic-auth
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/bcrypt
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/clone
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/cors
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/cron
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express-session
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/i18next
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/js-yaml
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/jsonata
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/mqtt
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/multer
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/mustache
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red-node-rbe
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red-node-twitter
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red/node_modules/fs-extra
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red/node_modules/semver
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/nopt
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/oauth2orize
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/passport
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/uglify-js
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/xml2js
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/bcrypt/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/body-parser/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express-session/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/finalhandler/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/mqtt/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/multer/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-pre-gyp/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/send/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/tar-pack/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/uglify-js/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/xml2js/node_modules
npm ERR! path /opt/iobroker/node_modules/append-field
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/opt/iobroker/node_modules/append-field'
npm ERR! { Error: EACCES: permission denied, access '/opt/iobroker/node_modules/append-field'
npm ERR! stack: 'Error: EACCES: permission denied, access '/opt/iobroker/node_modules/append-field'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/opt/iobroker/node_modules/append-field' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-03-30T19_04_14_556Z-debug.log -
Probiere jetzt Deinen pull request, danke für den Pfad!...bin gespannt.
Bekomme den Adapter leider nicht mehr auf grün.
2019-03-30 20:25:25.215 - info: node-red.0 terminating
2019-03-30 20:25:25.236 - error: Caught by controller[0]: { Error: ENOENT: no such file or directory, mkdir '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/../@node-red/editor-client/public'
2019-03-30 20:25:25.237 - error: Caught by controller[0]: at Object.fs.mkdirSync (fs.js:885:18)
2019-03-30 20:25:25.237 - error: Caught by controller[0]: at syncPublic (/opt/iobroker/node_modules/iobroker.node-red/main.js:341:12)
2019-03-30 20:25:25.237 - error: Caught by controller[0]: at main (/opt/iobroker/node_modules/iobroker.node-red/main.js:412:5)
2019-03-30 20:25:25.237 - error: Caught by controller[0]: at installLibraries (/opt/iobroker/node_modules/iobroker.node-red/main.js:104:23)
2019-03-30 20:25:25.237 - error: Caught by controller[0]: at Adapter. (/opt/iobroker/node_modules/iobroker.node-red/main.js:37:5)
2019-03-30 20:25:25.238 - error: Caught by controller[0]: at emitNone (events.js:106:13)
2019-03-30 20:25:25.238 - error: Caught by controller[0]: at Adapter.emit (events.js:208:7)
2019-03-30 20:25:25.238 - error: Caught by controller[0]: at initAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4990:18)
2019-03-30 20:25:25.238 - error: Caught by controller[0]: at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:788:29
2019-03-30 20:25:25.238 - error: Caught by controller[0]: at Immediate.createInstancesObjects [as _onImmediate] (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:748:13)
2019-03-30 20:25:25.238 - error: Caught by controller[0]: errno: -2,
2019-03-30 20:25:25.238 - error: Caught by controller[0]: code: 'ENOENT',
2019-03-30 20:25:25.239 - error: Caught by controller[0]: syscall: 'mkdir',
2019-03-30 20:25:25.239 - error: Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/../@node-red/editor-client/public' }
2019-03-30 20:25:25.239 - error: host.raspberrypi instance system.adapter.node-red.0 terminated with code 0 (OK)
2019-03-30 20:25:25.239 - info: host.raspberrypi Restart adapter system.adapter.node-red.0 because enabled
2019-03-30 20:25:28.520 - info: host.raspberrypi instance system.adapter.node-red.0 started with pid 10776
2019-03-30 20:25:29.777 - info: node-red.0 starting. Version 1.7.2 in /opt/iobroker/node_modules/iobroker.node-red, node: v8.15.1
2019-03-30 20:25:29.806 - error: node-red.0 uncaught exception: ENOENT: no such file or directory, mkdir '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/../@node-red/editor-client/public'
2019-03-30 20:25:29.806 - error: node-red.0 Error: ENOENT: no such file or directory, mkdir '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/../@node-red/editor-client/public'
at Object.fs.mkdirSync (fs.js:885:18)
at syncPublic (/opt/iobroker/node_modules/iobroker.node-red/main.js:341:12)
at main (/opt/iobroker/node_modules/iobroker.node-red/main.js:412:5)
at installLibraries (/opt/iobroker/node_modules/iobroker.node-red/main.js:104:23)
at Adapter. (/opt/iobroker/node_modules/iobroker.node-red/main.js:37:5)
at emitNone (events.js:106:13)
at Adapter.emit (events.js:208:7)
at initAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4990:18)
at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:788:29
at Immediate.createInstancesObjects [as _onImmediate] (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:748:13)
2019-03-30 20:25:29.910 - info: node-red.0 terminating -
@Mario-Doell
Kannst du mal nachsehen, in welchem Verzeichnis node-red installiert wurde und wo @node-red?
Zu 1: Mit welchem User hast du das npm-Kommando aufgerufen? Wenn das zuvor mit user iobroker installiert wurde, muss das mit root erfolgen oder mit sudo vor dem npm. -
npm mach ich gleich nochmal mit sudo, chown auf iobroker ist gemacht