Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. iobroker löscht beim Stoppen node-modules?

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    iobroker löscht beim Stoppen node-modules?

    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Pi4
      Arbeitsspeicher: 4GB
      Festplattenart: HDD
      Betriebssystem: Raspbian
      Node-Version: 12.22.2
      Nodejs-Version: 12.22.2
      NPM-Version: 6.14.13
      Installationsart: Skript
      Image genutzt: Nein

      Hallo liebe Community,
      als stiller Mitleser hat sich bei mir nun doch nach einem Neuaufsetzen meines Systems ein Fehler eingestellt, bei dem ich selbst nicht weiter komme.
      Der Adapter fullybrowser ließ sich wunderbar installieren und konfigurieren. Nach einem Aufruf von

      iobroker stop
      

      und anschließendem

      iobroker start
      

      kann der Adapter aber nicht mehr gestartet werden, weil ihm ein Module fehlt:

      2021-07-22 16:43:23.006 - error: host.ioBroker-RasPi Caught by controller[0]: internal/modules/cjs/loader.js:818
      2021-07-22 16:43:23.007 - error: host.ioBroker-RasPi Caught by controller[0]: throw err;
      2021-07-22 16:43:23.007 - error: host.ioBroker-RasPi Caught by controller[0]: ^
      2021-07-22 16:43:23.008 - error: host.ioBroker-RasPi Caught by controller[0]: Error: Cannot find module './adapters/http'
      2021-07-22 16:43:23.008 - error: host.ioBroker-RasPi Caught by controller[0]: Require stack:
      2021-07-22 16:43:23.008 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/axios/lib/defaults.js
      2021-07-22 16:43:23.009 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/axios/lib/core/dispatchRequest.js
      2021-07-22 16:43:23.009 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/axios/lib/core/Axios.js
      2021-07-22 16:43:23.009 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/axios/lib/axios.js
      2021-07-22 16:43:23.010 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/axios/index.js
      2021-07-22 16:43:23.010 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.fullybrowser/main.js
      2021-07-22 16:43:23.010 - error: host.ioBroker-RasPi Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
      2021-07-22 16:43:23.010 - error: host.ioBroker-RasPi Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:667:27)
      2021-07-22 16:43:23.011 - error: host.ioBroker-RasPi Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
      2021-07-22 16:43:23.011 - error: host.ioBroker-RasPi Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
      2021-07-22 16:43:23.011 - error: host.ioBroker-RasPi Caught by controller[0]: at getDefaultAdapter (/opt/iobroker/node_modules/axios/lib/defaults.js:23:15)
      2021-07-22 16:43:23.011 - error: host.ioBroker-RasPi Caught by controller[0]: at Object. (/opt/iobroker/node_modules/axios/lib/defaults.js:29:12)
      2021-07-22 16:43:23.012 - error: host.ioBroker-RasPi Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
      2021-07-22 16:43:23.012 - error: host.ioBroker-RasPi Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
      2021-07-22 16:43:23.012 - error: host.ioBroker-RasPi Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
      2021-07-22 16:43:23.013 - error: host.ioBroker-RasPi Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14) {
      2021-07-22 16:43:23.013 - error: host.ioBroker-RasPi Caught by controller[0]: code: 'MODULE_NOT_FOUND',
      2021-07-22 16:43:23.013 - error: host.ioBroker-RasPi Caught by controller[0]: requireStack: [
      2021-07-22 16:43:23.014 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/axios/lib/defaults.js',
      2021-07-22 16:43:23.014 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/axios/lib/core/dispatchRequest.js',
      2021-07-22 16:43:23.014 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/axios/lib/core/Axios.js',
      2021-07-22 16:43:23.014 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/axios/lib/axios.js',
      2021-07-22 16:43:23.015 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/axios/index.js',
      2021-07-22 16:43:23.015 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.fullybrowser/main.js'
      2021-07-22 16:43:23.015 - error: host.ioBroker-RasPi Caught by controller[0]: ]
      2021-07-22 16:43:23.015 - error: host.ioBroker-RasPi Caught by controller[0]: }
      

      Schaut man sich nach dem Stoppen von iobroker in der Console den Pfad des Adapters an, fällt auf, dass hier einiges fehlt:

      pi@ioBroker-RasPi:/opt/iobroker/node_modules/iobroker.fullybrowser $ ls -l
      insgesamt 172
      drwxr-xr-x+ 2 iobroker iobroker   4096 Jul 22 16:44 admin
      -rw-rw-r--+ 1 iobroker iobroker      1 Jul 22 16:45 iob_npm.done
      -rw-r--r--+ 1 iobroker iobroker   4762 Okt 26  1985 io-package.json
      -rw-r--r--+ 1 iobroker iobroker   1125 Okt 26  1985 LICENSE
      -rw-r--r--+ 1 iobroker iobroker  13692 Okt 26  1985 main.js
      -rw-r--r--+ 1 iobroker iobroker   1956 Jul 22 16:44 package.json
      -rw-rw-r--+ 1 iobroker iobroker 129404 Jul 22 16:45 package-lock.json
      -rw-r--r--+ 1 iobroker iobroker   2909 Okt 26  1985 README.md
      

      Bei anderen Adaptern sieht das Verzeichnis so aus:

      pi@ioBroker-RasPi:/opt/iobroker/node_modules/iobroker.daswetter $ ls -l
      insgesamt 420
      drwxrwxr-x+ 3 iobroker iobroker   4096 Jul 21 17:26 admin
      -rw-rwxr--+ 1 iobroker iobroker  40690 Okt 26  1985 daswetter.njsproj
      drwxrwxr-x+ 2 iobroker iobroker   4096 Jul 21 17:26 docs
      -rw-rwxr--+ 1 iobroker iobroker      1 Jul 21 17:26 iob_npm.done
      -rw-rwxr--+ 1 iobroker iobroker   6133 Jul 21 17:26 io-package.json
      drwxrwxr-x+ 2 iobroker iobroker   4096 Jul 21 17:26 lib
      -rw-rwxr--+ 1 iobroker iobroker   1084 Okt 26  1985 LICENSE
      -rw-rwxr--+ 1 iobroker iobroker   1026 Okt 26  1985 log.txt
      -rw-rwxr--+ 1 iobroker iobroker  91541 Okt 26  1985 main.js
      -rw-rwxr--+ 1 iobroker iobroker 163747 Okt 26  1985 main_neu.js
      drwxrwxr-x+ 5 iobroker iobroker   4096 Jul 21 17:26 node_modules
      -rw-rwxr--+ 1 iobroker iobroker   2532 Jul 21 17:26 package.json
      -rw-rwxr--+ 1 iobroker iobroker   7553 Okt 26  1985 README.md
      -rw-rwxr--+ 1 iobroker iobroker  20981 Okt 26  1985 readme.txt
      -rw-rwxr--+ 1 iobroker iobroker      0 Okt 26  1985 test2.js
      -rw-rwxr--+ 1 iobroker iobroker  47074 Okt 26  1985 test.js
      -rw-rwxr--+ 1 iobroker iobroker      6 Okt 26  1985 todo.txt
      drwxrwxr-x+ 3 iobroker iobroker   4096 Jul 21 17:26 typings
      

      Kurioserweise lässt sich das Ganze beheben, indem der komplette Adapter samt Instanz über die Adminseite im Browser gelöscht und anschließend in der Konsole (und nicht über die Adminseite!) mit

      pi@ioBroker-RasPi:/opt/iobroker $ npm install iobroker.fullybrowser@2.0.8 --production
      + iobroker.fullybrowser@2.0.8
      removed 7 packages and updated 1 package in 11.605s
      
      26 packages are looking for funding
        run `npm fund` for details
      

      installiert wird. Legt man nun eine Instanz an, kann man wieder seine Daten konfigurieren und bis zum nächsten Neustart läuft der Adapter.
      Jemand eine Idee und/oder Lösungsvorschläge?

      PS: Bevor jemand fragt

      pi@ioBroker-RasPi:/opt/iobroker $ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      v12.22.2
      v12.22.2
      6.14.13
      OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
      OK:2 http://archive.raspberrypi.org/debian buster InRelease
      OK:3 https://deb.nodesource.com/node_12.x buster InRelease
      Paketlisten werden gelesen... Fertig
      Abhängigkeitsbaum wird aufgebaut.
      Statusinformationen werden eingelesen.... Fertig
      Alle Pakete sind aktuell.
      OK:1 http://archive.raspberrypi.org/debian buster InRelease
      OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
      OK:3 https://deb.nodesource.com/node_12.x buster InRelease
      Paketlisten werden gelesen... Fertig
      Abhängigkeitsbaum wird aufgebaut.
      Statusinformationen werden eingelesen.... Fertig
      Alle Pakete sind aktuell.
      nodejs:
        Installiert:           12.22.2-1nodesource1
        Installationskandidat: 12.22.2-1nodesource1
        Versionstabelle:
       *** 12.22.2-1nodesource1 500
              500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
              100 /var/lib/dpkg/status
           10.24.0~dfsg-1~deb10u1 500
              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      529
      Online

      31.9k
      Users

      80.1k
      Topics

      1.3m
      Posts

      fullybrowser adapter nodemodules
      1
      1
      52
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo