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

    XO (self build) tasks spamming

    Scheduled Pinned Locked Moved Solved Management
    21 Posts 6 Posters 3.0k Views 5 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.
    • marcoiM Offline
      marcoi @Danp
      last edited by

      @Danp what do you need me to do?

      DanpD 1 Reply Last reply Reply Quote 0
      • DanpD Online
        Danp Pro Support Team @marcoi
        last edited by

        @marcoi Hard to say because you haven't really given us much to go on. There are various things you could try --

        • Deploy a new VM with XO from sources and see if you get the same behavior

        • Investigate the XO tasks to see if you can find some commonality

        • You can wait to see if others start reporting this same issue

        What version of Node is installed on this VM?

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

          Ill just dump some info maybe something might help.

          OS is Ubuntu 24.04.3 LTS (GNU/Linux 6.8.0-78-generic x86_64)
          4 CPU / 4GB Ram
          Xen Orchestra, commit c1c3b
          Master, commit c1c3b

          text when opening up a task- so far they all seem similar with different ids.

          {
            "error": "no such task 0merqc0ye",
            "data": {
              "id": "0merqc0ye",
              "type": "task"
            }
          }
          
          {
            "error": "no such task 0merqdzm2",
            "data": {
              "id": "0merqdzm2",
              "type": "task"
            }
          }
          

          One error in the log

          host.getSchedulerGranularity
          {
            "host": "4214a8b3-4628-43a6-b10d-c40503dd9694"
          }
          {
            "code": 1,
            "data": {
              "id": "4214a8b3-4628-43a6-b10d-c40503dd9694",
              "type": "host"
            },
            "message": "no such host 4214a8b3-4628-43a6-b10d-c40503dd9694",
            "name": "XoError",
            "stack": "XoError: no such host 4214a8b3-4628-43a6-b10d-c40503dd9694
              at noSuchObject (/opt/xo/xo-builds/xen-orchestra-202508251601/packages/xo-common/api-errors.js:26:11)
              at Xo.getObject (file:///opt/xo/xo-builds/xen-orchestra-202508251601/packages/xo-server/src/xo.mjs:88:13)
              at file:///opt/xo/xo-builds/xen-orchestra-202508251601/packages/xo-server/src/xo-mixins/api.mjs:172:25
              at /opt/xo/xo-builds/xen-orchestra-202508251601/node_modules/lodash/_createBaseFor.js:17:11
              at baseForOwn (/opt/xo/xo-builds/xen-orchestra-202508251601/node_modules/lodash/_baseForOwn.js:13:20)
              at /opt/xo/xo-builds/xen-orchestra-202508251601/node_modules/lodash/_createBaseEach.js:17:14
              at forEach (/opt/xo/xo-builds/xen-orchestra-202508251601/node_modules/lodash/forEach.js:38:10)
              at Xo.call (file:///opt/xo/xo-builds/xen-orchestra-202508251601/packages/xo-server/src/xo-mixins/api.mjs:163:3)
              at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202508251601/packages/xo-server/src/xo-mixins/api.mjs:411:50)"
          }
          

          Seems to be a host that i am testing pcie pass through with. I did redo that host install and used the same name/ip address. Not sure if this is just an error not related to task list issue.

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

            when i use command line

            marco@xen:/opt/xo/xo-server$ xo-cli rest get tasks/0merqp0hz
            404 Not Found
            āœ– {
              "error": "no such task 0merqp0hz",
              "data": {
                "id": "0merqp0hz",
                "type": "task"
              }
            }
            
            F 1 Reply Last reply Reply Quote 0
            • F Offline
              flakpyro @marcoi
              last edited by flakpyro

              @marcoi Same issue here with the latest commit (c1c3b). Rolling back to 4e3c1 from 2025-08-06 which i was running previously resolves the issue. Not sure whats going on or when it started happening exactly as i usually only update once a month.

              Edit: Updated to commit 4eeae and also do not experience the task spam. So im guessing this is something that happened during the commits today (Aug 25, 2025)

              Edit 2: Tested on both my homelab install and a second test environment install and both seem to exhibit this issue on the latest commit.

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

                @flakpyro I went back a few versions to Xen Orchestra, commit 70d59 and no longer seeing the task spamming.
                Guess I will disable the nightly update schedule for now. @Danp let me know if you need me to go to this version to test something or try a new version. etc..

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

                  It's been reproduced internally and will be fixed ASAP

                  1 Reply Last reply Reply Quote 0
                  • MathieuRAM Offline
                    MathieuRA Vates 🪐 XO Team
                    last edited by

                    Hi.
                    A PR is open: https://github.com/vatesfr/xen-orchestra/pull/8900

                    If anyone can confirm that the issue is fixed, that would be great. Thanks.

                    MathieuRA opened this pull request in vatesfr/xen-orchestra

                    closed fix(@xen-orchestra/rest-api): fix watch tasks #8900

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

                      Thank you for the PR @MathieuRA !

                      F 1 Reply Last reply Reply Quote 0
                      • F Offline
                        flakpyro @olivierlambert
                        last edited by

                        @olivierlambert On my test instance which is admittedly not very busy (only 2 hosts) this fixed the issue!

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

                          Thanks for the feedback!

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

                            is this in the latest build or do i need to download a separate branch etc? I'm using a script someone made to build my XO so not sure how to do a separate branch but if the change made it into main build i can download an update and test as well.

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

                              @marcoi in a branch at the moment. Ask your script provider to tell you how to switch to a branch šŸ™‚

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

                                @olivierlambert
                                Okay i got it I am running
                                Xen Orchestra, commit 09f67
                                Master, commit 35428

                                I will watch it and see how the tasks issue goes

                                Update 2: been about 20 mins and nothing showing up in the task list.

                                1 Reply Last reply Reply Quote 0
                                • A Online
                                  acebmxer @olivierlambert
                                  last edited by

                                  I just updated to Commit d1577 and I seam to have the bug now.

                                  Screenshot 2025-08-26 111446.png

                                  Screenshot 2025-08-26 111509.png

                                  Screenshot 2025-08-26 111540.png

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

                                    @acebmxer The fix is inside the branch mra-rest-fix-task, not yet on master.

                                    1 Reply Last reply Reply Quote 0
                                    • MathieuRAM Offline
                                      MathieuRA Vates 🪐 XO Team
                                      last edited by

                                      Fix available on master šŸŽ‰

                                      A 1 Reply Last reply Reply Quote 1
                                      • A Online
                                        acebmxer @MathieuRA
                                        last edited by

                                        Commit a4410 fix task spam issue.

                                        1 Reply Last reply Reply Quote 1
                                        • olivierlambertO olivierlambert marked this topic as a question on
                                        • olivierlambertO olivierlambert has marked this topic as solved on
                                        • marcoiM Offline
                                          marcoi
                                          last edited by

                                          looks good
                                          Xen Orchestra, commit 384bb
                                          Master, commit 384bb

                                          thanks for quick fix

                                          1 Reply Last reply Reply Quote 1

                                          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