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

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • 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

      @mickym

      ich befürchte dazu fehlt mir das Detalwissen diese Datein alle editieren... ich wüsste nicht was ich da rausschmeisen sollte bzw. was stehen lassen...

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

        @etzeste13 Also wenn Du ein Image hast und wieder auf den jetzigen Stand zurückkehren kannst - dann helfe ich Dir gerne.

        E 1 Reply Last reply Reply Quote 0
        • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            840
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

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