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

    Backup fails with "Body Timeout Error", "all targets have failed, step: writer.run()"

    Scheduled Pinned Locked Moved Unsolved Backup
    105 Posts 20 Posters 12.4k Views 21 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.
    • M Offline
      MajorP93 @pierrebrunet
      last edited by

      @pierrebrunet Oh one more thing that I just remembered.
      If I recall correctly the first time I saw this issue was right after I patched my XCP-ng hosts without updating Xen Orchestra.
      So maybe this is caused by XAPI code changes?

      1 Reply Last reply Reply Quote 0
      • J Offline
        JB
        last edited by

        6b58102f-353c-4da8-aed5-6817621e13e1-image.jpeg

        a4477b40-7812-4f27-8711-917c81c818da-image.jpeg

        commit 20bed

        SMB

        1 Reply Last reply Reply Quote 0
        • P Offline
          pierrebrunet Vates 🪐 XO Team @acebmxer
          last edited by

          @acebmxer ok, too bad... I thought we had it...
          @majorp93 this can be a lead. I will ask xapi team if they changed something in pool metadata export.

          acebmxerA 1 Reply Last reply Reply Quote 1
          • acebmxerA Offline
            acebmxer @pierrebrunet
            last edited by

            @pierrebrunet

            No worries,
            Mine seems to be intermittent and restarting that pools tool stack resolves the issue for now.

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              JB @acebmxer
              last edited by

              @acebmxer

              514388c6-4dc9-4602-a72d-8ec157d492ab-image.jpeg

              Exactly! I restarted the pools tool stack and made 3 backups. If I restart it again, I'll be able to make more backups.

              acebmxerA 1 Reply Last reply Reply Quote 0
              • G Offline
                GregBinSD
                last edited by

                @jb
                You have hit on something that ties into what I have discovered. Since July 1, on my XCP-ng / XO-CE cluster, the metadata and xo-config backup job only runs successfully when I have all 3 hosts in my cluster active, and after I have reset the tool stack on the Master host.

                Because I am running the XCP-ng and XO-CE on an off-grid solar/battery system, independent of my electric bill, I try to limit total power to 250 watts for all devices (network switches, iSCSI NAS, XCP-ng hosts, etc). Consequently, I run only one host on a regular basis. When it is necessary to update XCP-ng, I turn on all hosts and do a rolling pool update. If I manually perform a metadata and xo-config backup while all of the hosts are on, only then will the backup be successful.

                Before July 1, the metadata and xo-config back was always successful, whether it was scheduled or manual.

                Hopefully, this will turn on a light bulb in the head of a Vates engineer, and he or she will solve this issue!

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

                  Are you sure it really worked? Because we fixed something that swallowed the error before. Maybe it was successful while in fact not working. When you have some hosts down in a pool, you cannot safely export metadata because XAPI can't tell if the other hosts are dead, disconnected or simply stopped.

                  1 Reply Last reply Reply Quote 0
                  • acebmxerA Offline
                    acebmxer @JB
                    last edited by

                    @JB @gregbinsd @olivierlambert

                    Yes restarting the tool stack works for me. I currently do not have any host offline at least not intentionally. If there is a network glitch that i am not aware of that might cause the issue if that is the actual cause.

                    As @olivierlambert stated maybe we were having issues all along and they just changed something that is making the issue visible now. The support tunnel should still be open on my environment if you or the team want to look at logs.

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      GregBinSD
                      last edited by

                      @jb
                      @olivierlambert
                      Oliver, you may be right, wondering whether they really worked. How can I prove that the metadata and xo-config backups were truly successful?

                      Below, I pasted in the GUI backup log from XO5.

                      425ae32e-ada6-4498-af93-eff3c5bb451a-image.jpeg

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        JB
                        last edited by

                        All my hosts are online, yet the error still occurs. However, if I restart, the backup works for two or three runs.

                        1 Reply Last reply Reply Quote 0
                        • bogikornelB Offline
                          bogikornel
                          last edited by

                          The problem is that my VM backups don't run either, because I still get a timeout. This morning out of 11 VM backups, 2 failed, on Tuesday 1 failed, 20 were good.

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

                            5 minutes is clearly an HTTP timeout, the question is way we are reaching this timeout in the first place.

                            christopher-petzelC 1 Reply Last reply Reply Quote 0
                            • P Offline
                              pierrebrunet Vates 🪐 XO Team @bogikornel
                              last edited by

                              @bogikornel are you talking about another issue? We are on an issue specifically on "pool metadata backups". It seems you are talking about VM backups. If yes, can you send the backup log please?

                              bogikornelB 1 Reply Last reply Reply Quote 0
                              • bogikornelB Offline
                                bogikornel @pierrebrunet
                                last edited by

                                @pierrebrunet This is the same error, but it occurs more often when saving metadata. I'm attaching the logfile. xo-backup-error-log.txt

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  CodeMercenary
                                  last edited by

                                  This happens to me mostly with non-config backups but occasionally a config backup will fail. The VM that fails the backup with the body timeout changes around every day, then once a week or so, every VM will get backed up. It only happens on this XO instance and only with the full backups. It doesn't happen on another XO instance that performs delta backups of the same VMs a couple hours later.
                                  0f04acef-0cd9-487c-8292-e27174bf9999-image.jpeg

                                  1 Reply Last reply Reply Quote 0
                                  • christopher-petzelC Offline
                                    christopher-petzel @olivierlambert
                                    last edited by

                                    @olivierlambert I feel like the cause of the timeout is what I posted here: https://xcp-ng.org/forum/post/107454

                                    The incidents of the errors in syslog correspond by matching pool, date and time to the incidents of errors in XO backup. I've traced through several of these incidents in the syslog and matched them to the errors in the XO metadata backup and matched these to missing metadata backup files in the directory on the storage server (ex. 20260807T041000Z) which is created even if the backup fails.

                                    I would look in older logs to see if maybe this has been happening for a long time, possibly before an XO update now shows the error, but my syslog data only goes back 30 days. The XO metadata backup errors started over 30 days.

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

                                      I have a theory that I'd like you to test on a specific branch. It might be an Undici bug, but I'm far from being sure.

                                      You need Node >=22.19 to make it work. Switch to the branch named fix_undici_paused_parser_crash, build it and try again.

                                      christopher-petzelC 2 Replies Last reply Reply Quote 0
                                      • christopher-petzelC Offline
                                        christopher-petzel @olivierlambert
                                        last edited by

                                        @olivierlambert Good news. This morning, I built on the fix_undici_paused_parser_crash branch and manually ran the metadata backup job 10 times and did NOT get an error. Previously, running the job manually could result in the body timeout error, so we have progress.

                                        I will stay on this build during this week, let the scheduled metadata backups run, and report back by this Friday.

                                        M G 2 Replies Last reply Reply Quote 2
                                        • M Offline
                                          MajorP93 @christopher-petzel
                                          last edited by MajorP93

                                          @christopher-petzel Thank you for testing this! I am also interested in this fix since I encounter this issue from time to time. Unfortunately my testing environment / lab is currently unavailable which is why I wasn't able to compile & deploy this branch myself.

                                          1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            GregBinSD @christopher-petzel
                                            last edited by GregBinSD

                                            @christopher-petzel
                                            Great news!
                                            I will test and report after it is available in a global update.
                                            Thank you Christopher.

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post