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
    54 Posts 19 Posters 6.0k Views 19 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.
    • poddingueP Offline
      poddingue Vates 🪐 @christopher-petzel
      last edited by

      Trying to pull the last few posts together, because there is a pattern I keep staring at. 🤔
      Every failed run in @JB's screenshots lasts exactly 5 minutes while the successful ones finish in seconds, and @abudef's history going back to 23 June shows the same 5-minute wall.
      That reads to me like a fixed timeout firing rather than a merely slow transfer, though I could be wrong about which one. 🤷
      @christopher-petzel's syslog looks like a different animal, since assert(!this.paused) in undici's Parser.finish is xo-server crashing outright at job start while 13 other instances backed up fine the same minute. The only knob I can find written down is httpInactivityTimeout at https://docs.xen-orchestra.com/xo5/backup_troubleshooting#error-http-connection-has-timed-out, but that one sits on the XAPI GET path, and I do not know whether it touches pool metadata jobs at all. @florent, does the 5-minute signature change anything on your side?

      bogikornelB J 2 Replies Last reply Reply Quote 0
      • bogikornelB Offline
        bogikornel @poddingue
        last edited by

        @poddingue httpInactivityTimeout changed the only thing for me, I received the email half an hour later that the metadata could not be saved.

        1 Reply Last reply Reply Quote 0
        • marcoiM Offline
          marcoi
          last edited by

          looks like im getting the xo config backup body timeout error as well.
          Xen Orchestra, commit a94eb
          Master, commit 9c6d1

            "result": {
              "message": "backup task failed with undefined error",
              "name": "Error",
              "stack": "Error: backup task failed with undefined error\n    at forwardResult (file:///opt/xo/xo-builds/xen-orchestra-202608030700/packages/xo-server/src/_handleBackupLog.mjs:37:25)\n    at handleBackupLog (file:///opt/xo/xo-builds/xen-orchestra-202608030700/packages/xo-server/src/_handleBackupLog.mjs:68:12)\n    at onTaskUpdate (file:///opt/xo/xo-builds/xen-orchestra-202608030700/packages/xo-server/src/xo-mixins/metadata-backups.mjs:133:13)\n    at onTaskUpdate (file:///opt/xo/xo-builds/xen-orchestra-202608030700/@xen-orchestra/mixins/Tasks.mjs:205:23)\n    at Task.onProgress [as _onProgress] (/opt/xo/xo-builds/xen-orchestra-202608030700/@vates/task/combineEvents.js:61:5)\n    at Task.#emit (/opt/xo/xo-builds/xen-orchestra-202608030700/@vates/task/index.js:157:10)\n    at Task.#end (/opt/xo/xo-builds/xen-orchestra-202608030700/@vates/task/index.js:168:15)\n    at Task.run (/opt/xo/xo-builds/xen-orchestra-202608030700/@vates/task/index.js:190:16)\n    at Jobs.runJob (file:///opt/xo/xo-builds/xen-orchestra-202608030700/packages/xo-server/src/xo-mixins/jobs/index.mjs:297:7)\n    at Jobs.runJobSequence (file:///opt/xo/xo-builds/xen-orchestra-202608030700/packages/xo-server/src/xo-mixins/jobs/index.mjs:339:7)\n    at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202608030700/@vates/task/index.js:204:22)\n    at Task.run (/opt/xo/xo-builds/xen-orchestra-202608030700/@vates/task/index.js:188:20)\n    at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202608030700/packages/xo-server/src/xo-mixins/api.mjs:475:18)"
            }
          
          

          78623426-8414-4ed8-9b6d-cc290da82e9c-image.jpeg

          1 Reply Last reply Reply Quote 0
          • J Online
            JB @christopher-petzel
            last edited by

            @christopher-petzel Olá Chris!
            Yes, this is a local XCP-ng management network and there are no other backups simultaneous.

            1 Reply Last reply Reply Quote 0
            • J Online
              JB @poddingue
              last edited by

              @poddingue Olá! The failure has a fixed duration of 5 minutes.

              1 Reply Last reply Reply Quote 0
              • acebmxerA Online
                acebmxer
                last edited by acebmxer

                Just got a failure today but with a different pool.

                    "message": "backup task failed with undefined error",
                    "name": "Error",
                    "stack": "Error: backup task failed with undefined error\n    at forwardResult (file:///usr/local/lib/node_modules/xo-server/src/_handleBackupLog.mjs:37:25)\n    at handleBackupLog (file:///usr/local/lib/node_modules/xo-server/src/_handleBackupLog.mjs:68:12)\n    at onTaskUpdate (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/metadata-backups.mjs:117:13)\n    at onTaskUpdate (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/mixins/Tasks.mjs:205:23)\n    at onLogFct (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/combineEvents.js:61:5)\n    at metadataBackup._executor (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/metadata-backups.mjs:122:11)\n    at Jobs.runJob (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/jobs/index.mjs:297:7)\n    at file:///usr/local/lib/node_modules/xo-server/src/api/schedule.mjs:84:9\n    at Task.runInside (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:204:22)\n    at Task.run (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:188:20)\n    at Xo.runSequence (file:///usr/local/lib/node_modules/xo-server/src/api/schedule.mjs:73:3)\n    at Task.runInside (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:204:22)\n    at Task.run (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:188:20)\n    at Api.#callApiMethod (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/api.mjs:475:18)"
                  }
                }
                

                Screenshot_20260803_212536.png

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

                  Every day I update XO-CE hoping this error gets fixed, but so far, no solution!

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

                    Is there a way in private message to give access to the XCP-ng host and XO VM in question OR to get all logs from 2 machines somewhere? 5min is clearly a timeout error.

                    acebmxerA J 2 Replies Last reply Reply Quote 0
                    • acebmxerA Online
                      acebmxer @olivierlambert
                      last edited by

                      @olivierlambert

                      Mine has not done it since last post but i have opened a support ticket along with tunnel being opened - Ticket#7762089

                      1 Reply Last reply Reply Quote 1
                      • J Online
                        JB @olivierlambert
                        last edited by

                        @olivierlambert Yes, I can grant it.

                        1 Reply Last reply Reply Quote 0
                        • marcoiM Offline
                          marcoi
                          last edited by

                          looks like mine also just started working.
                          9093a86c-0ec3-48b8-ab41-236e86cf37f8-image.jpeg

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

                            6123a044-a5bd-4816-b937-6a096b26bc0a-image.jpeg

                            Master, commit be960

                            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