Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapter startet nicht nach Update auf V1.1.1 #70

Closed
data2000 opened this issue Aug 7, 2023 · 5 comments
Closed

Adapter startet nicht nach Update auf V1.1.1 #70

data2000 opened this issue Aug 7, 2023 · 5 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@data2000
Copy link

data2000 commented Aug 7, 2023

Der Doorbird Adapter läuft nach dem Update auf V1.1.1 auf nachfolgende Fehler und startet nicht mehr.
Installation:
Admin 6.6.3
Node.js v18.17.0
NPM 6.14.10

Was kann ich tun?

host.Rpi4 2023-08-07 13:55:23.608 error instance system.adapter.doorbird.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
host.Rpi4 2023-08-07 13:55:23.608 error Caught by controller[0]: Node.js v18.17.0
host.Rpi4 2023-08-07 13:55:23.608 error Caught by controller[0]: }
host.Rpi4 2023-08-07 13:55:23.607 error Caught by controller[0]: ]
host.Rpi4 2023-08-07 13:55:23.607 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.doorbird/main.js'
host.Rpi4 2023-08-07 13:55:23.607 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.doorbird/node_modules/@iobroker/adapter-core/build/index.js',
host.Rpi4 2023-08-07 13:55:23.607 error Caught by controller[0]: requireStack: [
host.Rpi4 2023-08-07 13:55:23.607 error Caught by controller[0]: code: 'MODULE_NOT_FOUND',
host.Rpi4 2023-08-07 13:55:23.607 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19) {
host.Rpi4 2023-08-07 13:55:23.607 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:960:12)
host.Rpi4 2023-08-07 13:55:23.607 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1119:32)
host.Rpi4 2023-08-07 13:55:23.606 error Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
host.Rpi4 2023-08-07 13:55:23.606 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1256:14)
host.Rpi4 2023-08-07 13:55:23.606 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.doorbird/node_modules/@iobroker/adapter-core/build/index.js:21:1)
host.Rpi4 2023-08-07 13:55:23.606 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:110:18)
host.Rpi4 2023-08-07 13:55:23.606 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19)
host.Rpi4 2023-08-07 13:55:23.606 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:922:27)
host.Rpi4 2023-08-07 13:55:23.606 error Caught by controller[0]: at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
host.Rpi4 2023-08-07 13:55:23.605 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.doorbird/main.js
host.Rpi4 2023-08-07 13:55:23.605 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.doorbird/node_modules/@iobroker/adapter-core/build/index.js
host.Rpi4 2023-08-07 13:55:23.605 error Caught by controller[0]: Require stack:
host.Rpi4 2023-08-07 13:55:23.605 error Caught by controller[0]: Error: Cannot find module '@iobroker/types'
host.Rpi4 2023-08-07 13:55:23.605 error Caught by controller[0]: ^
host.Rpi4 2023-08-07 13:55:23.605 error Caught by controller[0]: throw err;
host.Rpi4 2023-08-07 13:55:23.604 error Caught by controller[0]: node:internal/modules/cjs/loader:1080

Vielen Dank schon einmal.
VG
Volker

@data2000 data2000 changed the title Adapter startet nicht nach Update auf Adapter startet nicht nach Update auf V1.1.1 Aug 7, 2023
@Schmakus
Copy link
Collaborator

Schmakus commented Aug 7, 2023

Deine npm version passt nicht zur node version!
node v18.x ist npm 9.x! (Bei dir noch npm 6.x)!!!

Fazit: Aktualisiere bitte deine Versionen von NPM und Node.js.
https://forum.iobroker.net/topic/64032/update-nodejs-best-practise-supported-16-und-18

@data2000
Copy link
Author

data2000 commented Aug 7, 2023

Vielen Dank. Da passten noch Links unter /usr/bin und /usr/local/bin nicht. Ich habe node noch einmal komplett neu installiert.
NPM und NPX sind nun V9.6.1

Doorbird startet aber leider noch immer nicht.

Allerdings nehme ich an, dass das nichts mit dem Adapter direkt zu tun hat, da ich das selbe Fehlerbild auch beim web Adapter habe.
An dieser Stelle würde ich das Issue daher wieder schließen. Für Tipps wäre ich aber dennoch dankbar.

host.Rpi4 2023-08-07 15:09:26.134 error instance system.adapter.doorbird.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
host.Rpi4 2023-08-07 15:09:26.134 error Caught by controller[0]: Node.js v18.17.0
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: }
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: ]
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.doorbird/main.js'
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.doorbird/node_modules/@iobroker/adapter-core/build/index.js',
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: requireStack: [
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: code: 'MODULE_NOT_FOUND',
host.Rpi4 2023-08-07 15:09:26.133 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19) {
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:960:12)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1119:32)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1256:14)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.doorbird/node_modules/@iobroker/adapter-core/build/index.js:21:1)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:110:18)
host.Rpi4 2023-08-07 15:09:26.132 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19)
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:922:27)
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.doorbird/main.js
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.doorbird/node_modules/@iobroker/adapter-core/build/index.js
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: Require stack:
host.Rpi4 2023-08-07 15:09:26.131 error Caught by controller[0]: Error: Cannot find module '@iobroker/types'
host.Rpi4 2023-08-07 15:09:26.130 error Caught by controller[0]: ^
host.Rpi4 2023-08-07 15:09:26.130 error Caught by controller[0]: throw err;
host.Rpi4 2023-08-07 15:09:26.130 error Caught by controller[0]: node:internal/modules/cjs/loader:1080

@Schmakus
Copy link
Collaborator

Schmakus commented Aug 7, 2023

Welche js-controller Version hast du?
Evtl. liegt es an der adapter core Version.
Bitte mal den Adapter downgraden

@data2000
Copy link
Author

data2000 commented Aug 7, 2023

Herzlichen Dank Schmakus.
Ich habe eine Lösung gefunden, indem ich im Adapterverzeichnis

cd /opt/iobroker/node_modules/iobroker.doorbird/
sudo npm install --production

ausführte.
Dabei zeigte er mir auch an, dass eine neue Node Version verfügbar wäre (v9.8.1), welche ich auch gleich installierte.
Also so...

sudo npm install -g npm@9.8.1
sudo npm install --production

Das klappte auch beim Web Adapter.

Jetzt läuft alles wieder.
Nun kann dieser Issue auf jeden Fall geschlossen werden.
Vielen Dank für Deine Hilfe.

@Schmakus
Copy link
Collaborator

Schmakus commented Aug 7, 2023

Also. Das Problem wird NPM 6 zum Zeitpunkt der Updates gewesen sein.
Da nun npm 9 drauf hast, musst die Adapter ganz löschen und neu installieren.

@Schmakus Schmakus closed this as completed Aug 7, 2023
@Schmakus Schmakus added the dependencies Pull requests that update a dependency file label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants