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

    New XOA setup, cant register

    Scheduled Pinned Locked Moved Xen Orchestra
    18 Posts 4 Posters 2.6k Views 2 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.
    • TheNorthernLightT Offline
      TheNorthernLight
      last edited by TheNorthernLight

      So I've just setup our XOA server, and I cannot register the VM:

      [11:54 09] xoa@xoa:~$ xoa check
      
      We trust you have received the usual lecture from the local System
      Administrator. It usually boils down to these three things:
      
          #1) Respect the privacy of others.
          #2) Think before you type.
          #3) With great power comes great responsibility.
      
      [sudo] password for xoa:
      ✔ Node version
      ✔ xo-server config syntax
      ✖ Appliance registration: [Error: ENOENT: no such file or directory, open '/var/lib/xoa-updater/registration.json'] {
        errno: -2,
        code: 'ENOENT',
        syscall: 'open',
        path: '/var/lib/xoa-updater/registration.json'
      }
      ✔ Disk space for /
      ✔ Disk space for /var
      ✔ Native SMB support
      ✔ Fetching VM UUID
      ✔ XOA version
      ✔ npm version
      ✔ Internet connectivity
      ✔ XOA status
      

      I can ping google, and my local network without issue... ? I should clarify, I have tried registering, but I get the same error.

      TheNorthernLightT 1 Reply Last reply Reply Quote 0
      • TheNorthernLightT Offline
        TheNorthernLight @TheNorthernLight
        last edited by

        @thenorthernlight Seems as when I go look in that directory, the registration.json file is entirely missing.

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

          Have you tried from within the XOA web interface (XOA > Updates section)? It's not clear from your post.

          TheNorthernLightT 1 Reply Last reply Reply Quote 0
          • TheNorthernLightT Offline
            TheNorthernLight @Danp
            last edited by

            @danp Yup. The actual registration.json file, is entirely missing via the CLI. This is literally a new install, so I'm assuming this is a latest build issue (albeit, I did the quick deploy option).

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              rkelley @TheNorthernLight
              last edited by

              @thenorthernlight Maybe you can try running an automated XOA installer? Here on GitHub

              DanpD TheNorthernLightT 2 Replies Last reply Reply Quote 0
              • DanpD Offline
                Danp Pro Support Team @rkelley
                last edited by

                @rkelley XOA, is a prebuilt appliance. What you referenced is a scripted install of XO.

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

                  @danp Yup. I was offering another method to get his XOA running (to see if he would run into the same issue).

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

                    @rkelley You offered a method of getting XO up and running.

                    FWIW, XO is not the same thing as XOA, so that wouldn't solve an issue with not being able to register XOA. 😉

                    R 1 Reply Last reply Reply Quote 0
                    • olivierlambertO Offline
                      olivierlambert Vates 🪐 Co-Founder CEO
                      last edited by

                      You need to register, that's normal to NOT have a registration file if you are not registered 🙂

                      What's the exact issue with registration?

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

                        @danp said in New XOA setup, cant register:

                        @rkelley You offered a method of getting XO up and running.

                        FWIW, XO is not the same thing as XOA, so that wouldn't solve an issue with not being able to register XOA. 😉

                        Yes, I know. But, aside from the registration part, don't they do pretty much the exact same thing? My point is, @TheNorthernLight might not know XOA is a paid product (requires subscription) when he can get XO (built from sources) free.

                        In the end, he is just trying to get the Orchestra server up and running. He can do it via XOA or XO from sources. Unless I totally misunderstand the relationship between the two...

                        DanpD olivierlambertO 2 Replies Last reply Reply Quote 0
                        • DanpD Offline
                          Danp Pro Support Team @rkelley
                          last edited by

                          @rkelley said in New XOA setup, cant register:

                          In the end, he is just trying to get the Orchestra server up and running. He can do it via XOA or XO from sources. Unless I totally misunderstand the relationship between the two...

                          No, you've got it correct. I am left brained, so I like things to be explicit and I don't always follow the conversaion when things are implied. Hope you'll forgive me. 😃

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

                            @danp LOL, no worries dude! I know you are here to help people, and I (for one) really appreciate all the feedback and guidance you give. Hope I didn't come across too argumentative.

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

                              @rkelley 🤗 😆

                              1 Reply Last reply Reply Quote 0
                              • olivierlambertO Offline
                                olivierlambert Vates 🪐 Co-Founder CEO @rkelley
                                last edited by

                                @rkelley It's up to @TheNorthernLight to decide if we want to play with XOA, and it's a very good way to test XO without having to install things manually 🙂

                                Also, to answer the question "My point is, @TheNorthernLight might not know XOA is a paid product (requires subscription) when he can get XO (built from sources) free.". Well, if everybody think like that, XO project would be stopped years ago and XCP-ng wouldn't even exists 🙂

                                TheNorthernLightT 1 Reply Last reply Reply Quote 0
                                • TheNorthernLightT Offline
                                  TheNorthernLight @rkelley
                                  last edited by

                                  @rkelley I already have the compiled XO version working without issue. However we are moving to paid support, so I'm setting up XOA in preparation. This is an entirely new install using the Quick Deploy, so its rather odd that I cant do anything else.

                                  @olivierlambert When I go to register from the web interface, it seems to do nothing. If I try from the CLI, I get the above error message.

                                  R 1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    rkelley @TheNorthernLight
                                    last edited by

                                    @thenorthernlight said in New XOA setup, cant register:

                                    @rkelley I already have the compiled XO version working without issue. However we are moving to paid support, so I'm setting up XOA in preparation. This is an entirely new install using the Quick Deploy, so its rather odd that I cant do anything else.

                                    Gotcha - makes sense. Hope you get your issues sorted out.

                                    1 Reply Last reply Reply Quote 1
                                    • TheNorthernLightT Offline
                                      TheNorthernLight @olivierlambert
                                      last edited by

                                      @olivierlambert If I try xoa-updater --register I get:

                                      connect ECONNREFUSED 127.0.0.1:9001

                                      If I try xoa-updater --upgrade I get:

                                      ⚠ Your xoa-updater service may not be running. Use xoa-updater-start to run it.

                                      If I try xoa-updater-start , I get:

                                      2021-12-10T13:47:05.363Z xoa-updater WARN registration from XenStore {
                                        error: Error: Command failed: xenstore-read vm-data/xoa-updater-credentials
                                        xenstore.Open error: open /proc/xen/xenbus: permission denied
                                      
                                            at ChildProcess.exithandler (child_process.js:319:12)
                                            at ChildProcess.emit (events.js:376:20)
                                            at ChildProcess.patchedEmit [as emit] (/usr/local/lib/node_modules/xoa-upd                               ater/node_modules/@xen-orchestra/log/dist/configure.js:115:17)
                                            at maybeClose (internal/child_process.js:1055:16)
                                            at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) {
                                          killed: false,
                                          code: 1,
                                          signal: null,
                                          cmd: 'xenstore-read vm-data/xoa-updater-credentials'
                                        }
                                      }
                                      2021-12-10T13:47:05.398Z xoa-updater INFO WS Server listening { address: '::', f                               amily: 'IPv6', port: 9001 }
                                      2021-12-10T13:47:05.400Z xoa-updater INFO HTTP Server listening { address: '127.                               0.0.1', family: 'IPv4', port: 9002 }
                                      

                                      I may just try a re-install quickly to see if it helps.

                                      1 Reply Last reply Reply Quote 0
                                      • olivierlambertO Offline
                                        olivierlambert Vates 🪐 Co-Founder CEO
                                        last edited by olivierlambert

                                        You need to restart the service as root/sudoer, eg sudo systemctl restart xoa-updater.

                                        Note that you can have XOA support with our ticket system, even on XOA Free 🙂 If you want someone at Vates dedicated to your issue, please create a ticket!

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post