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

    Cannot upload / import OVAs using xo-upload-ova / XO UI

    Scheduled Pinned Locked Moved Xen Orchestra
    1 Posts 1 Posters 222 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.
    • TheiLLeniumStudiosT Offline
      TheiLLeniumStudios
      last edited by TheiLLeniumStudios

      Hi,
      I'm trying to upload OVAs to 1 of the SRs but I seem to get this weird error when using the xo-upload-ova tool:

      ./dist/index.js --upload ~/Downloads/jammy-server-cloudimg-amd64.ova 19a5b4cc-f353-24ec-12b0-3591d2e39297
      data {
       tables: { 'ubuntu-jammy-22.04-cloudimg.vmdk': Promise { <pending> } },
       disks: {
         vmdisk1: {
           capacity: 10737418240,
           path: 'ubuntu-jammy-22.04-cloudimg.vmdk',
           compression: undefined,
           descriptionLabel: 'No description',
           nameLabel: 'Hard Disk 1',
           position: 0
         }
       },
       networks: [ '11a7bf32-b928-fc41-6142-296e6f94e3ea' ],
       nameLabel: 'ubuntu-jammy-22.04-cloudimg-20230405',
       descriptionLabel: 'Ubuntu Linux (64-bit)',
       nCpus: 2,
       memory: 1073741824
      }
      ERROR Error: 500 Internal Server Error
         at Object.assertSuccess (/home/user/temp/xen-orchestra/node_modules/http-request-plus/index.js:138:19)
         at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
         at async httpRequestPlus (/home/user/temp/xen-orchestra/node_modules/http-request-plus/index.js:205:22)
         at async Object.upload (/home/user/temp/xen-orchestra/@xen-orchestra/upload-ova/dist/index.js:240:26) {
       originalUrl: 'http://xo.illenium.gg/api/D9X3vCSu-Tz01VixcRsh6dhAnZeelmhFfzV9U37POEE',
       url: 'https://xo.illenium.gg/api/D9X3vCSu-Tz01VixcRsh6dhAnZeelmhFfzV9U37POEE'
      }
      āœ– response.text is not a function
      TypeError: response.text is not a function
         at Object.upload (/home/user/temp/xen-orchestra/@xen-orchestra/upload-ova/dist/index.js:253:55)
         at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      

      On XO I don't see any logs corresponding to it. I just see the following:

      2023-04-14T07:30:23.457Z xo:main WARN WebSocket send: {
        error: Error: read ETIMEDOUT
            at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)
            at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
          errno: -110,
          code: 'ETIMEDOUT',
          syscall: 'read'
        }
      }
      2023-04-14T07:40:23.468Z xo:main WARN duplicates of the previous log were hidden { nDuplicates: 556 }
      2023-04-14T07:49:33.523Z xo:main WARN duplicates of the previous log were hidden { nDuplicates: 554 }
      2023-04-14T07:49:33.523Z xo:xo ERROR HTTP request error {
        data: { filter: undefined, limit: undefined },
        error: NodeError: Premature close
            at ServerResponse.onclose (/home/node/xen-orchestra/packages/xo-server/node_modules/readable-stream/lib/internal/streams/end-of-stream.js:116:76)
            at ServerResponse.emit (node:events:525:35)
            at ServerResponse.patchedEmit [as emit] (/home/node/xen-orchestra/@xen-orchestra/log/configure.js:52:17)
            at emitCloseNT (node:_http_server:965:10)
            at TLSSocket.onServerResponseClose (node:_http_server:277:5)
            at TLSSocket.emit (node:events:525:35)
            at TLSSocket.patchedEmit [as emit] (/home/node/xen-orchestra/@xen-orchestra/log/configure.js:52:17)
            at node:net:322:12
            at Socket.done (node:_tls_wrap:588:7)
            at Object.onceWrapper (node:events:628:26)
            at Socket.emit (node:events:525:35)
            at Socket.patchedEmit [as emit] (/home/node/xen-orchestra/@xen-orchestra/log/configure.js:52:17)
            at TCP.<anonymous> (node:net:322:12)
            at TCP.callbackTrampoline (node:internal/async_hooks:130:17),
        fn: 'handleGetAllObjects'
      }
      

      Am I doing something wrong? Oh, and using the XO UI just gets stuck after clicking Import

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