XO (self build) tasks spamming
-
IDK when it started but my XO self build is spaming the tasks list. it keeps growing. I tried to delete from the gui doesnt help. when i have all selected and hit the delete button the list just grows. a few hundred.
i tried the following- xo-cli rest del tasks
- update the lastest build (Xen Orchestra, commit c1c3b)
- reboot XO host and restart webservice
- disconnected hosts to see if it stops - it did not.
-
Fix available on master
-
@marcoi You will likely need to do some more investigation on your side as I'm not able to reproduce it here.
-
@Danp what do you need me to do?
-
@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?
-
-
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 c1c3btext 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.
-
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" } }
-
@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.
-
-
It's been reproduced internally and will be fixed ASAP
-
Hi.
A PR is open: https://github.com/vatesfr/xen-orchestra/pull/8900If anyone can confirm that the issue is fixed, that would be great. Thanks.
-
Thank you for the PR @MathieuRA !
-
@olivierlambert On my test instance which is admittedly not very busy (only 2 hosts) this fixed the issue!
-
Thanks for the feedback!
-
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.
-
@marcoi in a branch at the moment. Ask your script provider to tell you how to switch to a branch
-
@olivierlambert
Okay i got it I am running
Xen Orchestra, commit 09f67
Master, commit 35428I will watch it and see how the tasks issue goes
Update 2: been about 20 mins and nothing showing up in the task list.
-
I just updated to Commit d1577 and I seam to have the bug now.
-
@acebmxer The fix is inside the branch
mra-rest-fix-task
, not yet on master. -
Fix available on master
-
Commit a4410 fix task spam issue.
-
O olivierlambert marked this topic as a question
-
O olivierlambert has marked this topic as solved