Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. backitup meldet Cannot find module 'fs-constants'

    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

    UNSOLVED backitup meldet Cannot find module 'fs-constants'

    This topic has been deleted. Only users with topic management privileges can see it.
    • UncleSam
      UncleSam Developer @Bernd1971 last edited by

      @Bernd1971 sagte in backitup meldet Cannot find module 'fs-constants':

      Vermutlich beginnt also das Problem hier schon bei wide-align? Oder wie verstehe ist das?

      Ich vermute, ja. Aber sicher bin ich mir da auch nicht.

      Warum ist exit code 0? Ich dachte, dies bedeutet "alles gut"?

      Ja, wahrscheinlich ist das für npm nur eine optionale Abhängigkeit, dann reklamiert der zwar, aber lässt trotzdem alles durchlaufen.

      Wie gesagt: ein Update sollte die Probleme hoffentlich lösen.

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

        @Bernd1971 sagte in backitup meldet Cannot find module 'fs-constants':

        Das Update auf 12.x habe ich mich bisher nicht getraut, da ich noch die letzten Probleme von 8.x auf 10.x im Elefanten-Langzeit-Gedächtnis gespeichert hatte und da wenig Lust zu einer Wiederholung hatte.

        Mach das upgrade danach, dann funktioniert das auch:
        https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian

        B 1 Reply Last reply Reply Quote 0
        • B
          Bernd1971 @Thomas Braun last edited by Homoran

          @Thomas-Braun Danke für eure Hilfe. Ich bin nun auf 12.x

          /usr/bin/nodejs
          v12.20.1
          /usr/bin/node
          v12.20.1
          /usr/bin/npm
          6.14.10
          nodejs:
            Installed: 12.20.1-1nodesource1
            Candidate: 12.20.1-1nodesource1
            Version table:
           *** 12.20.1-1nodesource1 500
                  500 https://deb.nodesource.com/node_12.x buster/main arm64 Packages
                  100 /var/lib/dpkg/status
               10.23.1~dfsg-1~deb10u1 500
                  500 http://security.debian.org buster/updates/main arm64 Packages
               10.21.0~dfsg-1~deb10u1 500
                  500 http://httpredir.debian.org/debian buster/main arm64 Packages
          

          Aber es funktioniert leider noch nicht...

          backitup.0	2021-01-11 19:09:04.411	error	- /opt/iobroker/node_modules/iobroker.backitup/main.js Please run "iobroker fix" and reinstall backitup
          backitup.0	2021-01-11 19:09:04.411	error	- /opt/iobroker/node_modules/iobroker.backitup/lib/execute.js
          backitup.0	2021-01-11 19:09:04.411	error	- /opt/iobroker/node_modules/iobroker.backitup/lib/scripts/12-influxDB.js
          backitup.0	2021-01-11 19:09:04.411	error	- /opt/iobroker/node_modules/targz/index.js
          backitup.0	2021-01-11 19:09:04.411	error	- /opt/iobroker/node_modules/targz/lib/targz.js
          backitup.0	2021-01-11 19:09:04.411	error	- /opt/iobroker/node_modules/targz/node_modules/tar-fs/index.js
          backitup.0	2021-01-11 19:09:04.411	error	- /opt/iobroker/node_modules/targz/node_modules/tar-stream/index.js
          backitup.0	2021-01-11 19:09:04.411	error	- /opt/iobroker/node_modules/targz/node_modules/tar-stream/pack.js
          backitup.0	2021-01-11 19:09:04.411	error	Require stack:
          backitup.0	2021-01-11 19:09:04.411	error	(8863) [iobroker] error on backup: Error: Cannot find module 'fs-constants'
          

          MOD-Edit: Code in code-tags gesetzt!

          ich habe nochmals backitup neu installiert und auch schon den Fix laufen lassen. Noch weitere Ideen?

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

            @Bernd1971 sagte in backitup meldet Cannot find module 'fs-constants':

            Bitte Konsolentext in CodeTags </> packen.

            cd /opt/iobroker
            npm list fs-constants
            
            B 1 Reply Last reply Reply Quote 0
            • B
              Bernd1971 @Thomas Braun last edited by

              @Thomas-Braun
              Ich hoffe das klappt...

              +-- iobroker.backitup@1.8.4
              | `-- targz@1.0.1
              |   `-- tar-fs@1.16.3
              |     `-- tar-stream@1.6.2
              |       `-- fs-constants@1.0.0
              +-- iobroker.discovery@2.4.1
              | `-- serialport@9.0.4
              |   `-- @serialport/bindings@9.0.4
              |     `-- prebuild-install@6.0.0
              |       `-- tar-fs@2.1.1
              |         `-- tar-stream@2.1.4
              |           `-- fs-constants@1.0.0  deduped
              +-- node-red-node-serialport@0.8.8
              | `-- serialport@7.1.5
              |   `-- @serialport/bindings@2.0.8
              |     `-- prebuild-install@5.3.3
              |       `-- tar-fs@2.0.0
              |         `-- tar-stream@2.1.0
              |           `-- fs-constants@1.0.0  deduped
              `-- serialport@8.0.5
                `-- @serialport/bindings@8.0.4
                  `-- prebuild-install@5.3.3
                    `-- tar-fs@2.0.0
                      `-- tar-stream@2.1.0
                        `-- fs-constants@1.0.0  deduped
              
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Bernd1971 last edited by

                @Bernd1971 Eigentlich passt das...

                ls -la /opt/iobroker/node_modules/fs-constants/
                
                B 1 Reply Last reply Reply Quote 0
                • B
                  Bernd1971 @Thomas Braun last edited by Homoran

                  @Thomas-Braun

                  total 28
                  drwxrwxrwx+   2 iobroker iobroker  4096 Nov  9  2019 .
                  drwxrwxrwx+ 695 iobroker iobroker 20480 Jan 11 19:05 ..
                  -rwxrwxrwx+   1 iobroker iobroker  1011 Nov  9  2019 package.json
                  

                  MOD-Edit: Code-tags gefixt!

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

                    @Bernd1971
                    Da ist der Fehler.
                    Das muss so aussehen:

                    pi@raspberrypi:/opt/iobroker $ ls -la /opt/iobroker/node_modules/fs-constants/
                    insgesamt 52
                    drwxrwxr-x+   2 iobroker iobroker  4096 Aug 28 22:25 .
                    drwxrwxr-x+ 656 iobroker iobroker 28672 Jan 11 00:10 ..
                    -rw-rwxr--+   1 iobroker iobroker    38 Apr 26  2018 browser.js
                    -rw-rwxr--+   1 iobroker iobroker    65 Apr 26  2018 index.js
                    -rw-rwxr--+   1 iobroker iobroker  1079 Jan  1  2018 LICENSE
                    -rw-rwxr--+   1 iobroker iobroker  1366 Aug 28 22:25 package.json
                    -rw-rwxr--+   1 iobroker iobroker   528 Apr 26  2018 README.md
                    
                    B 1 Reply Last reply Reply Quote 0
                    • B
                      Bernd1971 @Thomas Braun last edited by

                      @Thomas-Braun cool, gibt es dazu ein fixer-fix? soweit ich das verstehe, habe ich gar keinen iobroker user....

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

                        @Bernd1971

                        dmesg | grep -i ext4
                        

                        dann mal

                        iobroker del iobroker.backitup
                        cd /opt/iobroker 
                        npm prune
                        npm cache clean --force
                        iobroker add backitup
                        
                        1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Bernd1971 last edited by Thomas Braun

                          @Bernd1971 sagte in backitup meldet Cannot find module 'fs-constants':

                          soweit ich das verstehe, habe ich gar keinen iobroker user....

                          Klar...

                          sudo -u iobroker whoami && sudo -u iobroker id
                          

                          Allerdings sind bei dir auch die Rechte verfummelt. Wie haste das denn hinbekommen? Als root rekursiv irgendwelchen Blödsinn auf das System gegossen? Da kommt das nämlich meistens her.

                          Gibt da u. a. so bestimmte Super-Youtuber mit irgendwelchen Blödsinns-Tools, die das empfehlen, sonst würde ihr SuperMEGA-Tool nicht funktionieren.

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            Bernd1971 @Thomas Braun last edited by

                            @Thomas-Braun ich sag mal so, man fängt am Anfang mit wenig Ahnung an und arbeitet sich dann die Leiter der Kompetenz hoch.

                            B Thomas Braun 2 Replies Last reply Reply Quote 0
                            • B
                              Bernd1971 @Bernd1971 last edited by

                              @Bernd1971 also ... alle befehle abgearbeitet .. allerdings gleiches ergebnis

                              total 28
                              drwxrwxrwx+   2 iobroker iobroker  4096 Nov  9  2019 .
                              drwxrwxrwx+ 680 iobroker iobroker 20480 Jan 11 19:50 ..
                              -rwxrwxrwx+   1 iobroker iobroker  1011 Nov  9  2019 package.json
                              
                              
                              B 1 Reply Last reply Reply Quote 0
                              • B
                                Bernd1971 @Bernd1971 last edited by

                                sudo -u iobroker whoami && sudo -u iobroker id
                                iobroker
                                uid=1000(iobroker) gid=1000(iobroker) groups=1000(iobroker),5(tty),20(dialout),29(audio),44(video)
                                
                                
                                B 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Bernd1971 last edited by

                                  @Bernd1971 Man sollte aber bei der Auswahl der Leiterhalter vorsichtig sein. Manche Sprossen sind da etwas morsch.

                                  whoami
                                  
                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    Bernd1971 @Bernd1971 last edited by

                                    su iobroker
                                    This account is currently not available.
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Bernd1971 last edited by

                                      @Bernd1971
                                      Du bist permanent als root unterwegs, oder?

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        Bernd1971 @Thomas Braun last edited by

                                        @Thomas-Braun Ja, ich hatte NULL Ahnung am Anfang, aber Hilfe von jemand mit unendlich mal mehr Ahnung...

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          Bernd1971 @Thomas Braun last edited by

                                          @Thomas-Braun auf der kiste, leider ja

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

                                            @Bernd1971 Dann brauchen wir gar nicht weiter machen.
                                            Du legst dir jetzt einen user mit einer Mitgliedschaft in der Gruppe 'sudo' an. Und dann meldest du dich nie mehr als root an.

                                            Am besten machst du das System ohnehin komplett neu, wer weiß was du dir da sonst noch zerschossen hast.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            689
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            backitup fs-constants
                                            4
                                            36
                                            1748
                                            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