Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. TESTER gesucht / Backup auf Fritz.nas - node 18.18.0

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    TESTER gesucht / Backup auf Fritz.nas - node 18.18.0

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

      @fastfoot

      /opt/iobroker/backups unmounted
      //fritz.box/fritz.nas/Hitachi-HTS545012B9SA00-01/iobbackups/chet mounted into /opt/iobroker/backups
      
      file test_pipeline_compressed_tar.tar.gz created
      file test_pipeline_compressed_tar.tar.gz done
      number of files in test_pipeline_compressed_tar.tar.gz: 0
      
      file test_pipeline_compressed_zlib.tar.gz created
      file test_pipeline_compressed_zlib.tar.gz done
      number of files in test_pipeline_compressed_zlib.tar.gz: 0
      
      file test_pipeline_uncompressed.tar created
      file test_pipeline_uncompressed.tar done
      number of files in test_pipeline_uncompressed.tar: 0
      
      listing of created files in /opt/iobroker/backups
      -rwxrwxrwx 1 root root 252416 Oct 14  2023 /opt/iobroker/backups/test_pipeline_uncompressed.tar
      -rwxrwxrwx 1 root root  16384 Oct 14 00:49 /opt/iobroker/backups/test_pipeline_compressed_zlib.tar.gz
      -rwxrwxrwx 1 root root  16384 Oct 14 00:49 /opt/iobroker/backups/test_pipeline_compressed_tar.tar.gz
      
      

      Und Backup geht in die Hose...

      F 1 Reply Last reply Reply Quote 0
      • F
        fastfoot @Thomas Braun last edited by

        @thomas-braun gestern ging das doch! im script zeile vor test():
        console.log(process.env.UV_USE_IO_URING)

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

          @fastfoot

          Alle Backups von heute sind Murks:

          echad@chet:/opt/iobroker $ ls -lAh backups/ | grep 2023_10_14
          -rwxrwxrwx 1 root root  16K Oct 14 00:28 historyDB_2023_10_14-00_27_45_chet_backupiobroker.tar.gz
          -rwxrwxrwx 1 root root  16K Oct 14 00:53 historyDB_2023_10_14-00_53_15_chet_backupiobroker.tar.gz
          -rwxrwxrwx 1 root root  16K Oct 14 00:27 iobroker_2023_10_14-00_27_33_chet_backupiobroker.tar.gz
          -rwxrwxrwx 1 root root  16K Oct 14 00:53 iobroker_2023_10_14-00_53_04_chet_backupiobroker.tar.gz
          -rwxrwxrwx 1 root root  16K Oct 14 00:28 javascripts_2023_10_14-00_28_19_chet_backupiobroker.tar.gz
          -rwxrwxrwx 1 root root  14K Oct 14 00:53 javascripts_2023_10_14-00_53_48_chet_backupiobroker.tar.gz
          -rwxrwxrwx 1 root root  957 Oct 14 00:28 zigbee.0_2023_10_14-00_28_18_chet_backupiobroker.tar.gz
          -rwxrwxrwx 1 root root  968 Oct 14 00:53 zigbee.0_2023_10_14-00_53_47_chet_backupiobroker.tar.gz
          

          Skript:

          /opt/iobroker/backups unmounted
          //fritz.box/fritz.nas/Hitachi-HTS545012B9SA00-01/iobbackups/chet mounted into /opt/iobroker/backups
          
          file test_pipeline_compressed_tar.tar.gz created
          file test_pipeline_compressed_tar.tar.gz done
          number of files in test_pipeline_compressed_tar.tar.gz: 115
          
          file test_pipeline_compressed_zlib.tar.gz created
          file test_pipeline_compressed_zlib.tar.gz done
          number of files in test_pipeline_compressed_zlib.tar.gz: 115
          
          file test_pipeline_uncompressed.tar created
          file test_pipeline_uncompressed.tar done
          number of files in test_pipeline_uncompressed.tar: 115
          
          listing of created files in /opt/iobroker/backups
          -rwxrwxrwx 1 root root 821248 Oct 14 00:58 /opt/iobroker/backups/test_pipeline_uncompressed.tar
          -rwxrwxrwx 1 root root 154604 Oct 14 00:58 /opt/iobroker/backups/test_pipeline_compressed_zlib.tar.gz
          -rwxrwxrwx 1 root root 154604 Oct 14 00:58 /opt/iobroker/backups/test_pipeline_compressed_tar.tar.gz
          
          
          F 1 Reply Last reply Reply Quote 0
          • F
            fastfoot @Thomas Braun last edited by

            @thomas-braun die Ausgabe vor 10Min. war doch negativ, auch beim Skript. Und jetzt ist sie ok. Beide Male sollte die env gesetzt sein. Jetzt bin ich verwirrt

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

              @fastfoot 🤷‍♂️
              Ich muss ins Bett. Keine Konzentration mehr.

              1 Reply Last reply Reply Quote 0
              • F
                fastfoot @fastfoot last edited by

                @fastfoot N8! geht mir auch so. Morgen knacken wir das

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

                  @fastfoot

                  Ich hab jetzt die Kiste komplett gebootet, damit /etc/environment definitiv gesourct wird.

                  Backups kaputt.

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    fastfoot @Thomas Braun last edited by

                    @thomas-braun sagte in TESTER gesucht / Backup auf Fritz.nas - node 18.18.0:

                    @fastfoot

                    Ich hab jetzt die Kiste komplett gebootet, damit /etc/environment definitiv gesourct wird.

                    Backups kaputt.

                    da hab ich noch was, aber nach dem Schlafen 🙂

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

                      @fastfoot

                      Aber die ENV wird jetzt systemweit berücksichtigt:

                      echad@chet:/opt/iobroker $ node cifs.js
                      0
                      Copy output from below
                      
                      
                      /opt/iobroker/backups unmounted
                      //fritz.box/fritz.nas/Hitachi-HTS545012B9SA00-01/iobbackups/chet mounted into /opt/iobroker/backups
                      
                      file test_pipeline_compressed_tar.tar.gz created
                      file test_pipeline_compressed_tar.tar.gz done
                      number of files in test_pipeline_compressed_tar.tar.gz: 115
                      
                      file test_pipeline_compressed_zlib.tar.gz created
                      file test_pipeline_compressed_zlib.tar.gz done
                      number of files in test_pipeline_compressed_zlib.tar.gz: 115
                      
                      file test_pipeline_uncompressed.tar created
                      file test_pipeline_uncompressed.tar done
                      number of files in test_pipeline_uncompressed.tar: 115
                      
                      listing of created files in /opt/iobroker/backups
                      -rwxrwxrwx 1 root root 821248 Oct 14 01:15 /opt/iobroker/backups/test_pipeline_uncompressed.tar
                      -rwxrwxrwx 1 root root 154609 Oct 14 01:15 /opt/iobroker/backups/test_pipeline_compressed_zlib.tar.gz
                      -rwxrwxrwx 1 root root 154609 Oct 14 01:15 /opt/iobroker/backups/test_pipeline_compressed_tar.tar.gz
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Thomas Braun last edited by

                        Fun fact:
                        Den iobroker interessiert das aber nicht:

                        echad@chet:/opt/iobroker $ sudo -u iobroker node cifs.js
                        undefined
                        Copy output from below
                        
                        /opt/iobroker/backups unmounted
                        //fritz.box/fritz.nas/Hitachi-HTS545012B9SA00-01/iobbackups/chet mounted into /opt/iobroker/backups
                        
                        file test_pipeline_compressed_tar.tar.gz created
                        file test_pipeline_compressed_tar.tar.gz done
                        number of files in test_pipeline_compressed_tar.tar.gz: 0
                        
                        file test_pipeline_compressed_zlib.tar.gz created
                        file test_pipeline_compressed_zlib.tar.gz done
                        number of files in test_pipeline_compressed_zlib.tar.gz: 0
                        
                        file test_pipeline_uncompressed.tar created
                        file test_pipeline_uncompressed.tar done
                        number of files in test_pipeline_uncompressed.tar: 0
                        
                        listing of created files in /opt/iobroker/backups
                        -rwxrwxrwx 1 root root 253952 Oct 14 01:17 /opt/iobroker/backups/test_pipeline_uncompressed.tar
                        -rwxrwxrwx 1 root root  16384 Oct 14 01:17 /opt/iobroker/backups/test_pipeline_compressed_zlib.tar.gz
                        -rwxrwxrwx 1 root root  16384 Oct 14 01:17 /opt/iobroker/backups/test_pipeline_compressed_tar.tar.gz
                        
                        

                        End of output to copy

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          fastfoot @Thomas Braun last edited by

                          @thomas-braun sagte in TESTER gesucht / Backup auf Fritz.nas - node 18.18.0:

                          Den iobroker interessiert das aber nicht:

                          na da haben wirs!
                          vi iob
                          sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"

                          abändern mit UV_USE_IO_URING=0 davor setzen
                          stoppen und iob start. NICHT über den service

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

                            @fastfoot

                            echad@chet:/opt/iobroker $ env | grep UV_USE
                            UV_USE_IO_URING=0
                            echad@chet:/opt/iobroker $ sudo -H -u iobroker env | grep UV_USE
                            echad@chet:/opt/iobroker $
                            

                            Der Schlingel!

                            F 2 Replies Last reply Reply Quote 0
                            • F
                              fastfoot @Thomas Braun last edited by

                              @thomas-braun mach mal noch den iob edit, das geht noch

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

                                @fastfoot

                                #!/usr/bin/bash
                                if (( $# == 1 )) && ([ "$1" = "start" ] || [ "$1" = "stop" ] || [ "$1" = "restart" ]); then
                                sudo systemctl $1 iobroker
                                elif [ "$1" = "fix" ]; then
                                curl -sL https://iobroker.net/fix.sh | bash -
                                elif [ "$1" = "nodejs-update" ]; then
                                sudo -u iobroker curl -sLf https://iobroker.net/node-update.sh --output /home/iobroker/.nodejs-update.sh && bash /home/iobroker/.nodejs-update.sh $2
                                elif [ "$1" = "diag" ]; then
                                  sudo -u iobroker curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh && bash /home/iobroker/.diag.sh | sudo -u iobroker tee /home/iobroke>
                                else
                                UV_USE_IO_URING=0
                                sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
                                fi
                                

                                Habs mit nano gemacht, auf vi hatte ich um die Uhrzeit keinen Bock mehr...

                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  fastfoot @Thomas Braun last edited by

                                  @thomas-braun Nee, davor, so wie beim script, sonst haben wir denselben Sch......

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    fastfoot @Thomas Braun last edited by

                                    @thomas-braun sagte in TESTER gesucht / Backup auf Fritz.nas - node 18.18.0:

                                    iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"

                                    oder alternativ auf der Konsole

                                    su iobroker
                                    UV_USE_IO_URING=0 node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @fastfoot last edited by

                                      @fastfoot

                                      Negativ, Backups sind Schrott.

                                      F 2 Replies Last reply Reply Quote 0
                                      • F
                                        fastfoot @Thomas Braun last edited by

                                        @thomas-braun dann morgen, kann nicht mehr 🙂

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          fastfoot @Thomas Braun last edited by

                                          @thomas-braun sagte in TESTER gesucht / Backup auf Fritz.nas - node 18.18.0:

                                          Negativ, Backups sind Schrott.

                                          Bei mir im wsl kam dass ich keine environments setzen dürfe! im wsl darf ich nicht root sein, so wie es soll. Aber so gehts

                                          UV_USE_IO_URING=0
                                          sudo -H -u iobroker --preserve-env=UV_USE_IO_URING env | grep UV_
                                          

                                          und so den Aufruf von iobroker im iob gestalten

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

                                            @fastfoot

                                            #!/usr/bin/bash
                                            if (( $# == 1 )) && ([ "$1" = "start" ] || [ "$1" = "stop" ] || [ "$1" = "restart" ]); then
                                            sudo systemctl $1 iobroker
                                            elif [ "$1" = "fix" ]; then
                                            curl -sL https://iobroker.net/fix.sh | bash -
                                            elif [ "$1" = "nodejs-update" ]; then
                                            sudo -u iobroker curl -sLf https://iobroker.net/node-update.sh --output /home/iobroker/.nodejs-update.sh && bash /home/iobroker/.nodejs-update.sh $2
                                            elif [ "$1" = "diag" ]; then
                                              sudo -u iobroker curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh && bash /home/iobroker/.diag.sh | sudo -u iobroker tee /home/iobroker
                                            else
                                            UV_USE_IO_URING=0 sudo -H -u iobroker --preserve-env=UV_USE_IO_URING node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
                                            fi
                                            

                                            Aber:

                                            echad@chet:/opt/iobroker $ iob nodejs-upgrade 20
                                            sudo: sorry, you are not allowed to set the following environment variables: UV_USE_IO_URING
                                            
                                            F 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            906
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            10
                                            204
                                            15402
                                            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