XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. probain
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 12
    • Posts 78
    • Groups 0

    probain

    @probain

    36
    Reputation
    13
    Profile views
    78
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    probain Unfollow Follow

    Best posts made by probain

    • RE: Snapshots are no longer being pruned? Commit 58f02

      @florent said in Snapshots are no longer being pruned? Commit 58f02:

      @probain thanks for signaling this, we just merged a fix, that fix it on our labs
      can you test it on your side ?
      https://github.com/vatesfr/xen-orchestra/pull/9202

      I can confirm that it solves the issue in my primary lab. Tomorrow I will be able to re-validate at my second lab as well.
      Thank you for such a quick fix!

      posted in Backup
      P
      probain
    • Ansible Role - Install XO from source - Now available

      I've mentioned it on the forums once or twice. And after @wezke explicitly asked for it. I decided to take the time to finally go ahead and publish an Ansible-role for installing XO from source.

      Benefits from using any of the many installation-scripts:

      Scripts are often quite big. Making them hard to validate and scrutinize for security reasons.

      Ansible (imho) is easier to read and see what it does.

      If you are orchestrating your environment through Ansible already, this should drop in semi-nicely

      This follows the official steps from the Xen-Orchestra docs, except for ONE main thing. This does not run the xo-server as root. In the hopes that it should raise security just a tiny bit more.

      Note and Disclaimer!
      Do your own validation of the source. Do NOT take my word for how this works. And use it at your own risk.
      Now, with all disclaimers out of the way. Feel free to use as you'd like. I hope the community takes kindly to this.

      https://github.com/cloudrootab/ansible_role_xoce

      PS: This is ported from my private role. But should work. See the disclaimer above!
      PPS: This is a re-post from a now deleted forum-post, where I mistakenly placed the topic in XCP-NG/Installation.

      posted in Infrastructure as Code
      P
      probain
    • RE: 🛰️ XO 6: dedicated thread for all your feedback!

      @olivierlambert said in 🛰️ XO 6: dedicated thread for all your feedback!:

      So I quickly experimented different "identities"/themes.

      Here is "Nord" in dark mode:

      Please add this. This was gorgeous!

      posted in Xen Orchestra
      P
      probain
    • RE: Backblaze as Remote error Unsupported header 'x-amz-checksum-mode' received for this API call.

      @florent said in Backblaze as Remote error Unsupported header 'x-amz-checksum-mode' received for this API call.:

      ,
      requestChecksumCalculation: "WHEN_REQUIRED",
      responseChecksumValidation: "WHEN_REQUIRED"

      I (previously as @jr-m4) just tried the patch you suggested. And I can confirm that this does indeed make the backup complete successfully!
      Great work finding a solution that quicklly!

      posted in Xen Orchestra
      P
      probain
    • RE: All drop-down options are empty

      @JamfoFL

      @Danp responded to similar/same issue here:
      https://xcp-ng.org/forum/post/89858

      posted in Xen Orchestra
      P
      probain
    • RE: Server Locks Up Periodically with ASRock X570D4I-2T AMD Ryzen 9 3900X and Intel X550-AT2

      @R2rho
      Faulty gear always sucks. But who would've guessed that two separate systems would produce the same problems. That is highly unlikely, but never impossible.

      Good luck with the RMA

      posted in XCP-ng
      P
      probain
    • RE: Snapshots are no longer being pruned? Commit 58f02

      For completeness sake. Confirming that the fix also works in my second lab as well.

      posted in Backup
      P
      probain
    • RE: Snapshots are no longer being pruned? Commit 58f02

      I can now reliably recreate the behavior between the commits mentioned above.
      As I expected, the problems with finding a "known good" was due to user error

      posted in Backup
      P
      probain
    • RE: Snapshots are no longer being pruned? Commit 58f02

      @AlexD2006

      Thanks for your input.

      So I believe I've managed to find which commit breaks my snapshot-pruning.

      If I use the commit: 8a390057b648205b7ae2c6ccc2a0bc78dc624e08 - Then the pruning works.

      However, if I go to the next one: 05c6f87a1212e81c51e63f6a585b9e97a3c1bfb2- Pruning breaks and snapshots are no longer being deleted as retention says they should.

      I can consistently and reliably re-create the different scenarios in my first lab. This doesn't explain why I'm seing inconsistent results in my other lab. But that might be user error, that I have to double check tomorrow!

      Perhaps you could try to see if you see the same behaviour between the commits?

      posted in Backup
      P
      probain
    • RE: Snapshots are no longer being pruned? Commit 58f02

      It might be that my known good, isn't that good at all.

      I can replicate the problem in my second lab as well. But it is being affected even with commits older than a101e.
      I'm still trying to find and provide better/useful information.

      posted in Backup
      P
      probain

    Latest posts made by probain

    • RE: 2FA doesn't load graphics properly after XO6 went default (XO from source)

      @olivierlambert said in 2FA doesn't load graphics properly after XO6 went default (XO from source):

      Does it work OK without the proxy?

      Testing on my secondary lab, and the results are the same. Secondary lab runs privileged service, 443 without proxy.

      posted in Xen Orchestra
      P
      probain
    • 2FA doesn't load graphics properly after XO6 went default (XO from source)

      Since XO6 went default. The 2FA has been a bit wonky. See screenshot from chrome console.

      Logins work as they should though. So there is no problem there.

      My setup runs on port 8443, behind a haproxy.
      51517081-5efa-49fa-b95a-ca848cc6fc5e-image.png

      posted in Xen Orchestra
      P
      probain
    • RE: Ansible Role - Install XO from source - Now available

      @MajorP93

      Thanks for your feedback. I'll look into it over the christmas hollidays

      posted in Infrastructure as Code
      P
      probain
    • RE: XO5 breaks after defaulting to XO6 (from source)

      @MathieuRA said in XO5 breaks after defaulting to XO6 (from source):

      @probain branch mra-fix-secure-port 🤞

      Success!! Amazing. Thank you so much

      posted in Xen Orchestra
      P
      probain
    • RE: XO5 breaks after defaulting to XO6 (from source)

      @MathieuRA said in XO5 breaks after defaulting to XO6 (from source):

      @probain I will prepare a branch for a potential fix, so you can still use the 8443 port

      Absolutely fantastic. I will test it as soon as possible to help out however I can.

      Cheers!

      posted in Xen Orchestra
      P
      probain
    • RE: XO5 breaks after defaulting to XO6 (from source)

      @MathieuRA said in XO5 breaks after defaulting to XO6 (from source):

      @probain If you can, it will help a lot. Thanks

      I remember why I chose to use 8443. It is because the xo-user running the service isn't running with root privileges. So doing it with an ordinary user was way more difficult to setup than just use 8443.

      But...
      Switching over so that service-user runs as root. 443 becomes possible. And things work again as expected. However, I really did like not running xo-server as root.

      posted in Xen Orchestra
      P
      probain
    • RE: XO5 breaks after defaulting to XO6 (from source)

      @MathieuRA said in XO5 breaks after defaulting to XO6 (from source):

      @probain

      Web server listening on https://[::]:8443

      Well, I may have an idea about your issue.
      The code is looking for the port 443 to know if he should use secure protocol ('wss:' / 'https:')
      Is your second lab also in https on the 8443 port?

      Hmm, no the second lab is more "standard" and uses 443.
      I can try and set 443 on the primary lab as well to test.

      posted in Xen Orchestra
      P
      probain
    • RE: XO5 breaks after defaulting to XO6 (from source)

      @MathieuRA said in XO5 breaks after defaulting to XO6 (from source):

      @probain That's what I was looking for.

      It's strange you are saying you receive an error: ("Cannot get /") because logs show / is mounted and exposes XO6.

      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.452Z xo:main INFO Setting up / → /opt/xen-orchestra/@xen-orchestra/web/dist

      Even when I did the same "fixes" that helped my second lab.

      The only difference with your second lab is that you use HAProxy?
      Both are listening on IPv6?

      I reverted those changes from above with the [http.mounts] and [http.proxies] parts. Since that broke things even more. Sorry, I should've clarified that. I've pretty much reverted all of my troubleshooting experiments. In hopes to make it more clear if certain troubleshooting steps are needed.

      My primary lab uses Haproxy. The second one doesn't (second lab doesn't run unprivilged either).

      The logs I shared, were from the latest commit 32b3c0b5fcba17585566f0981ef62bef74c56451 (I believe).

      posted in Xen Orchestra
      P
      probain
    • RE: XO5 breaks after defaulting to XO6 (from source)

      @MathieuRA said in XO5 breaks after defaulting to XO6 (from source):

      @probain Can you provide me with the logs from xo-server at its launch?

      I would love to. However, I'm unsure which logs you're refering to.
      Since I can't work with XO5. The logs from therein aren't available.

      However. Doing a journalctl -ef when doing a systemctl start xo-server results in

      Dec 16 16:54:00 xo sudo[50689]: pam_unix(sudo:session): session opened for user root(uid=0) by REDACTED(uid=1002)
      Dec 16 16:54:00 xo systemd[1]: Started xo-server.service - XO Server.
      Dec 16 16:54:00 xo sudo[50689]: pam_unix(sudo:session): session closed for user root
      Dec 16 16:54:02 xo xo-server[50694]: 2025-12-16T15:54:02.774Z xo:main WARN could not detect current commit {
      Dec 16 16:54:02 xo xo-server[50694]:   error: Error: Command failed: git rev-parse --short HEAD
      Dec 16 16:54:02 xo xo-server[50694]:   fatal: detected dubious ownership in repository at '/opt/xen-orchestra'
      Dec 16 16:54:02 xo xo-server[50694]:   To add an exception for this directory, call:
      Dec 16 16:54:02 xo xo-server[50694]:
      Dec 16 16:54:02 xo xo-server[50694]:           git config --global --add safe.directory /opt/xen-orchestra
      Dec 16 16:54:02 xo xo-server[50694]:
      Dec 16 16:54:02 xo xo-server[50694]:       at genericNodeError (node:internal/errors:983:15)
      Dec 16 16:54:02 xo xo-server[50694]:       at wrappedFn (node:internal/errors:537:14)
      Dec 16 16:54:02 xo xo-server[50694]:       at ChildProcess.exithandler (node:child_process:417:12)
      Dec 16 16:54:02 xo xo-server[50694]:       at ChildProcess.emit (node:events:519:28)
      Dec 16 16:54:02 xo xo-server[50694]:       at ChildProcess.patchedEmit [as emit] (/opt/xen-orchestra/@xen-orchestra/log/configure.js:52:17)
      Dec 16 16:54:02 xo xo-server[50694]:       at maybeClose (node:internal/child_process:1101:16)
      Dec 16 16:54:02 xo xo-server[50694]:       at Socket.<anonymous> (node:internal/child_process:456:11)
      Dec 16 16:54:02 xo xo-server[50694]:       at Socket.emit (node:events:519:28)
      Dec 16 16:54:02 xo xo-server[50694]:       at Socket.patchedEmit [as emit] (/opt/xen-orchestra/@xen-orchestra/log/configure.js:52:17)
      Dec 16 16:54:02 xo xo-server[50694]:       at Pipe.<anonymous> (node:net:346:12)
      Dec 16 16:54:02 xo xo-server[50694]:       at Pipe.callbackTrampoline (node:internal/async_hooks:130:17) {
      Dec 16 16:54:02 xo xo-server[50694]:     code: 128,
      Dec 16 16:54:02 xo xo-server[50694]:     killed: false,
      Dec 16 16:54:02 xo xo-server[50694]:     signal: null,
      Dec 16 16:54:02 xo xo-server[50694]:     cmd: 'git rev-parse --short HEAD'
      Dec 16 16:54:02 xo xo-server[50694]:   }
      Dec 16 16:54:02 xo xo-server[50694]: }
      Dec 16 16:54:02 xo xo-server[50694]: 2025-12-16T15:54:02.777Z xo:main INFO Starting xo-server v5.194.2 (https://github.com/vatesfr/xen-orchestra/commit/7c1764a39)
      Dec 16 16:54:02 xo xo-server[50694]: 2025-12-16T15:54:02.794Z xo:main INFO Configuration loaded.
      Dec 16 16:54:02 xo xo-server[50694]: 2025-12-16T15:54:02.818Z xo:main INFO Web server listening on https://[::]:8443
      Dec 16 16:54:02 xo xo-server[50694]: 2025-12-16T15:54:02.819Z xo:main INFO Group changed to xo-user
      Dec 16 16:54:02 xo xo-server[50694]: 2025-12-16T15:54:02.820Z xo:main INFO User changed to xo-user
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.296Z xo:mixins:hooks WARN start failure {
      Dec 16 16:54:03 xo xo-server[50694]:   error: Error: spawn xenstore-read ENOENT
      Dec 16 16:54:03 xo xo-server[50694]:       at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
      Dec 16 16:54:03 xo xo-server[50694]:       at onErrorNT (node:internal/child_process:483:16)
      Dec 16 16:54:03 xo xo-server[50694]:       at processTicksAndRejections (node:internal/process/task_queues:90:21) {
      Dec 16 16:54:03 xo xo-server[50694]:     errno: -2,
      Dec 16 16:54:03 xo xo-server[50694]:     code: 'ENOENT',
      Dec 16 16:54:03 xo xo-server[50694]:     syscall: 'spawn xenstore-read',
      Dec 16 16:54:03 xo xo-server[50694]:     path: 'xenstore-read',
      Dec 16 16:54:03 xo xo-server[50694]:     spawnargs: [ 'vm' ],
      Dec 16 16:54:03 xo xo-server[50694]:     cmd: 'xenstore-read vm'
      Dec 16 16:54:03 xo xo-server[50694]:   }
      Dec 16 16:54:03 xo xo-server[50694]: }
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.302Z xo:mixins:hooks WARN start failure {
      Dec 16 16:54:03 xo xo-server[50694]:   error: Error: Command failed with exit code 1: losetup -D
      Dec 16 16:54:03 xo xo-server[50694]:   losetup: /dev/loop1: detach failed: Permission denied
      Dec 16 16:54:03 xo xo-server[50694]:   losetup: /dev/loop4: detach failed: Permission denied
      Dec 16 16:54:03 xo xo-server[50694]:   losetup: /dev/loop2: detach failed: Permission denied
      Dec 16 16:54:03 xo xo-server[50694]:   losetup: /dev/loop0: detach failed: Permission denied
      Dec 16 16:54:03 xo xo-server[50694]:   losetup: /dev/loop5: detach failed: Permission denied
      Dec 16 16:54:03 xo xo-server[50694]:   losetup: /dev/loop3: detach failed: Permission denied
      Dec 16 16:54:03 xo xo-server[50694]:       at makeError (file:///opt/xen-orchestra/packages/xo-server/node_modules/execa/lib/error.js:60:11)
      Dec 16 16:54:03 xo xo-server[50694]:       at handlePromise (file:///opt/xen-orchestra/packages/xo-server/node_modules/execa/index.js:124:26) {
      Dec 16 16:54:03 xo xo-server[50694]:     shortMessage: 'Command failed with exit code 1: losetup -D',
      Dec 16 16:54:03 xo xo-server[50694]:     command: 'losetup -D',
      Dec 16 16:54:03 xo xo-server[50694]:     escapedCommand: 'losetup -D',
      Dec 16 16:54:03 xo xo-server[50694]:     exitCode: 1,
      Dec 16 16:54:03 xo xo-server[50694]:     signal: undefined,
      Dec 16 16:54:03 xo xo-server[50694]:     signalDescription: undefined,
      Dec 16 16:54:03 xo xo-server[50694]:     stdout: '',
      Dec 16 16:54:03 xo xo-server[50694]:     stderr: 'losetup: /dev/loop1: detach failed: Permission denied\n' +
      Dec 16 16:54:03 xo xo-server[50694]:       'losetup: /dev/loop4: detach failed: Permission denied\n' +
      Dec 16 16:54:03 xo xo-server[50694]:       'losetup: /dev/loop2: detach failed: Permission denied\n' +
      Dec 16 16:54:03 xo xo-server[50694]:       'losetup: /dev/loop0: detach failed: Permission denied\n' +
      Dec 16 16:54:03 xo xo-server[50694]:       'losetup: /dev/loop5: detach failed: Permission denied\n' +
      Dec 16 16:54:03 xo xo-server[50694]:       'losetup: /dev/loop3: detach failed: Permission denied',
      Dec 16 16:54:03 xo xo-server[50694]:     cwd: '/',
      Dec 16 16:54:03 xo xo-server[50694]:     failed: true,
      Dec 16 16:54:03 xo xo-server[50694]:     timedOut: false,
      Dec 16 16:54:03 xo xo-server[50694]:     isCanceled: false,
      Dec 16 16:54:03 xo xo-server[50694]:     killed: false
      Dec 16 16:54:03 xo xo-server[50694]:   }
      Dec 16 16:54:03 xo xo-server[50694]: }
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.578Z xo:main INFO Setting up /robots.txt → /opt/xen-orchestra/packages/xo-server/robots.txt
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.769Z xo:plugin INFO register audit
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.770Z xo:plugin INFO register auth-github
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.770Z xo:plugin INFO register auth-google
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.770Z xo:plugin INFO register auth-ldap
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.771Z xo:plugin INFO register auth-oidc
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.771Z xo:plugin INFO register auth-saml
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.771Z xo:plugin INFO register backup-reports
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.772Z xo:plugin INFO register load-balancer
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.772Z xo:plugin INFO register netbox
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.772Z xo:plugin INFO register perf-alert
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.773Z xo:plugin INFO register sdn-controller
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.773Z xo:plugin INFO register test-plugin
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.773Z xo:plugin INFO register transport-email
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.774Z xo:plugin INFO register transport-icinga2
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.774Z xo:plugin INFO register transport-nagios
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.774Z xo:plugin INFO register transport-slack
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.775Z xo:plugin INFO register transport-xmpp
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.775Z xo:plugin INFO register usage-report
      Dec 16 16:54:03 xo xo-server[50694]: 2025-12-16T15:54:03.775Z xo:plugin INFO register web-hooks
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.422Z xo:plugin INFO successfully register auth-github
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register auth-google
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register auth-ldap
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register test-plugin
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register transport-icinga2
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register auth-oidc
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register netbox
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register transport-nagios
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register transport-slack
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register transport-xmpp
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register web-hooks
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.423Z xo:plugin INFO successfully register load-balancer
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.424Z xo:plugin INFO successfully register usage-report
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.424Z xo:plugin INFO successfully register backup-reports
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.424Z xo:plugin INFO successfully register auth-saml
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.424Z xo:plugin INFO successfully register transport-email
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.424Z xo:plugin INFO successfully register perf-alert
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.429Z xo:plugin INFO successfully register audit
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.451Z xo:plugin INFO successfully register sdn-controller
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.452Z xo:main INFO Setting up /v5 → /opt/xen-orchestra/packages/xo-web/dist
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.452Z xo:main INFO Setting up /v6 → /opt/xen-orchestra/@xen-orchestra/web/dist
      Dec 16 16:54:04 xo xo-server[50694]: 2025-12-16T15:54:04.452Z xo:main INFO Setting up / → /opt/xen-orchestra/@xen-orchestra/web/dist
      

      Update:
      I have no idea why your PR is shown.

      0 MathieuRA committed to vatesfr/xen-orchestra
      fix(xo-server): fix proxied urls when using ssl (#9314)
      
      introduced by 03cea8b24d48e685a2a5a04a39db70d67d87eca0
      
      Fixed [forum#11681](https://xcp-ng.org/forum/topic/11681/xo5-breaks-after-defaulting-to-xo6-from-source/16?_=1765875445829)
      posted in Xen Orchestra
      P
      probain
    • RE: XO5 breaks after defaulting to XO6 (from source)

      @MathieuRA said in XO5 breaks after defaulting to XO6 (from source):

      @probain Do you have any xo-server logs?

      can you fetch /rest/v0/gui-routes endpoint?

      This is what results on the page

      {
        "xo5": "/v5",
        "xo6": "/v6"
      }
      
      posted in Xen Orchestra
      P
      probain