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.
    • B
      Bernd1971 @UncleSam last edited by Homoran

      @UncleSam 1000 Dank für schnelle Antwort. 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. Aber ich werde es angehen!
      Ich habe gerade nochmal BackItUp neu installiert und hier ist das Log:

      Vermutlich beginnt also das Problem hier schon bei wide-align? Oder wie verstehe ist das?
      Warum ist exit code 0? Ich dachte, dies bedeutet "alles gut"?

      $ ./iobroker add backitup  --host rock64
      NPM version: 6.14.8
      npm install iobroker.backitup@1.8.4 --loglevel error --prefix "/opt/iobroker" (System call)
      internal/modules/cjs/loader.js:638    throw err;    ^Error: Cannot find module 'wide-align'    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)    at Function.Module._load (internal/modules/cjs/loader.js:562:25)    at Module.require (internal/modules/cjs/loader.js:692:17)    at require (internal/modules/cjs/helpers.js:25:18)    at Object.<anonymous> (/opt/iobroker/node_modules/gauge/render-template.js:2:13)    at Module._compile (internal/modules/cjs/loader.js:778:30)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)    at Module.load (internal/modules/cjs/loader.js:653:32)    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      host.rock64 install adapter backitup
      upload [4] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/words.js words.js application/javascript
      upload [3] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/style.css style.css text/css
      upload [2] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/index_m.html index_m.html text/html
      upload [1] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/index.html index.html text/html
      upload [0] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/backitup.png backitup.png image/png
      host.rock64 object system.adapter.backitup created/updated
      host.rock64 create instance backitup
      host.rock64 object backitup.0.output.line created
      host.rock64 object backitup.0.output created
      host.rock64 object backitup.0.oneClick.iobroker created
      host.rock64 object backitup.0.oneClick.ccu created
      host.rock64 object backitup.0.oneClick created
      host.rock64 object backitup.0.history.iobrokerSuccess created
      host.rock64 object backitup.0.history.ccuSuccess created
      host.rock64 object backitup.0.history.iobrokerLastTime created
      host.rock64 object backitup.0.history.ccuLastTime created
      host.rock64 object backitup.0.history.json created
      host.rock64 object backitup.0.history.html created
      host.rock64 object backitup.0.history created
      host.rock64 object backitup.0.info.iobrokerNextTime created
      host.rock64 object backitup.0.info.ccuNextTime created
      host.rock64 object backitup.0.info.latestBackup created
      host.rock64 object backitup.0.info created
      host.rock64 object system.adapter.backitup.0.sigKill created
      host.rock64 object system.adapter.backitup.0.eventLoopLag created
      host.rock64 object system.adapter.backitup.0.outputCount created
      host.rock64 object system.adapter.backitup.0.inputCount created
      host.rock64 object system.adapter.backitup.0.uptime created
      host.rock64 object system.adapter.backitup.0.memRss created
      host.rock64 object system.adapter.backitup.0.memHeapTotal created
      host.rock64 object system.adapter.backitup.0.memHeapUsed created
      host.rock64 object system.adapter.backitup.0.cputime created
      host.rock64 object system.adapter.backitup.0.cpu created
      host.rock64 object system.adapter.backitup.0.compactMode created
      host.rock64 object system.adapter.backitup.0.connected created
      host.rock64 object system.adapter.backitup.0.alive created
      host.rock64 Set default value of backitup.0.output.line: 
      host.rock64 Set default value of backitup.0.oneClick.iobroker: false
      host.rock64 Set default value of backitup.0.oneClick.ccu: false
      host.rock64 Set default value of backitup.0.history.iobrokerSuccess: false
      host.rock64 Set default value of backitup.0.history.ccuSuccess: false
      host.rock64 Set default value of backitup.0.history.iobrokerLastTime: No backups yet
      host.rock64 Set default value of backitup.0.history.ccuLastTime: No backups yet
      host.rock64 Set default value of backitup.0.history.json: []
      host.rock64 Set default value of backitup.0.history.html: Noch kein Backup
      host.rock64 Set default value of backitup.0.info.iobrokerNextTime: none
      host.rock64 Set default value of backitup.0.info.ccuNextTime: none
      host.rock64 object system.adapter.backitup.0 created
      process exited with code 0
      

      MOD-Edit: Code in code-tags gesetzt!

      UncleSam Thomas Braun 2 Replies Last reply Reply Quote 0
      • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            419
                                            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