@olivierlambert thanks! for the info @pdonias do you have any idea what could be wrong? cheers Ringo
Posts
-
RE: ldap user auth doesn't work after update to actual version
-
RE: ldap user auth doesn't work after update to actual version
@olivierlambert sadly that didn't help
-
ldap user auth doesn't work after update to actual version
Hi everyone, I have a strange problem. I updated our XO from sources last week, and now LDAP auth is not working anymore
Interesting part is: when I try it on CLI it works
/opt/xo/xo-builds/xen-orchestra-202507030450/packages/xo-server-auth-ldap/dist# node test-cli.js ? URI ldap://company.zone ? fill optional Certificate Authorities? No ? fill optional Check certificate? No ? fill optional Use StartTLS? No ? Base DC=company,DC=zone ? fill optional Credentials? Yes ? Credentials > dn user@company.zone ? Credentials > password XXX ? fill optional User filter? Yes ? User filter (sAMAccountName={{name}}) ? ID attribute (sAMAccountName={{name}}) ? fill optional Synchronize groups? No configuration saved in ./ldap.cache.conf ? Username rgi ? Password [hidden] 2025-07-07T09:37:18.624Z xo:xo-server-auth-ldap DEBUG attempting to bind with as user@company.zone... 2025-07-07T09:37:18.668Z xo:xo-server-auth-ldap DEBUG successfully bound as user@company.zone 2025-07-07T09:37:18.669Z xo:xo-server-auth-ldap DEBUG searching for entries... 2025-07-07T09:37:18.682Z xo:xo-server-auth-ldap DEBUG 1 entries found 2025-07-07T09:37:18.682Z xo:xo-server-auth-ldap DEBUG attempting to bind as CN=bla blubb,OU=company,DC=company,DC=zone 2025-07-07T09:37:18.686Z xo:xo-server-auth-ldap INFO successfully bound as CN=bla blubb,OU=company,DC=company,DC=zone => rgi authenticated 2025-07-07T09:37:18.687Z xo:xo-server-auth-ldap DEBUG { ...
But in the web interface with the same configuration, I get an error
Code: -32000 Message: could not authenticate user { "message": "could not authenticate user", "name": "Error", "stack": "Error: could not authenticate user\n at /opt/xo/xo-builds/xen-orchestra-202507030450/packages/xo-server-auth-ldap/src/index.js:246:15\n at default.testPlugin (file:///opt/xo/xo-builds/xen-orchestra-202507030450/packages/xo-server/src/xo-mixins/plugins.mjs:290:5)\n at Xo.test (file:///opt/xo/xo-builds/xen-orchestra-202507030450/packages/xo-server/src/api/plugin.mjs:109:3)\n at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202507030450/@vates/task/index.js:175:22)\n at Task.run (/opt/xo/xo-builds/xen-orchestra-202507030450/@vates/task/index.js:159:20)\n at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202507030450/packages/xo-server/src/xo-mixins/api.mjs:469:18)" }
any ideas what could be the problem?
cheers Ringo
-
RE: delta backup: two full backups all the time - we don't know why :(
@florent Thanks for the Tip!
The risk of an infinite delta and losing the backup chain if something goes wrong is a bit too high
I bet if something goes wrong exactly in that moment, we need a reliable backup chain
Sadly, we do not have "cheaper" storage for mirror backup, as it's only a small setup for a small company.
This situation is a bit of a pickle if you want one full backup on a certain day, plus deltas, but not two full backups all the time
Is there any chance that this will change in the future to make that situation happen?
-
RE: delta backup: two full backups all the time - we don't know why :(
@Danp very interesting! Thank you! So is it somehow possible that we only do full-backups on Saturday night and only have one fullbackup? Our backup storage is almost full, and we need to make some space, so getting rid of double full backups would be great
cheers Ringo
-
delta backup: two full backups all the time - we don't know why :(
Hi everyone
we have a strange behaviour at the moment, we have a delta backup job configured like that:
- Full backup interval is 0 as we want full backups only on Saturday night
- We have one schedule for Sunday to Friday night with no forced full backup for incremental backups
- We have one schedule for Saturday with Force Fullbackup enabled to make sure only Saturday is the full backup
Screenshot 2025-04-15 at 21.29.47.png
So, now problem is we have two full backups on our remote, and we are getting into storage space trouble
Screenshot 2025-04-15 at 15.11.58.png
Has anybody an idea why this is happening? What do I miss?
cheers and have a great day!
Ringo -
RE: Intermediate cert xen orchestra
@astrugatch you can put it into the same files like the cert itβs called a chain cert then
-
RE: action rolling_update fails with strange error
@julien-f thanks! I have tested it and its working now! cheers Ringo
-
RE: action rolling_update fails with strange error
@julien-f happy to help
let me know when you fixed it and I will test it. cheers Ringo
-
action rolling_update fails with strange error
hi everyone,
I am on the last version of XO and wanted to play around with the REST-AP. scheduling a rolling pool update but I got an error I can't figure out:
curl -X POST -b authenticationToken=XXX https://xo.xxx/rest/v0/pools/5222b44b-e25b-a14d-4da2-c7a0dd8cf59f/actions/rolling_update /rest/v0/tasks/0m1agafzh
the log says:
curl -b authenticationToken=XXX https://xo.xxx/rest/v0/tasks/0m1agafzh { "id": "0m1agafzh", "properties": { "name": "REST: rolling_update pool", "objectId": "5222b44b-e25b-a14d-4da2-c7a0dd8cf59f" }, "start": 1726820415341, "status": "failure", "updatedAt": 1726820415449, "end": 1726820415449, "result": { "message": "Cannot read properties of undefined (reading 'user')", "name": "TypeError", "stack": "TypeError: Cannot read properties of undefined (reading 'user')\n at file:///opt/xo/xo-builds/xen-orchestra-202409201003/packages/xo-server/src/xo-mixins/xen-servers.mjs:704:82\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202409201003/@vates/task/index.js:169:41)\n at Task.run (/opt/xo/xo-builds/xen-orchestra-202409201003/@vates/task/index.js:153:31)\n at XenServers.rollingPoolUpdate (file:///opt/xo/xo-builds/xen-orchestra-202409201003/packages/xo-server/src/xo-mixins/xen-servers.mjs:703:16)\n at rolling_update (file:///opt/xo/xo-builds/xen-orchestra-202409201003/packages/xo-server/src/xo-mixins/rest-api.mjs:634:11)\n at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202409201003/@vates/task/index.js:169:22)\n at Task.run (/opt/xo/xo-builds/xen-orchestra-202409201003/@vates/task/index.js:153:20)" } }
Do you have any idea what the problem is here?
If I start the update via XO everything works without errors.
thanks and have a great day!
cheers Ringo -
RE: VM Graceful shutdown using apc network shutdown
@Studmuffn1134 No we shutdown virtual machines first and xcp-ng servers last.
Puppet is a config-mgmt tool so you don't have to install apcupsd on every machine manually, it can automates stuff like that.
what do you use as nfs storage? normally you can configure to a shared network storage device that it talks to the smart-ups and shuts it self down before its running out of powercheers Ringo
-
RE: VM Graceful shutdown using apc network shutdown
We installed apcupsd in every virtual machine with puppet and shut down test/dev systems early and important systems later. XCP-ng servers also got it installed and shutdown last.
-
xoa api SR space usage
hi team,
we were wondering, is it possible to get the usage of the SRs of a pool from the xoa API so we could monitor it?
also is there a list somewhere online of what information we can get from the xoa API at the moment? I don't want to bother you with my questions all the time, easier to check what's possiblecheers, Ringo
-
RE: XOA REST API create snapshot
@julien-f @olivierlambert thanks guys I will wait until the end of the month
you rock!
-
XOA REST API create snapshot
hi team, thanks for your excellent work! we love xcp-ng and xoa
I've written an ansible playbook to update our virtual machines and I would like to trigger a snapshot of the VM bevor I start the automatic update. is there a way to trigger that snapshot through the rest API? I've searched a bit in documentation and the forum but couldn't find something
cheers Ringo -
RE: xoa token expire date - how can i set it to an later date?
Thanks guys! Absolut Legends
-
RE: xoa token expire date - how can i set it to an later date?
@julien-f thanks for the answer! this will get overwritten with every xo source update right? how about a licensed xoa? cheers Ringo
-
xoa token expire date - how can i set it to an later date?
Hi Team,
i want to use the xoa api to monitor if i have old or too many snapshots connected to an VM, thank you for implementing the feature to your API that it is possible now. I check it via icinga and need an token which expires in 5 years or something and not after a month. when I try to create a user in the webfrontend admin user with a date 5 years or 11 month from now, it logs an error with:too high expiresIn duration: 1956120152841
I also tried to create the user via cli:
#create timestamp for 5 years from now: date +%s -d "5 year" 1831359954 #create user token xo-cli --createToken --allowUnauthorized --expiresIn 1831359954 localhost admin@admin.net Authentication token created 7kkiyVwzgISlOTO2LozsjtVTDPHG71lvqHEtYeSRQf0
but the expiration date of the token is only 30 days from now.
I dont want to create a new token every 30 days and reconfigure our icinga monitoring system to work with a new token, so can you please tell me how I can create a tekoen with higher age and maybe put it into the documentation, i was able to find the "--expiresIn" parameter but no info what you should put in there
cheers guys! Ringo
-
RE: search for snapshots sorted by creation date
@Steve_Sibilia hey, what icinga check are you using for snapshots? do you have any xcp-ng related icinga checks running?