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

    Import from VMware err: name: AssertionError: Expected "actual" to be strictly unequal to: undefined

    Scheduled Pinned Locked Moved Migrate to XCP-ng
    11 Posts 6 Posters 701 Views 5 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.
    • nick.lloydN Offline
      nick.lloyd @sshughes
      last edited by nick.lloyd

      @sshughes Can/have you run updates on the XO VM itself, then run the XOInstaller script to check for XO updates? That's what fixes issues for me most of the time.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sshughes @nick.lloyd
        last edited by

        @Nick-085
        Just did. Reports nothing new.
        Import fails with same error.

        [info] Checking current node.js version
        
        [ok] node.js version already on 20, checking updates
        
        [info] Fetching Xen Orchestra source code
        
        [info] Creating install directory: /opt/xo/xo-builds/xen-orchestra-202406132228
        
        [info] No changes to Xen Orchestra since previous install. Skipping build. Use the --force to update anyway.
        [info] Cleaning up install directory: /opt/xo/xo-builds/xen-orchestra-202406132228
        
        S P 2 Replies Last reply Reply Quote 0
        • S Offline
          sshughes @sshughes
          last edited by

          @sshughes also ran apt-get update apt-get upgrade, but again... I installed this VM less than 12 hours ago, so nothing new.

          nick.lloydN 1 Reply Last reply Reply Quote 0
          • nick.lloydN Offline
            nick.lloyd @sshughes
            last edited by

            @sshughes Hmmm, that's frustrating. If I remember correctly, that is a Python error. It might be something with the Python script itself. Is the VM off when you're trying to import it? It shouldn't matter, but just something to try.

            1 Reply Last reply Reply Quote 0
            • P Offline
              ph7 @sshughes
              last edited by

              @sshughes
              Shoundnt node.js be 18 ?

              abudefA DanpD 2 Replies Last reply Reply Quote 0
              • abudefA Offline
                abudef @ph7
                last edited by

                @ph7 I also have version 20, but no problem importing from VMware 🤔

                74ce8389-8fbd-4d37-bf73-fa2c9d63bfdb-obrazek.png

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

                  @ph7 said in Import from VMware err: name: AssertionError: Expected "actual" to be strictly unequal to: undefined:

                  Shoundnt node.js be 18 ?

                  FYI, that is no longer required.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sshughes
                    last edited by

                    above log entry is result of using XO web UI to import from ESXi and is the 3rd vm we tried to import. The first two imports were successful.
                    I used ronivay's installer and chose to have xo-server run as non-root user.
                    Decided to try using xo-cli vm.importFromEsxi.
                    I SSH to the XO VM as root and figure out how to get xo-cli register to work.
                    Using parameters displayed in the above log entry I think I was able to properly construct the xo-cli vm.importFromEsxi command as follows:

                    xo-cli vm.importFromEsxi host=10.16.75.5 user=root password=****** sslVerify=false vm=ParishSVR2 sr=2a160b8d-11ec-776b-7ce9-0af0ceb540c7 network=eddfca3c-8b32-7cf8-510d-debef0bff592 template=b6d0600e-677b-376a-507e-8f9dda9424cb-17a818b5-20a6-4d34-a7ef-320da9ef4c14
                    

                    The result is a different error. Does this offer any more help as to what went wrong?

                    ✖ JsonRpcError: can't get config of object ParishSVR2 (Type: VirtualMachine)
                        at Peer._callee$ (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/json-rpc-peer/dist/index.js:139:44)
                        at tryCatch (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
                        at Generator.<anonymous> (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
                        at Generator.next (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
                        at asyncGeneratorStep (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
                        at _next (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
                        at /opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
                        at new Promise (<anonymous>)
                        at Peer.<anonymous> (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12)
                        at Peer.exec (/opt/xo/xo-builds/xen-orchestra-202406131610/node_modules/json-rpc-peer/dist/index.js:182:20) {
                      code: -32000,
                      data: {
                        message: "can't get config of object ParishSVR2 (Type: VirtualMachine)",
                        name: 'Error',
                        stack: "Error: can't get config of object ParishSVR2 (Type: VirtualMachine)\n" +
                          '    at Esxi.fetchProperty (file:///opt/xo/xo-builds/xen-orchestra-202406131610/@xen-orchestra/vmware-explorer/esxi.mjs:447:13)\n' +
                          '    at processTicksAndRejections (node:internal/process/task_queues:95:5)',
                        succeeded: {}
                      }
                    }
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sshughes @sshughes
                      last edited by

                      @sshughes Pretty certain there is nothing wrong with XO. Seems there is a problem with this VM on ESX. vSphere can perform Export on the other VMs, but not the one in question. Task list says an Export is running, but we never get the prompt to select components for export. Thanks. If I learn any more, will report back.

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

                        That's interesting, thanks for the feedback @sshughes and keep us posted!

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