Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Node Red startet nicht nach Raspberry OS 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

    Node Red startet nicht nach Raspberry OS update

    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      etzeste13 @mickym last edited by etzeste13

      @mickym vielen Dank für das Angebot... ich fürchte fast, dass das aktuell nicht mehr helfen wird... in der zwischenzeit startet der iobroker am slave auch nicht mehr durch....
      wahrscheinlich wird es am besten sein, wenn ich den slave komplett neu aufbaue... die wichtigen states und daten hoffe ich sind noch am Master verfügbar.
      den mir wichtigen flow habe ich auch in form der flows.json.... reicht das zum wiederherstellen?

      mickym 1 Reply Last reply Reply Quote 0
      • mickym
        mickym Most Active @etzeste13 last edited by mickym

        @etzeste13 NA gut - dann machen wir das Zusammen - bevor Du neu aufbaust. 😉 Wenn eh nichts mehr geht, kann ich ja nichts kaputt machen. 😉

        E 1 Reply Last reply Reply Quote 0
        • E
          etzeste13 @mickym last edited by

          @mickym OK, wie fangen wir an

          mickym 1 Reply Last reply Reply Quote 0
          • mickym
            mickym Most Active @etzeste13 last edited by

            @etzeste13 Dein iob ist aus?

            iob stop
            

            und dann nochmal die beiden berühmten Zeilen ausführen.

            sudo ln -s /usr/bin/node /usr/bin/nodejs
            uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
            
            
            E 1 Reply Last reply Reply Quote 0
            • E
              etzeste13 @mickym last edited by

              @mickym said in Node Red startet nicht nach Raspberry OS update:

              sudo ln -s /usr/bin/node /usr/bin/nodejs

              pi@RasPi3B3:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs
              
              uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
              ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
              armv7l
              /usr/bin/nodejs
              /usr/bin/node
              /usr/bin/npm
              v16.17.0
              v16.17.0
              8.15.0
              pi
              /home/pi
              OK:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
              OK:2 http://archive.raspberrypi.org/debian bullseye InRelease               
              OK:3 https://deb.nodesource.com/node_16.x bullseye InRelease                
              Paketlisten werden gelesen… Fertig                  
              Abhängigkeitsbaum wird aufgebaut… Fertig
              Statusinformationen werden eingelesen… Fertig
              Alle Pakete sind aktuell.
              nodejs:
                Installiert:           16.17.0-deb-1nodesource1
                Installationskandidat: 16.17.0-deb-1nodesource1
                Versionstabelle:
               *** 16.17.0-deb-1nodesource1 500
                      500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                      100 /var/lib/dpkg/status
                   12.22.12~dfsg-1~deb11u1 500
                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
              pi@RasPi3B3:~ $ 
              
              
              mickym 1 Reply Last reply Reply Quote 0
              • mickym
                mickym Most Active @etzeste13 last edited by

                @etzeste13 Na das schau doch gut aus.

                Nun wechselst Du in das Verzeichnis /opt/iobroker

                cd /opt/iobroker
                

                dann zeig mal den Inhalt:

                ls -la
                
                E 1 Reply Last reply Reply Quote 0
                • E
                  etzeste13 @mickym last edited by

                  @mickym said in Node Red startet nicht nach Raspberry OS update:

                  ls -la

                  pi@RasPi3B3:/opt/iobroker $ ls -la
                  insgesamt 368
                  drwxrwxr-x+   6 iobroker iobroker   4096  1. Sep 21:35 .
                  drwxr-xr-x    4 root     root       4096  7. Feb 2022  ..
                  drwxrwxr-x+   2 iobroker iobroker   4096  7. Feb 2022  backups
                  -rwxrwxrwx+   1 iobroker iobroker    341  1. Sep 21:35 INSTALLER_INFO.txt
                  lrwxrwxrwx    1 iobroker iobroker     22  1. Sep 21:35 iob -> /opt/iobroker/iobroker
                  -rwxr-xr-x+   1 iobroker iobroker    309  1. Sep 21:35 iobroker
                  drwxrwxr-x+   5 iobroker iobroker   4096  7. Feb 2022  iobroker-data
                  drwxrwxr-x+   2 iobroker iobroker   4096  1. Sep 20:39 log
                  drwxrwxr-x+ 573 iobroker iobroker  20480  1. Sep 20:44 node_modules
                  -rw-rwxr--+   1 iobroker iobroker    155  1. Sep 21:34 .npmrc
                  -rw-rwxr--+   1 iobroker iobroker    453 28. Aug 17:15 package.json
                  -rw-rwxr--+   1 iobroker iobroker 309184 28. Aug 17:15 package-lock.json
                  -rw-rwxr--+   1 iobroker iobroker   5693  7. Feb 2022  reinstall.js
                  pi@RasPi3B3:/opt/iobroker $ 
                  
                  mickym 1 Reply Last reply Reply Quote 0
                  • mickym
                    mickym Most Active @etzeste13 last edited by

                    @etzeste13 Ok dann zeig mal Deinen Baum:

                    in diesem Verzeichnis

                    npm list
                    

                    ausführen.

                    E 1 Reply Last reply Reply Quote 0
                    • E
                      etzeste13 @mickym last edited by

                      @mickym said in Node Red startet nicht nach Raspberry OS update:

                      npm list

                      alles klar...

                      pi@RasPi3B3:/opt/iobroker $ npm list
                      iobroker.inst@3.0.0 /opt/iobroker
                      ├── UNMET DEPENDENCY iobroker.admin@^6.2.17
                      ├── UNMET DEPENDENCY iobroker.backitup@^2.4.10
                      ├── UNMET DEPENDENCY iobroker.discovery@^3.0.5
                      ├── UNMET DEPENDENCY iobroker.info@^1.9.19
                      ├── UNMET DEPENDENCY iobroker.js-controller@stable
                      ├── UNMET DEPENDENCY iobroker.modbus@^5.0.4
                      ├── UNMET DEPENDENCY iobroker.node-red@^3.3.1
                      └── UNMET DEPENDENCY iobroker.rpi2@^1.3.2
                      
                      npm ERR! code ELSPROBLEMS
                      npm ERR! missing: iobroker.admin@^6.2.17, required by iobroker.inst@3.0.0
                      npm ERR! missing: iobroker.backitup@^2.4.10, required by iobroker.inst@3.0.0
                      npm ERR! missing: iobroker.discovery@^3.0.5, required by iobroker.inst@3.0.0
                      npm ERR! missing: iobroker.info@^1.9.19, required by iobroker.inst@3.0.0
                      npm ERR! missing: iobroker.js-controller@stable, required by iobroker.inst@3.0.0
                      npm ERR! missing: iobroker.modbus@^5.0.4, required by iobroker.inst@3.0.0
                      npm ERR! missing: iobroker.node-red@^3.3.1, required by iobroker.inst@3.0.0
                      npm ERR! missing: iobroker.rpi2@^1.3.2, required by iobroker.inst@3.0.0
                      
                      npm ERR! A complete log of this run can be found in:
                      npm ERR!     /home/iobroker/.npm/_logs/2022-09-01T19_54_06_767Z-debug-0.log
                      pi@RasPi3B3:/opt/iobroker $ 
                      
                      
                      mickym 1 Reply Last reply Reply Quote 0
                      • mickym
                        mickym Most Active @etzeste13 last edited by

                        @etzeste13 OK - dann machen wir mal. 😉 - Wie gesagt Dein System ist eh kaputt. Alles in /opt/iobroker durchführen.

                        Jetzt löschen wir mal: 😉

                        sudo rm package-lock.json
                        
                        sudo rm -rf node_modules
                        

                        dann mit ls-la wieder Verzeichnis zeigen.

                        E 1 Reply Last reply Reply Quote 0
                        • E
                          etzeste13 @mickym last edited by

                          @mickym said in Node Red startet nicht nach Raspberry OS update:

                          sudo rm -rf node_modules

                          erledigt

                          mickym 1 Reply Last reply Reply Quote 0
                          • mickym
                            mickym Most Active @etzeste13 last edited by

                            @etzeste13 Zeigen wie das Verzeichnis aussieht

                            ls -la
                            
                            E 1 Reply Last reply Reply Quote 0
                            • E
                              etzeste13 @mickym last edited by

                              @mickym said in Node Red startet nicht nach Raspberry OS update:

                              ls -la

                              pi@RasPi3B3:/opt/iobroker $ ls -la
                              insgesamt 44
                              drwxrwxr-x+ 5 iobroker iobroker 4096  1. Sep 21:58 .
                              drwxr-xr-x  4 root     root     4096  7. Feb 2022  ..
                              drwxrwxr-x+ 2 iobroker iobroker 4096  7. Feb 2022  backups
                              -rwxrwxrwx+ 1 iobroker iobroker  341  1. Sep 21:35 INSTALLER_INFO.txt
                              lrwxrwxrwx  1 iobroker iobroker   22  1. Sep 21:35 iob -> /opt/iobroker/iobroker
                              -rwxr-xr-x+ 1 iobroker iobroker  309  1. Sep 21:35 iobroker
                              drwxrwxr-x+ 5 iobroker iobroker 4096  7. Feb 2022  iobroker-data
                              drwxrwxr-x+ 2 iobroker iobroker 4096  1. Sep 20:39 log
                              -rw-rwxr--+ 1 iobroker iobroker  155  1. Sep 21:34 .npmrc
                              -rw-rwxr--+ 1 iobroker iobroker  453 28. Aug 17:15 package.json
                              -rw-rwxr--+ 1 iobroker iobroker 5693  7. Feb 2022  reinstall.js
                              pi@RasPi3B3:/opt/iobroker $ 
                              
                              
                              mickym 1 Reply Last reply Reply Quote 0
                              • mickym
                                mickym Most Active @etzeste13 last edited by

                                @etzeste13 Gut dann mit

                                npm install wieder installieren

                                npm install
                                
                                E 1 Reply Last reply Reply Quote 0
                                • E
                                  etzeste13 @mickym last edited by

                                  @mickym said in Node Red startet nicht nach Raspberry OS update:

                                  npm install

                                  folgende meldung...

                                  pi@RasPi3B3:/opt/iobroker $ npm install
                                  npm ERR! code ENOTDIR
                                  npm ERR! syscall stat
                                  npm ERR! path /home/iobroker/.npm/_cacache/content-v2/sha512/17/06/0df1a30050029f8f7ec9ac5018a8e08974fa7e57a8c65380af859213df16e877c8250d01a6e5e9d176e66443acec6f692fcd3c0e50df249ca2e3dd43c4d1
                                  npm ERR! errno ENOTDIR
                                  npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/form-data: ENOTDIR: not a directory, stat '/home/iobroker/.npm/_cacache/content-v2/sha512/17/06/0df1a30050029f8f7ec9ac5018a8e08974fa7e57a8c65380af859213df16e877c8250d01a6e5e9d176e66443acec6f692fcd3c0e50df249ca2e3dd43c4d1'
                                  
                                  npm ERR! A complete log of this run can be found in:
                                  npm ERR!     /home/iobroker/.npm/_logs/2022-09-01T20_00_41_101Z-debug-0.log
                                  pi@RasPi3B3:/opt/iobroker $ 
                                  
                                  
                                  mickym 1 Reply Last reply Reply Quote 0
                                  • mickym
                                    mickym Most Active @etzeste13 last edited by

                                    @etzeste13 mach mal

                                    npm cache clean -f
                                    
                                    E mickym 2 Replies Last reply Reply Quote 0
                                    • E
                                      etzeste13 @mickym last edited by

                                      @mickym said in Node Red startet nicht nach Raspberry OS update:

                                      npm cache clean -f

                                      erledigt

                                      pi@RasPi3B3:/opt/iobroker $ npm cache clean -f
                                      npm WARN using --force Recommended protections disabled.
                                      pi@RasPi3B3:/opt/iobroker $ 
                                      
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • mickym
                                        mickym Most Active @mickym last edited by

                                        Dann nochmal

                                        npm install
                                        
                                        E 1 Reply Last reply Reply Quote 0
                                        • E
                                          etzeste13 @mickym last edited by

                                          @mickym said in Node Red startet nicht nach Raspberry OS update:

                                          npm install

                                          ist durch

                                          pi@RasPi3B3:/opt/iobroker $ npm install
                                          npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                                          npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
                                          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 multer@1.4.4: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
                                          npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                          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 axios@0.27.0: Formdata complete broken, incorrect build size
                                          
                                          added 911 packages in 5m
                                          
                                          74 packages are looking for funding
                                            run `npm fund` for details
                                          pi@RasPi3B3:/opt/iobroker $ 
                                          
                                          mikeal created this issue in request/request

                                          open Request’s Past, Present and Future #3142

                                          mickym 1 Reply Last reply Reply Quote 0
                                          • mickym
                                            mickym Most Active @etzeste13 last edited by

                                            @etzeste13 Schaut doch gut aus.

                                            nun wieder

                                            npm list
                                            
                                            E 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            701
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            84
                                            4299
                                            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