XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    DR backup - Error: IMPORT_ERROR_PREMATURE_EOF()

    Scheduled Pinned Locked Moved Xen Orchestra
    11 Posts 4 Posters 1.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • akurzawaA Offline
      akurzawa
      last edited by akurzawa

      I'm testing dr backup but have some error - what could be the reason of that?

      7150baf7-c3ac-4adf-ba1d-757190061653-image.png

       69_unifi_controller (XCP01) (ac01)  
       Snapshot 
      Start: Apr 30, 2019, 2:16:50 AM
      End: Apr 30, 2019, 2:16:51 AM
      
       x1-ext-sr01 (13.74 TiB free) - XCP01 (2599) 
       transfer 
      Start: Apr 30, 2019, 2:16:52 AM
      End: Apr 30, 2019, 2:23:29 AM
      Duration: 7 minutes
      Error: IMPORT_ERROR_PREMATURE_EOF()
      Start: Apr 30, 2019, 2:16:52 AM
      End: Apr 30, 2019, 2:23:29 AM
      Duration: 7 minutes
      Error: IMPORT_ERROR_PREMATURE_EOF()
      Start: Apr 30, 2019, 2:16:50 AM
      End: Apr 30, 2019, 2:23:31 AM
      Duration: 7 minutes
      

      This is my backup setup (DR-X2-to-X1):
      060911bb-d642-4902-a830-391a23156449-image.png

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Double check all your XCP-ng hosts are up to date (source and destination host). It seems the exported file isn't recognized correctly on destination (zstd format).

        Otherwise, try without compression to see if it comes from this issue.

        1 Reply Last reply Reply Quote 0
        • akurzawaA Offline
          akurzawa
          last edited by

          Everything up to date. Problem gone on next backup. Where to start to troubleshoot this situation in future? Do we already have a github section troubleshooting xcp-ng?

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Just ping again in this thread if it happens again. I'd like to have GH issues only on reproducible problems to avoid bothering devs without enough content to start tracking a bug 🙂

            1 Reply Last reply Reply Quote 1
            • akurzawaA Offline
              akurzawa
              last edited by

              Of course. But I'm talking about whole section with information of where to start troubleshooting common problems

              1 Reply Last reply Reply Quote 0
              • S Offline
                shorian
                last edited by shorian

                For anyone else who comes across the same issue, we had this occur with XCP-ng 8.2 , XO-server 5.71.2 which we isolated to using Zstd compression. It was solved by reducing concurrency and assigning a couple of extra vCPUs.

                In response to @olivierlambert's point above - it is 100% reproducible if you have an under-resourced XO and fast target remote so the bottleneck becomes the CPU rather than iowait or memory acting as a throttle, but in our instance only for VMs of a reasonable size (>50gb) containing complex databases with lots of incompressible data.

                1 Reply Last reply Reply Quote 1
                • olivierlambertO Offline
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by

                  How could XO could be a problem? zstd is done on the host side, not in XO.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    shorian @olivierlambert
                    last edited by

                    @olivierlambert Can't answer that I"m afraid. It's reproducible, and the above resolved the issue, and if I limit the CPU resource to XO then it re-occurs. Potentially the issue is less in Zstd and more in terms of how the resource queuing works? I can't tell why, simply that there was an issue and above solved it, and I can reverse the change and have the problem re-occur.

                    Can send over logs of before and after if it helps?

                    B 1 Reply Last reply Reply Quote 0
                    • olivierlambertO Offline
                      olivierlambert Vates 🪐 Co-Founder CEO
                      last edited by

                      We are using Node streams with back pressure. So it shouldn't be the case. Maybe zstd behavior is a bit different and when it waits for a while it drops, I don't know.

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bsodmike @shorian
                        last edited by

                        @shorian Thanks for your response. Please see my new thread https://xcp-ng.org/forum/topic/3971/unable-to-export-reliable-backups/1

                        I tried adding more vCPUs and even upped the RAM to XOA to 8gig. It starts to generate a backup but then dies out 1-5GB into a 50GB output XVA.

                        Ideas?

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          shorian @bsodmike
                          last edited by shorian

                          @bsodmike Increase memory to node.js as described in the docs under memory management. Adding mem to VM is insufficient in isolation, so my post above may have been misleading (sorry!).

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