Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Probleme nach Javascript & js-controller update

    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

    Probleme nach Javascript & js-controller update

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SCHNittER last edited by SCHNittER

      Hallo,

      seit dem Javascript und js-controller Update laufen nicht mehr alle Adapter korrekt und ich kann auch keine neuen Adapter mehr installieren. Im LOG tauchen folgende Meldungen auf:

      instance system.adapter.cloud.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      Caught by controller[0]: }
      Caught by controller[0]: ]
      Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.cloud/main.js'
      Caught by controller[0]: '/opt/iobroker/node_modules/request/index.js',
      Caught by controller[0]: '/opt/iobroker/node_modules/request/request.js',
      Caught by controller[0]: requireStack: [
      Caught by controller[0]: code: 'MODULE_NOT_FOUND',
      Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19) {
      Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
      Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
      Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
      Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
      Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/request/request.js:17:16)
      Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
      Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
      Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:667:27)
      Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
      Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.cloud/main.js
      Caught by controller[0]: - /opt/iobroker/node_modules/request/index.js
      Caught by controller[0]: - /opt/iobroker/node_modules/request/request.js
      Caught by controller[0]: Require stack: 
      Caught by controller[0]: Error: Cannot find module 'isstream'
      Caught by controller[0]: ^
      Caught by controller[0]: throw err;
      Caught by controller[0]: internal/modules/cjs/loader.js:818
      

      Ich bin noch relativ neu und versuche mich gerade noch zurecht zu finden. Kann mir jemand sagen wie ich das Problem lösen kann?

      Danke
      Gruss Jens

      Thomas Braun 2 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @SCHNittER last edited by

        @schnitter Zunächst bitte den Konsolenoutput in CodeTage setzen, das man das auch lesen kann. Danke.

        1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @SCHNittER last edited by

          @schnitter

          cd /opt/iobroker
          npm list isstream
          
          S 1 Reply Last reply Reply Quote 0
          • S
            SCHNittER @Thomas Braun last edited by

            @thomas-braun

            iobroker.inst@2.0.3 /opt/iobroker
            ├─┬ iobroker.admin@5.1.23
            │ └─┬ request@2.88.2
            │   └── UNMET DEPENDENCY isstream@0.1.2
            ├─┬ iobroker.backitup@2.1.13
            │ └─┬ dropbox-v2-api@2.4.45
            │   └─┬ request@2.88.0
            │     └── UNMET DEPENDENCY isstream@0.1.2
            ├─┬ iobroker.js-controller@3.3.15
            │ └─┬ prompt@1.1.0
            │   └─┬ winston@2.4.5
            │     └── UNMET DEPENDENCY isstream@0.1.2
            └─┬ iobroker.vis-icontwo@0.77.0
              └─┬ npm@7.20.6
                └─┬ node-gyp@7.1.2
                  └─┬ request@2.88.2
                    └── isstream@0.1.2
            
            npm ERR! missing: isstream@0.1.2, required by request@2.88.2
            npm ERR! missing: isstream@0.1.2, required by request@2.88.0
            npm ERR! missing: isstream@0.1.2, required by winston@2.4.5
            
            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active last edited by

              @schnitter Vermutlich ist nodeJS falsch installiert.
              Jedenfalls ist npm@7 gerade für Anfänger die falsche Wahl. Schau in meiner Signatur wie man das ggf. wieder gerade zieht

              S 1 Reply Last reply Reply Quote 0
              • S
                SCHNittER @Thomas Braun last edited by SCHNittER

                @thomas-braun

                S 1 Reply Last reply Reply Quote 0
                • S
                  SCHNittER @SCHNittER last edited by SCHNittER

                  laut InfoScreen: NPM: 6.14.14

                  which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                  /usr/bin/nodejs
                  v12.22.5
                  /usr/bin/node
                  v12.22.5
                  /usr/bin/npm
                  6.14.14
                  nodejs:
                    Installiert:           12.22.5-1nodesource1
                    Installationskandidat: 12.22.5-1nodesource1
                    Versionstabelle:
                   *** 12.22.5-1nodesource1 100
                          100 /var/lib/dpkg/status
                  pi@raspberrypi:/ $
                  
                  
                  Thomas Braun 2 Replies Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @SCHNittER last edited by Thomas Braun

                    @schnitter

                    Dir fehlt das Repository für nodesource.

                    curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                    sudo apt update
                    sudo apt upgrade
                    

                    Das hat aber mit deinem Problem nichts zu tun.

                    1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @SCHNittER last edited by Thomas Braun

                      @schnitter

                      iobroker stop 
                      iobroker update
                      cd /opt/iobroker
                      sudo -H -u iobroker npm install iobroker.js-controller
                      iobroker start
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S
                        SCHNittER @Thomas Braun last edited by

                        @thomas-braun vielen Dank, jetzt scheint alles wieder zu funktionieren.
                        Kann ich das abschließend auf Konsolenebene noch einmal testen, da er mE Fehlermeldungen brachte?

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @SCHNittER last edited by

                          @schnitter

                          Da mal reinschauen, ob alles sauber ist:

                          which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                          iobroker update
                          iobroker status
                          iobroker list instances
                          
                          S 1 Reply Last reply Reply Quote 0
                          • S
                            SCHNittER @Thomas Braun last edited by

                            @thomas-braun sieht alles soweit gut aus, nur das Repository kann er nicht hinzufügen

                            E: Listenverzeichnis /var/lib/apt/lists/partial fehlt. - Acquire (117: Die Struktur muss bereinigt werden)
                            Error executing command, exiting
                            
                            
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @SCHNittER last edited by

                              @schnitter

                              sudo apt update
                              
                              S 1 Reply Last reply Reply Quote 0
                              • S
                                SCHNittER @Thomas Braun last edited by

                                @thomas-braun

                                sudo apt update
                                Paketlisten werden gelesen... Fertig
                                E: Listenverzeichnis /var/lib/apt/lists/partial fehlt. - Acquire (117: Die Struktur muss bereinigt werden)
                                pi@raspberrypi:/opt/iobroker $ sudo apt upgrade
                                Paketlisten werden gelesen... Fertig
                                Abhängigkeitsbaum wird aufgebaut.
                                Statusinformationen werden eingelesen.... Fertig
                                Paketaktualisierung (Upgrade) wird berechnet... Fertig
                                0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                                
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @SCHNittER last edited by Thomas Braun

                                  @schnitter sagte in Probleme nach Javascript & js-controller update:

                                  E: Listenverzeichnis /var/lib/apt/lists/partial fehlt. - Acquire (117: Die Struktur muss bereinigt werden)

                                  sudo mkdir -p /var/lib/apt/lists/partial
                                  sudo apt update 
                                  
                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    SCHNittER @Thomas Braun last edited by

                                    @thomas-braun er kann das Verzeichnis nicht anlegen, weil die Struktur bereinigt werden muss?

                                    sudo mkdir -p /var/lib/apt/lists/partial
                                    mkdir: das Verzeichnis „/var/lib/apt/lists/partial“ kann nicht angelegt werden: Die Struktur muss bereinigt werden
                                    
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @SCHNittER last edited by

                                      @schnitter

                                      Was liegt denn drin?

                                      ls -la /var/lib/apt/lists/
                                      
                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        SCHNittER @Thomas Braun last edited by

                                        @thomas-braun said in Probleme nach Javascript & js-controller update:

                                        ls -la /var/lib/apt/lists/

                                        nix, "insgesamt: 0"

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @SCHNittER last edited by Thomas Braun

                                          @schnitter

                                          Bitte genaue Rückmeldungen aus der Konsole.
                                          Inkl. login prompt.
                                          Ungefähr so:

                                          echad@chet:/opt/iobroker $ ls -la /var/lib/apt/lists/
                                          insgesamt 68380
                                          drwxr-xr-x 4 root root     4096 24. Aug 13:17 .
                                          drwxr-xr-x 5 root root     4096 23. Aug 02:28 ..
                                          -rw-r--r-- 1 root root    23502 24. Aug 12:46 archive.raspberrypi.org_debian_dists_bullseye_InRelease
                                          -rw-r--r-- 1 root root   411309 24. Aug 12:45 archive.raspberrypi.org_debian_dists_bullseye_main_binary-armhf_Packages
                                          drwxr-xr-x 2 _apt root     4096  4. Mär 23:47 auxfiles
                                          -rw-r--r-- 1 root root     4586 11. Aug 20:17 deb.nodesource.com_node%5f12.x_dists_bullseye_InRelease
                                          -rw-r--r-- 1 root root     1229 11. Aug 20:17 deb.nodesource.com_node%5f12.x_dists_bullseye_main_binary-armhf_Packages
                                          -rw-r--r-- 1 root root     4586 11. Aug 20:12 deb.nodesource.com_node%5f14.x_dists_bullseye_InRelease
                                          -rw-r--r-- 1 root root     1230 11. Aug 20:12 deb.nodesource.com_node%5f14.x_dists_bullseye_main_binary-armhf_Packages
                                          -rw-r--r-- 1 root root     4586 19. Aug 14:16 deb.nodesource.com_node%5f16.x_dists_bullseye_InRelease
                                          -rw-r--r-- 1 root root     1228 19. Aug 14:16 deb.nodesource.com_node%5f16.x_dists_bullseye_main_binary-armhf_Packages
                                          -rw-r----- 1 root root        0  5. Mär 00:11 lock
                                          -rw-r--r-- 1 root root    12110 19. Aug 21:20 packages.grafana.com_oss_deb_dists_stable_InRelease
                                          -rw-r--r-- 1 root root   112092 19. Aug 21:20 packages.grafana.com_oss_deb_dists_stable_main_binary-armhf_Packages
                                          drwx------ 2 _apt root     4096 24. Aug 14:43 partial
                                          

                                          Versuch mal ein

                                          sudo apt-get clean
                                          
                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            SCHNittER @Thomas Braun last edited by

                                            @thomas-braun

                                            pi@raspberrypi:/opt/iobroker $ sudo apt-get clean
                                            E: Listenverzeichnis /var/lib/apt/lists/partial fehlt. - Acquire (117: Die Struktur muss bereinigt werden)
                                            pi@raspberrypi:/opt/iobroker $ ls -la /var/lib/apt/lists/
                                            insgesamt 0
                                            
                                            
                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            952
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            2
                                            23
                                            1074
                                            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