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

    Starting XO error

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    5 Posts 2 Posters 624 Views 1 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.
    • R Offline
      raider600
      last edited by

      Fresh install from source. After Yarn Start I get this and it hangs until I kill it.

      yarn run v1.22.22
      $ node dist/cli.mjs
      2025-02-05T19:45:02.109Z xo:main INFO Configuration loaded.
      2025-02-05T19:45:02.111Z xo:main INFO Web server listening on http://[::]:80
      2025-02-05T19:45:02.361Z xo:mixins:hooks WARN start failure {
        error: Error: spawn xenstore-read ENOENT
            at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19)
            at onErrorNT (node:internal/child_process:484:16)
            at processTicksAndRejections (node:internal/process/task_queues:90:21) {
          errno: -2,
          code: 'ENOENT',
          syscall: 'spawn xenstore-read',
          path: 'xenstore-read',
          spawnargs: [ 'vm' ],
          cmd: 'xenstore-read vm'
        }
      }
      2025-02-05T19:45:02.544Z xo:main INFO Setting up /robots.txt → /root/xen-orchestra/packages/xo-server/robots.txt
      2025-02-05T19:45:02.596Z xo:main INFO Setting up / → /root/xen-orchestra/packages/xo-web/dist
      2025-02-05T19:45:02.596Z xo:main INFO Setting up /v6 → /root/xen-orchestra/@xen-orchestra/web/dist
      2025-02-05T19:45:02.597Z xo:plugin INFO register audit
      2025-02-05T19:45:02.597Z xo:plugin INFO register auth-github
      2025-02-05T19:45:02.598Z xo:plugin INFO register auth-google
      2025-02-05T19:45:02.598Z xo:plugin INFO register auth-ldap
      2025-02-05T19:45:02.598Z xo:plugin INFO register auth-oidc
      2025-02-05T19:45:02.598Z xo:plugin INFO register auth-saml
      2025-02-05T19:45:02.598Z xo:plugin INFO register backup-reports
      2025-02-05T19:45:02.598Z xo:plugin INFO register load-balancer
      2025-02-05T19:45:02.599Z xo:plugin INFO register netbox
      2025-02-05T19:45:02.599Z xo:plugin INFO register perf-alert
      2025-02-05T19:45:02.599Z xo:plugin INFO register sdn-controller
      2025-02-05T19:45:02.599Z xo:plugin INFO register test
      2025-02-05T19:45:02.599Z xo:plugin INFO register test-plugin
      2025-02-05T19:45:02.599Z xo:plugin INFO register transport-email
      2025-02-05T19:45:02.600Z xo:plugin INFO register transport-icinga2
      2025-02-05T19:45:02.600Z xo:plugin INFO register transport-nagios
      2025-02-05T19:45:02.600Z xo:plugin INFO register transport-slack
      2025-02-05T19:45:02.600Z xo:plugin INFO register transport-xmpp
      2025-02-05T19:45:02.600Z xo:plugin INFO register usage-report
      2025-02-05T19:45:02.600Z xo:plugin INFO register web-hooks
      foobar
      2025-02-05T19:45:02.946Z xo:plugin INFO failed register test
      2025-02-05T19:45:02.946Z xo:plugin INFO Cannot read properties of undefined (reading 'default') {
        error: TypeError: Cannot read properties of undefined (reading 'default')
            at Xo.registerPlugin (file:///root/xen-orchestra/packages/xo-server/src/index.mjs:369:18)
      }
      strict mode: required property "discoveryURL" is not defined at "#/anyOf/0" (strictRequired)
      strict mode: missing type "object" for keyword "required" at "#/anyOf/1/properties/advanced" (strictTypes)
      strict mode: required property "authorizationURL" is not defined at "#/anyOf/1/properties/advanced" (strictRequired)
      strict mode: required property "issuer" is not defined at "#/anyOf/1/properties/advanced" (strictRequired)
      strict mode: required property "userInfoURL" is not defined at "#/anyOf/1/properties/advanced" (strictRequired)
      strict mode: required property "tokenURL" is not defined at "#/anyOf/1/properties/advanced" (strictRequired)
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register auth-oidc
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register auth-google
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register auth-github
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register auth-ldap
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register auth-saml
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register netbox
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register test-plugin
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register transport-icinga2
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register transport-email
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register transport-nagios
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register transport-slack
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register transport-xmpp
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register usage-report
      2025-02-05T19:45:02.997Z xo:plugin INFO successfully register web-hooks
      2025-02-05T19:45:02.998Z xo:plugin INFO successfully register load-balancer
      2025-02-05T19:45:02.998Z xo:plugin INFO successfully register backup-reports
      2025-02-05T19:45:03.000Z xo:plugin INFO successfully register audit
      2025-02-05T19:45:03.000Z xo:plugin INFO successfully register perf-alert
      2025-02-05T19:45:03.004Z xo:plugin INFO successfully register sdn-controller
      ^C2025-02-05T19:45:09.999Z xo:main INFO SIGINT caught, closing…
      2025-02-05T19:45:10.002Z xo:main INFO bye :-)
      
      

      I Was poking around. But havent found much.

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

        @raider600 Not sure about the spawn xenstore-read portion, but the rest looks pretty standard to me. Did you attempt to access the webpage while you had it running?

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          raider600 @Danp
          last edited by

          @Danp Oh silly me. It does work. I was expecting it to bring me back to the prompt though.

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

            @raider600 Are you running this in a VM? The only time I've seen anything with xenstore-read is when the customer was trying to run XOA on ESXi.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              raider600 @Danp
              last edited by

              @Danp It wasnt a VM. I dedicated a whole PC to debian and XO. But I was completely clueless as to what I was doing. I am off and running now though. Thank you

              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

              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