Fehler Nightly Installation

Hallo zusammen,

ich habe gerade auf einem Rechner mit Linux Mint 20.1 (basierend auf Ubuntu Focal) versucht, die aktuelle Nightly über das Install-Skript zu installieren.

Während der Installation tauchen mehrere Fehler auf (siehe Anhang). Das Skript läuft aber durch und anschließend laufen auch mehrere homegear-Prozesse. Allerdings ist kein Zugriff mittels Browser auf die UI möglich.

Gibt es einen Tipp, was ich noch beachten sollte?

(Zur Info: homegear stable 0.7 lässt sich auf dem Rechner installieren und ein Webzugriff ist möglich).

Vielen Dank und schöne Grüße
Alex

paging @sathya

Hallo @Alexander,

die UI müsste unabhängig von deinem Problem eigentlich gehen, sie lauscht aber in aktuellen Nightlies auf Port 80 und 443. Geht sie auf diesen Ports?

Funktioniert es, wenn du eingibst:

cd /var/lib/homegear/node-blue/node-red
npm install --prod

Oder gibt es hier ebenfalls einen Fehler? So ganz ist mir noch nicht klar, warum der Fehler auftritt, da der Installer ja als root ausgeführt wird. In einem schnellen Versuch in einem Ubuntu-Focal-Docker-Container konnte ich das Problem auch nicht reproduzieren. Wie sind die Berechtigungen des Verzeichnisses /var/lib/homegear/node-blue/node-red/node_modules?

Viele Grüße

Sathya

Hallo Sathya,

vielen Dank für die schnelle Rückmeldung!

Die UI startet nun. Mir war nicht bewusst, dass in V0.8 die Standard-Ports genutzt werden. Dort läuft normal ein Apache auf diesem Server und der hatte die Ports blockiert. Deswegen kam die UI nicht hoch.
Ich schau mal, wo ich den Port für homegear ändern kann.

cd /var/lib/homegear/node-blue/node-red npm install --prod

Die Installation aus dem Verzeichnis heraus führt zur gleichen Fehlermeldung. Node-Blue ist aber trotzdem installiert und scheint auch zu funktionieren.

Das Verzeichnis /var/lib/homegear/node-blue/node-red/node_modules gehört homegear:homegear mit rwxrwx---.

Falls sich noch neue Erkenntnisse ergeben, werde ich dir hier posten.

Schöne Grüße
Alex

Das geht für Homegear in der Datei /etc/homegear/rpcservers.conf.

Die Installation aus dem Verzeichnis heraus führt zur gleichen Fehlermeldung. Node-Blue ist aber trotzdem installiert und scheint auch zu funktionieren.

Node-BLUE funktioniert, solange keine Node-RED-Knoten benötigt werden. Funktioniert

npm install --unsafe-perm

?

Viele Grüße

Sathya

Guten Morgen Sathya,

npm install --unsafe-perm

führt zu folgendem länglichen Ergebnis:

npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/tiny-lr-526aa7fa/src_test/client.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/tiny-lr-526aa7fa/src_test/helpers'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/typedarray-to-buffer-fdfdeb4e/test/basic.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/touch-db476f91/bin/nodetouch.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/tiny-lr-526aa7fa/src_test/http.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/tiny-lr-526aa7fa/src_test/middleware.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/uc.micro-1bf575ce/properties/Any/regex.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/tiny-lr-526aa7fa/src_test/server.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/node-flags.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/reporters/nyan.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/.DS_Store'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/one-and-dones.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/options.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/nodejs/parallel-buffered-runner.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/properties/properties-list.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/iltorb-5fe0e86c/brotli/c/enc/encode.c'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/tag/dictionary.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/properties/properties-table-html.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/doclet.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/nodejs/reporters'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/properties/properties-table.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/node-gyp-76d6ff78/gyp/pylib/gyp/generator/ninja_test.py'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/properties/properties.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/node-gyp-76d6ff78/gyp/pylib/gyp/generator/ninja.py'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/util/doop.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/browser/parse-query.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/readOnly.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/handlebars-f24cd611/lib/handlebars/compiler/compiler.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/create-matcher/is-iterable.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/util/dumper.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/pending.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/requires.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/env.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/plugin-loader.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/returns.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/create-matcher/is-matcher.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/util/error.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/scope.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/browser/progress.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/see.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/plugins/escapeHtml.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/reporters/progress.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/shared/separator.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/plugins/test/specs/escapeHtml.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/interfaces/qunit.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/shared/signature'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/plugins/eventDumper.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/src/filter.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/run-helpers.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/shared/signature'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/nise-5432fb5f/lib/fake-xhr/index.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/function.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/fs.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/run-option-metadata.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/src/handlers.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/run.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/shared/signature'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/create-matcher/match-object.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/tag/inline.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/runnable.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/shared/signature'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/index.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/jsdoc.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/runner.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/since.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/index.test.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/summary.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/create-matcher/matcher-prototype.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/map.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/this.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/object.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/throws.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/todo.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/version.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/set.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/string.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/default-config.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/export-async-behaviors.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/extend.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/fake-timers.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/samsam.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/create-matcher/type-map.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/format.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/function-to-string.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/get-config.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/get-next-tick.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/README.md'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/get-property-descriptor.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/is-es-module.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/is-non-existent-property.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/is-property-configurable.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/is-restorable.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/mock-expectation.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/mock.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/next-tick.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/proxy-call-util.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/proxy-call.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/proxy-invoke.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/proxy.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/restore-object.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/restore.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/sandbox.js'
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/node-red/jsdoc-nr-template.git /root/.npm/_cacache/tmp/git-clone-5c6d48f0/.git
npm ERR! fatal: Konnte führende Verzeichnisse von '/root/.npm/_cacache/tmp/git-clone-5c6d48f0/.git' nicht erstellen.
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-01-13T04_53_14_710Z-debug.log

Nach einem rm -R /root/.npm/ sind dann sowohl npm install --prod als auch npm install --unsafe-perm durchgelaufen.

Edit: npm install --prod funktioniert nur nach einem vorherigen npm install --unsafe-perm

Ich hatte es gestern auch mal in einer sauberen VM mit Mint 20.1 probiert und hatte das gleiche Ergebnis. Es dürfte also eigentlich nicht an igendetwas liegen, was ich vorher auf dem Produktivserver mal installiert hatte bzw. habe.

Schöne Grüße
Alex

Hallo @Alexander,

inzwischen sollte das Problem vollständig behoben sein. npm über dpkg aufzurufen war zu fehlerträchtig. Vor allem auf Geräten mit wenig Arbeitsspeicher ist es häufig abgestürzt. Bei der Installation von Node-RED wird auf dem Pi über 60% des Arbeitsspeichers benötigt - wofür auch immer.

Jetzt ist Node-RED bereits vorinstalliert im Paket.

Viele Grüße

Sathya

Hallo Sathya,

vielen Dank für die Rückmeldung!

Am Speicher wird es bei mir eher nicht gelegen haben (8GB, Core i5).
Aber die letzten Nightlies sind sauber durchgelaufen!

Danke für euren Einsatz!
Alex

2 Likes