Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. iobroker kaputt nach NodeJS 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

    iobroker kaputt nach NodeJS Update

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

      @thomas-braun said in iobroker kaputt nach NodeJS Update:

      ls -lA / | grep tmp

      pi@raspberrypi:~ $ ls -lA / | grep tmp
      drwxrwxrwt  19 root root  4096 Okt 10 22:17 tmp
      
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @michaelheiml last edited by

        @michaelheiml sagte in iobroker kaputt nach NodeJS Update:

        ls -lA /tmp/
        
        M 1 Reply Last reply Reply Quote 0
        • M
          michaelheiml @Thomas Braun last edited by

          @thomas-braun

          pi@raspberrypi:~ $ ls -lA /tmp/
          insgesamt 72
          drwx------ 2 pi   pi   4096 Okt 10 18:21 dhcpcd-pi
          drwxrwxrwt 2 root root 4096 Okt 10 18:20 .font-unix
          srw------- 1 pi   pi      0 Okt 10 22:03 geany_socket.c2929e62
          drwxrwxrwt 2 root root 4096 Okt 10 18:20 .ICE-unix
          drwxr-xr-x 2 plex plex 4096 Okt 10 18:21 pms-783b7fb9-1920-49f3-b817-a0f35a1c9c16
          drwx------ 2 root root 4096 Okt 10 18:20 pulse-PKdhtXMmr18n
          drwx------ 2 pi   pi   4096 Okt 10 18:21 ssh-KmHKgJxQRO9T
          drwx------ 2 pi   pi   4096 Okt 10 18:21 ssh-q5LDIGBGNjQc
          drwx------ 3 root root 4096 Okt 10 18:20 systemd-private-d0c16273df82407fb538677a9af079b6-colord.service-GtnKyq
          drwx------ 3 root root 4096 Okt 10 18:21 systemd-private-d0c16273df82407fb538677a9af079b6-rtkit-daemon.service-5ugbb2
          drwx------ 3 root root 4096 Okt 10 18:20 systemd-private-d0c16273df82407fb538677a9af079b6-systemd-timesyncd.service-u0sQmX
          drwxrwxrwt 2 root root 4096 Okt 10 18:20 .Test-unix
          drwx------ 3 root root 4096 Okt 10 21:17 .vnc-0
          drwx------ 3 pi   pi   4096 Okt 10 18:21 .vnc-1000
          drwxrwxrwt 2 root root 4096 Okt 10 18:20 .vncserver-license
          drwx------ 2 root root 4096 Okt 10 18:20 .vnc-vncservice
          -r--r--r-- 1 root root   11 Okt 10 18:20 .X0-lock
          drwxrwxrwt 2 root root 4096 Okt 10 18:20 .X11-unix
          drwxrwxrwt 2 root root 4096 Okt 10 18:20 .XIM-unix
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @michaelheiml last edited by

            @michaelheiml

            Keine Ahnung. Sind mir auch zu viele Dateien mit X drin.

            M 1 Reply Last reply Reply Quote 0
            • M
              michaelheiml @Thomas Braun last edited by

              @thomas-braun

              Was müsste ich denn löschen, um die aktuelle Installation los zu werden? /opt/iobroker /* ?

              Und wenn ich iobroker_data gesichert habe und zurückspiele nach einer Neuinstallation, würde ich dann meine vorherige Konfiguration wieder haben? Oder ist das zu kurz gegriffen?

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

                @michaelheiml

                Ich würde mal

                rm -rf /opt/iobroker/
                

                versuchen.

                Und wenn ich iobroker_data gesichert habe und zurückspiele nach einer Neuinstallation, würde ich dann meine vorherige Konfiguration wieder haben?

                Möglich. Besser ist aber ein Backup via Backitup.

                M 2 Replies Last reply Reply Quote 0
                • JLeg
                  JLeg last edited by

                  @michaelheiml
                  bevor du alles löschst, würde ich nochmal die „Rosskur“ versuchen - hat bei mir prima funktioniert:

                  cd /opt/iobroker
                  mv node_modules node_modules.old
                  mv package-lock.json package-lock.json.old
                  npm cache clean --force
                  npm install
                  npm list
                  
                  
                  M 1 Reply Last reply Reply Quote 0
                  • M
                    michaelheiml @Thomas Braun last edited by

                    @thomas-braun

                    An diesem Thread hast du mitgeschrieben:
                    https://forum.iobroker.net/topic/55683/kein-update-mehr-möglich-mit-node-js-16/303

                    Ich bin gerade per Google darauf gestoßen, weil mir

                    npm ls
                    

                    ausspuckt:

                    ├── iobroker.backitup@ invalid: "stable" from the root project
                    

                    Vielleicht ein Hinweis, wo es hakt?

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

                      @michaelheiml
                      Das bezieht sich auf die package.json

                      cat /opt/iobroker/package.json | jq
                      

                      Da steht allerdings gemeinhin nicht stable sondern eine Versionsnummer für die Module drin.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        michaelheiml @Thomas Braun last edited by

                        @thomas-braun

                        {
                        "name": "iobroker.inst",
                        "version": "3.0.0",
                        "private": true,
                        "description": "Automate your Life",
                        "engines": {
                        "node": ">=10.0.0"
                        },
                        "dependencies": {
                        "iobroker.js-controller": "stable",
                        "iobroker.admin": "stable",
                        "iobroker.discovery": "stable",
                        "iobroker.backitup": "stable"
                        }
                        }
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @michaelheiml last edited by

                          @michaelheiml

                          Das dürfte vom ersten setup noch drin sein. Der Installer schaut nach den als 'stable' getaggten Versionen, später wird das mit den Versionsnummern überschrieben.

                          iobroker repo list
                          

                          sagt noch was?

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            michaelheiml @JLeg last edited by

                            @jleg

                            Fertig:

                            pi@raspberrypi:/opt/iobroker $ mv node_modules node_modules.old
                            pi@raspberrypi:/opt/iobroker $ mv package-lock.json package-lock.json.old
                            pi@raspberrypi:/opt/iobroker $ npm cache clean --force
                            npm WARN using --force Recommended protections disabled.
                            pi@raspberrypi:/opt/iobroker $ npm install
                            npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                            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 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
                            
                            added 516 packages in 7m
                            
                            38 packages are looking for funding
                              run `npm fund` for details
                            pi@raspberrypi:/opt/iobroker $ npm list
                            iobroker.inst@3.0.0 /opt/iobroker
                            ├── iobroker.admin@6.2.22 invalid: "stable" from the root project
                            ├── iobroker.backitup@2.4.12 invalid: "stable" from the root project
                            ├── iobroker.discovery@3.0.3 invalid: "stable" from the root project
                            ├── iobroker.flot@1.11.0
                            └── iobroker.js-controller@4.0.23 invalid: "stable" from the root project
                            
                            npm ERR! code ELSPROBLEMS
                            npm ERR! invalid: iobroker.admin@6.2.22 /opt/iobroker/node_modules/iobroker.admin
                            npm ERR! invalid: iobroker.backitup@2.4.12 /opt/iobroker/node_modules/iobroker.backitup
                            npm ERR! invalid: iobroker.discovery@3.0.3 /opt/iobroker/node_modules/iobroker.discovery
                            npm ERR! invalid: iobroker.js-controller@4.0.23 /opt/iobroker/node_modules/iobroker.js-controller
                            
                            npm ERR! A complete log of this run can be found in:
                            npm ERR!     /home/iobroker/.npm/_logs/2022-10-10T20_50_38_406Z-debug-0.log
                            
                            mikeal created this issue in request/request

                            open Request’s Past, Present and Future #3142

                            1 Reply Last reply Reply Quote 0
                            • M
                              michaelheiml @Thomas Braun last edited by michaelheiml

                              @thomas-braun

                              pi@raspberrypi:/opt/iobroker $ iobroker repo list
                              stable        : http://download.iobroker.net/sources-dist.json
                              beta          : http://download.iobroker.net/sources-dist-latest.json
                              
                              Active repo(s): stable
                              
                              M Thomas Braun 2 Replies Last reply Reply Quote 0
                              • M
                                michaelheiml @michaelheiml last edited by

                                @michaelheiml

                                Hab wie im anderen Thread nach

                                npm install
                                

                                noch

                                npm prune
                                

                                ausgeführt, mit dem Ergebnis

                                npm ERR! code ENOTEMPTY
                                npm ERR! syscall rename
                                npm ERR! path /opt/iobroker/node_modules/iobroker.admin
                                npm ERR! dest /opt/iobroker/node_modules/.iobroker.admin-TtUA2igk
                                npm ERR! errno -39
                                npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.admin' -> '/opt/iobroker/node_modules/.iobroker.admin-TtUA2igk'
                                
                                npm ERR! A complete log of this run can be found in:
                                npm ERR!     /home/iobroker/.npm/_logs/2022-10-10T20_52_25_777Z-debug-0.log
                                
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @michaelheiml last edited by

                                  @michaelheiml

                                  Ergänz die Rosskur noch um die package.json

                                  cd /opt/iobroker
                                  mv node_modules node_modules.old
                                  mv package.json package.json.old
                                  mv package-lock.json package-lock.json.old
                                  npm cache clean --force
                                  npm install
                                  npm list
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    michaelheiml @Thomas Braun last edited by michaelheiml

                                    @thomas-braun

                                    rm -rf /opt/iobroker/
                                    

                                    Das BackItUp Backup sollte ich danach wieder einspielen können, wenn ich den BackItUp Adapter installiere?

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

                                      @michaelheiml

                                      
                                      for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done 
                                      
                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        michaelheiml @Thomas Braun last edited by michaelheiml

                                        @thomas-braun

                                        Ausgeführt, und jetzt? (Das ist der Befehl zum Löschen der versteckten Ordner, nicht?)

                                        pi@raspberrypi:/opt/iobroker $ npm list
                                        iobroker.inst@3.0.0 /opt/iobroker
                                        ├── bower@1.8.14 extraneous
                                        ├── iobroker.admin@6.2.22 invalid: "stable" from the root project
                                        ├── iobroker.backitup@2.4.12 invalid: "stable" from the root project
                                        ├── iobroker.discovery@3.0.3 invalid: "stable" from the root project
                                        ├── iobroker.flot@1.11.0
                                        ├── iobroker.habpanel@0.5.0 extraneous
                                        ├── iobroker.js-controller@4.0.23 invalid: "stable" from the root project
                                        ├── iobroker.upnp@1.0.19
                                        └── iobroker.vis@1.4.15
                                        
                                        npm ERR! code ELSPROBLEMS
                                        npm ERR! extraneous: bower@1.8.14 /opt/iobroker/node_modules/bower
                                        npm ERR! invalid: iobroker.admin@6.2.22 /opt/iobroker/node_modules/iobroker.admin
                                        npm ERR! invalid: iobroker.backitup@2.4.12 /opt/iobroker/node_modules/iobroker.backitup
                                        npm ERR! invalid: iobroker.discovery@3.0.3 /opt/iobroker/node_modules/iobroker.discovery
                                        npm ERR! extraneous: iobroker.habpanel@0.5.0 /opt/iobroker/node_modules/iobroker.habpanel
                                        npm ERR! invalid: iobroker.js-controller@4.0.23 /opt/iobroker/node_modules/iobroker.js-controller
                                        
                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR!     /home/iobroker/.npm/_logs/2022-10-10T20_57_41_547Z-debug-0.log
                                        
                                        Thomas Braun M 2 Replies Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @michaelheiml last edited by

                                          @michaelheiml

                                          Hast du die package.json umbenannt?

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            michaelheiml @michaelheiml last edited by

                                            @michaelheiml

                                            Oh, ich komme wieder auf die Webseite. Muss ich das verstehen?
                                            Ja, vis, upnp, flot und habpanel hatte ich installiert (dachte gerade, wenn die jetzt gelistet sind, wird iobroker versuchen, meine Module wiederherzustellen -> daher Zugriffsversuch auf die Seite)

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            825
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            75
                                            3722
                                            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