Can't edit XO metatata backup config
-
When I edit the XO metatadata backup schedule and click save I get the following message:
metadataBackup.editJob { "id": "acc2be4a-26c5-477f-9d0f-a994bfecf706", "name": "NEW Xen Orchestra Config", "pools": null, "remotes": { "id": "21d9217a-4764-4c3f-8580-95fd4ff1b87c" }, "settings": { "564e7924-75b0-4e94-ba7c-5eacfb1b0f83": { "retentionXoMetadata": 24 } }, "xoMetadata": true } { "message": "Cannot read property 'constructor' of null", "name": "TypeError", "stack": "TypeError: Cannot read property 'constructor' of null at Object.object (/usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:141:50) at _simpleType (/usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:156:23) at /usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:234:12 at Array.some (<anonymous>) at Validation.type (/usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:233:28) at Validation.<anonymous> (/usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:650:12) at Array.forEach (<anonymous>) at Validation._validate (/usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:648:21) at Validation.properties (/usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:472:10) at Validation.<anonymous> (/usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:650:12) at Array.forEach (<anonymous>) at Validation._validate (/usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:648:21) at Validation.validate (/usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:641:15) at Object.validate (/usr/local/lib/node_modules/xo-server/node_modules/schema-inspector/lib/schema-inspector.js:1579:41) at Object.call (/usr/local/lib/node_modules/xo-server/src/xo-mixins/api.js:63:34) at Api.callApiMethod (/usr/local/lib/node_modules/xo-server/src/xo-mixins/api.js:300:19) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5)" }
I can create a new backup job, but not edit it.
-
It should be fixed now
-
Pinging @badrAZ
-
@s-pam I checked mine and didn't encounter this issue. Sounds like an issue with the original backup job. I would just delete the job and recreate it.
-
@danp said in Can't edit XO metatata backup config:
@s-pam I checked mine and didn't encounter this issue. Sounds like an issue with the original backup job. I would just delete the job and recreate it.
It is what I did (hence the 'NEW' in the label)
Could it be because I have XOA connected to two pools? The old pool is somewhat broken though (my other issues threads about NFS)
-
@s-pam I missed the part about not being able to edit the new job. Are you running XOA? If so, which release channel?
-
@danp said in Can't edit XO metatata backup config:
@s-pam I missed the part about not being able to edit the new job. Are you running XOA? If so, which release channel?
XOA 5.58.0 with the "Latest" release channel
-
@s-pam Ok, I get the error as well when I unselect the
Pool Metadata
option. -
Hi,
Thank you for your report.
The bug is introduced by the recent version of a library that we are using.
We'll fix it ASAP.
-
Thanks for the report guys!
-
It should be fixed now
-
@olivierlambert said in Can't edit XO metatata backup config:
It should be fixed now
Yes it works! Good job!
-
Thanks @badrAZ for the fix!