Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [Problem]Fehler nach Update. Nichts geht mehr

    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

    [Problem]Fehler nach Update. Nichts geht mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nevs84 @Thomas Braun last edited by

      @thomas-braun

      pi@iobroker:/opt/iobroker $ sudo apt install --reinstall nodejs
      Paketlisten werden gelesen... Fertig
      Abhängigkeitsbaum wird aufgebaut.
      Statusinformationen werden eingelesen.... Fertig
      0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
      Es müssen 24,1 MB an Archiven heruntergeladen werden.
      Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
      Holen:1 https://deb.nodesource.com/node_16.x buster/main armhf nodejs armhf 16.17.1-deb-1nodesource1 [24,1 MB]
      Es wurden 24,1 MB in 4 s geholt (6.762 kB/s).
      (Lese Datenbank ... 127192 Dateien und Verzeichnisse sind derzeit installiert.)
      Vorbereitung zum Entpacken von .../nodejs_16.17.1-deb-1nodesource1_armhf.deb ...
      Entpacken von nodejs (16.17.1-deb-1nodesource1) über (16.17.1-deb-1nodesource1) ...
      nodejs (16.17.1-deb-1nodesource1) wird eingerichtet ...
      Trigger für man-db (2.8.5-2) werden verarbeitet ...
      pi@iobroker:/opt/iobroker $
      
      
      1 Reply Last reply Reply Quote 0
      • N
        nevs84 @Thomas Braun last edited by

        @thomas-braun done

        pi@iobroker:~ $ iobroker status
        node:internal/modules/cjs/loader:959
          throw err;
          ^
        
        Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iob                               roker.js'
            at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15                               )
            at Function.Module._load (node:internal/modules/cjs/loader:804:27)
            at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_ma                               in:81:12)
            at node:internal/main/run_main_module:17:47 {
          code: 'MODULE_NOT_FOUND',
          requireStack: []
        }
        pi@iobroker:~ $
        
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @nevs84 last edited by

          @nevs84

          cd /opt/iobroker
          sudo -H -u iobroker npm install iobroker.js-controller
          
          N 1 Reply Last reply Reply Quote 0
          • N
            nevs84 @Thomas Braun last edited by

            @thomas-braun said in [Problem]Fehler nach Update. Nichts geht mehr:

            sudo -H -u iobroker npm install iobroker.js-controller

            pi@iobroker:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
            npm WARN deprecated dgram@1.0.1: npm is holding this package for security reasons. As it's a core Node module, we will not transfer it over to other users. You may safely remove the package from your dependencies.
            npm WARN deprecated har-validator@5.1.5: this library is no longer supported
            npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
            npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
            npm ERR! code 24
            npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
            npm ERR! command failed
            npm ERR! command sh /tmp/install-51355609.sh
            npm ERR! Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"!
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /home/iobroker/.npm/_logs/2022-10-04T13_00_00_679Z-debug-0.log
            pi@iobroker:/opt/iobroker $
            
            
            mikeal created this issue in request/request

            open Request’s Past, Present and Future #3142

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

              @nevs84

              Zumindest die npm-Meldungen sind weg...

              sudo install lsof
              lsof /opt/iobroker/iobroker-data/objects.jsonl
              
              N Thomas Braun 2 Replies Last reply Reply Quote 0
              • N
                nevs84 @Thomas Braun last edited by

                @thomas-braun said in [Problem]Fehler nach Update. Nichts geht mehr:

                sudo install lsof

                pi@iobroker:/opt/iobroker $ sudo install lsof
                install: Fehlender Zieldatei‐Operand hinter 'lsof'
                „install --help“ liefert weitere Informationen.
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Thomas Braun last edited by

                  sudo apt install lsof
                  sudo lsof /opt/iobroker/iobroker-data/objects.jsonl
                  
                  N 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @nevs84 last edited by

                    @nevs84

                    Übrigens ist hier erklärt, warum es zur ursprünglichen Meldung kommt:

                    https://help.heroku.com/ZV7S7D6T/why-is-my-node-build-is-suddenly-displaying-npm-err-cb-apply-is-not-a-function

                    Und genau aus diesem Grund raten wir immer davon ab npm separat in die Hand zu nehmen.

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      nevs84 @Thomas Braun last edited by

                      @thomas-braun said in [Problem]Fehler nach Update. Nichts geht mehr:

                      sudo lsof /opt/iobroker/iobroker-data/objects.jsonl

                      pi@iobroker:/opt/iobroker $ sudo apt install lsof
                      Paketlisten werden gelesen... Fertig
                      Abhängigkeitsbaum wird aufgebaut.
                      Statusinformationen werden eingelesen.... Fertig
                      Die folgenden NEUEN Pakete werden installiert:
                        lsof
                      0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                      Es müssen 307 kB an Archiven heruntergeladen werden.
                      Nach dieser Operation werden 447 kB Plattenplatz zusätzlich benutzt.
                      Holen:1 http://ftp.gwdg.de/pub/linux/debian/raspbian/raspbian buster/main armhf lsof armhf 4.91+dfsg-1 [307 kB]
                      Es wurden 307 kB in 1 s geholt (455 kB/s).
                      Vormals nicht ausgewähltes Paket lsof wird gewählt.
                      (Lese Datenbank ... 127192 Dateien und Verzeichnisse sind derzeit installiert.)
                      Vorbereitung zum Entpacken von .../lsof_4.91+dfsg-1_armhf.deb ...
                      Entpacken von lsof (4.91+dfsg-1) ...
                      lsof (4.91+dfsg-1) wird eingerichtet ...
                      Trigger für man-db (2.8.5-2) werden verarbeitet ...
                      pi@iobroker:/opt/iobroker $ sudo lsof /opt/iobroker/iobroker-data/objects.jsonl
                      pi@iobroker:/opt/iobroker $
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @nevs84 last edited by

                        @nevs84 sagte in [Problem]Fehler nach Update. Nichts geht mehr:

                        ls -l /opt/iobroker/iobroker-data/objects.jsonl
                        
                        N 1 Reply Last reply Reply Quote 0
                        • N
                          nevs84 @Thomas Braun last edited by

                          @thomas-braun Danke! This is a conflict between npm <= 5 and newer versions of Node 12 and 14. The solution is to upgrade npm to >= 6, which is installed with Node 12 and Node 14 by default.! Verstanden

                          1 Reply Last reply Reply Quote 0
                          • N
                            nevs84 @Thomas Braun last edited by

                            @thomas-braun said in [Problem]Fehler nach Update. Nichts geht mehr:

                            ls -l /opt/iobroker/iobroker-data/objects.jsonl

                            pi@iobroker:/opt/iobroker $ ls -l /opt/iobroker/iobroker-data/objects.jsonl
                            -rwxrwxrwx+ 1 iobroker iobroker 583059237 Okt  4 06:59 /opt/iobroker/iobroker-data/objects.jsonl
                            
                            
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @nevs84 last edited by Thomas Braun

                              @nevs84

                              Irgendwo muss man das timeout hochsetzen.
                              Ich weiß gerade aber nicht wo.
                              Das sind ja 583MByte da bei dir...
                              Das ist natürlich für einen RPi3 mit seinen 1GB Ram nicht zu schlucken.

                              N 1 Reply Last reply Reply Quote 0
                              • N
                                nevs84 last edited by

                                @thomas-braun Ich suche und lese gerade...werde aber gerade noch nicht so richtig schlau draus!

                                1 Reply Last reply Reply Quote 0
                                • N
                                  nevs84 @Thomas Braun last edited by

                                  @thomas-braun

                                  free -m -t
                                                total        used        free      shared  buff/cache   available
                                  Mem:            923         128         510          16         284         727
                                  Swap:            99          52          47
                                  Total:         1023         180         558
                                  
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @nevs84 last edited by

                                    @nevs84

                                    Ja. Und? 583MByte sind trotzdem ein zu großer Happen. Das bekommt der kleine PI nicht schnell genug verputzt.

                                    1 Reply Last reply Reply Quote 0
                                    • N
                                      nevs84 last edited by

                                      @thomas-braun Vielen Dank für deine Mühen und deine Zeit bis hierhin. Ich habe jetzt gerade noch eine Stunde bzgl. des TimeOuts gelesen aber komme hier an diesem Punkt nicht weiter. Ich habe versucht den ioBroker (wie oben auch schon von @Homoran erwähnt) neu zu installieren, was ebenfalls fehl schlägt. Hat jemand noch eine Idee bzgl. des Timeouts? Oder eine anderen schlauen Tipp bzgl. der Neuinstallation? Möchte gerne das Formatieren vermeiden! Grüße

                                      ==========================================================================
                                          Installing ioBroker (3/4)
                                      ==========================================================================
                                      
                                      npm ERR! code 24
                                      npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
                                      npm ERR! command failed
                                      npm ERR! command sh /tmp/install-8412f0be.sh
                                      npm ERR! Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"!
                                      
                                      npm ERR! A complete log of this run can be found in:
                                      npm ERR!     /home/pi/.npm/_logs/2022-10-05T19_24_32_093Z-debug-0.log
                                      
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active last edited by

                                        @nevs84

                                        Frag mal @Glasfaser , der hat den Befehl glaube ich parat.

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

                                          @nevs84 sagte in [Problem]Fehler nach Update. Nichts geht mehr:

                                          Cannot start inMem-objects on port 9001

                                          https://forum.iobroker.net/topic/53378/server-cannot-start-inmem-objects-on-port-9001/173

                                          N 1 Reply Last reply Reply Quote 0
                                          • N
                                            nevs84 @Thomas Braun last edited by nevs84

                                            @thomas-braun Hab den Thread durchgelesen und den Timeout wie beschrieben hochgesetzt...keine Änderung. Der Fehler bleibt leider immer derselbe....wie kann ich nun am besten mein Backup einspielen (Was ja aktuell auch nicht geht aufgrund des nicht laufenden IOBrokers)? Bin dankbar für jeden Input.

                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            786
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            cb.apply is not a function
                                            4
                                            68
                                            3174
                                            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