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

    XO CE 82ed2 and 5c390 update.

    Scheduled Pinned Locked Moved Xen Orchestra
    4 Posts 2 Posters 762 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.
    • P Online
      ph7
      last edited by ph7

      Running the update from docs give me a ERROR run failed: command exited (1), but when checking in xo it gives the right commit

      here is some of the output from cli:

      @xen-orchestra/web:build: vite v6.2.1 building for production...
      src/pages/vm/new.vue:60:63 - error TS2339: Property 'id' does not exist on type 'never'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 60                         <option v-for="vdi in vdis" :key="vdi.id" :value="vdi.id">
      @xen-orchestra/web:build:                                                                  ~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:60:79 - error TS2339: Property 'id' does not exist on type 'never'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 60                         <option v-for="vdi in vdis" :key="vdi.id" :value="vdi.id">
      @xen-orchestra/web:build:                                                                                  ~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:61:34 - error TS2339: Property 'name_label' does not exist on type 'never'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 61                           {{ vdi.name_label }}
      @xen-orchestra/web:build:                                     ~~~~~~~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:121:63 - error TS2339: Property 'id' does not exist on type 'never'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 121                         <option v-for="vdi in vdis" :key="vdi.id" :value="vdi.id">
      @xen-orchestra/web:build:                                                                   ~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:121:79 - error TS2339: Property 'id' does not exist on type 'never'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 121                         <option v-for="vdi in vdis" :key="vdi.id" :value="vdi.id">
      @xen-orchestra/web:build:                                                                                   ~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:122:34 - error TS2339: Property 'name_label' does not exist on type 'never'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 122                           {{ vdi.name_label }}
      @xen-orchestra/web:build:                                      ~~~~~~~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:285:46 - error TS2339: Property '$SR' does not exist on type '{ name_label: string; name_description: string; size: number; sr: Branded<"sr"> | undefined; }'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 285                         <select v-model="vdi.$SR">
      @xen-orchestra/web:build:                                                  ~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:315:47 - error TS2339: Property 'sr' does not exist on type 'string'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 315                         <select v-model="disk.sr">
      @xen-orchestra/web:build:                                                   ~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:329:46 - error TS2339: Property 'name_label' does not exist on type 'string'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 329                       <UiInput v-model="disk.name_label" :placeholder="$t('disk-name')" accent="brand" />
      @xen-orchestra/web:build:                                                  ~~~~~~~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:332:46 - error TS2339: Property 'size' does not exist on type 'string'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 332                       <UiInput v-model="disk.size" :placeholder="$t('size')" accent="brand" />
      @xen-orchestra/web:build:                                                  ~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:335:46 - error TS2339: Property 'name_description' does not exist on type 'string'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 335                       <UiInput v-model="disk.name_description" :placeholder="$t('description')" accent="brand" />
      @xen-orchestra/web:build:                                                  ~~~~~~~~~~~~~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:583:7 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
      @xen-orchestra/web:build:   No index signature with a parameter of type 'string' was found on type '{}'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 583       result[key] = filteredList
      @xen-orchestra/web:build:           ~~~~~~~~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:600:21 - error TS2345: Argument of type '{ name_label: string; name_description: string; sr: Branded<"sr"> | undefined; size: number; }' is not assignable to parameter of type 'string'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 600   vmState.vdis.push({
      @xen-orchestra/web:build:                         ~
      @xen-orchestra/web:build: 601     name_label: (vmState.name || 'disk') + '_' + generateRandomString(4),
      @xen-orchestra/web:build:     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      @xen-orchestra/web:build: ... 
      @xen-orchestra/web:build: 604     size: 0,
      @xen-orchestra/web:build:     ~~~~~~~~~~~~
      @xen-orchestra/web:build: 605   })
      @xen-orchestra/web:build:     ~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:698:5 - error TS2322: Type '({ id: Branded<"vif">; interface: string | Branded<"network">; macAddress: string; } | null)[]' is not assignable to type 'NetworkInterface[]'.
      @xen-orchestra/web:build:   Type '{ id: Branded<"vif">; interface: string | Branded<"network">; macAddress: string; } | null' is not assignable to type 'NetworkInterface'.
      @xen-orchestra/web:build:     Type 'null' is not assignable to type 'NetworkInterface'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 698     return template.VIFs.map(ref => {
      @xen-orchestra/web:build:         ~~~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:701:29 - error TS2677: A type predicate's type must be assignable to its parameter's type.
      @xen-orchestra/web:build:   Property 'id' is missing in type 'NetworkInterface' but required in type '{ id: Branded<"vif">; interface: string | Branded<"network">; macAddress: string; }'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 701     }).filter((vif): vif is NetworkInterface => Boolean(vif))
      @xen-orchestra/web:build:                                 ~~~~~~~~~~~~~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build:   src/pages/vm/new.vue:700:22
      @xen-orchestra/web:build:     700       return vif ? { id: vif.id, interface: getNetwork(vif.$network)?.id || '', macAddress: vif.MAC } : null
      @xen-orchestra/web:build:                              ~~~~~~~~~~
      @xen-orchestra/web:build:     'id' is declared here.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:719:5 - error TS2322: Type 'string | Branded<"network">' is not assignable to type 'Branded<"network">'.
      @xen-orchestra/web:build:   Type 'string' is not assignable to type 'Branded<"network">'.
      @xen-orchestra/web:build:     Type 'string' is not assignable to type '{ [__brand]: "network"; }'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 719     interface: defaultNetwork?.id || '',
      @xen-orchestra/web:build:         ~~~~~~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build:   src/types/xo/new-vm.type.ts:16:3
      @xen-orchestra/web:build:     16   interface: XoNetwork['id']
      @xen-orchestra/web:build:          ~~~~~~~~~
      @xen-orchestra/web:build:     The expected type comes from property 'interface' which is declared here on type '{ interface: Branded<"network">; macAddress: string; }'
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:774:24 - error TS18048: 'vmState.new_vm_template' is possibly 'undefined'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 774   const templateVifs = vmState.new_vm_template.VIFs
      @xen-orchestra/web:build:                            ~~~~~~~~~~~~~~~~~~~~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:785:7 - error TS2698: Spread types may only be created from object types.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 785       ...disk,
      @xen-orchestra/web:build:           ~~~~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:786:29 - error TS2339: Property 'size' does not exist on type 'string'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 786       size: giBToBytes(disk.size),
      @xen-orchestra/web:build:                                 ~~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: src/pages/vm/new.vue:793:18 - error TS18048: 'vif' is possibly 'undefined'.
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 793         device = vif.device
      @xen-orchestra/web:build:                      ~~~
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: 
      @xen-orchestra/web:build: Found 20 errors.
      @xen-orchestra/web:build: 
      error Command failed with exit code 2.
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      @xen-orchestra/web:build: ERROR: "type-check" exited with 2.
      error Command failed with exit code 1.
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      @xen-orchestra/web:build: ERROR: command finished with error: command (/root/xen-orchestra/@xen-orchestra/web) /tmp/yarn--1743427189862-0.2226594809552045/yarn run build exited (1)
      @xen-orchestra/web#build: command (/root/xen-orchestra/@xen-orchestra/web) /tmp/yarn--1743427189862-0.2226594809552045/yarn run build exited (1)
      
       Tasks:    0 successful, 1 total
      Cached:    0 cached, 1 total
        Time:    33.216s 
      Failed:    @xen-orchestra/web#build
      
       ERROR  run failed: command  exited (1)
      error Command failed with exit code 1.
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      

      It seems like there is some problem with the new VM create in v6.

      edit: 3f565 was fine but not 82ed2

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

        I did run the update again

        root@XO:~# cd ~/xen-orchestra/ && git checkout . && git pull --ff-only && yarn && yarn build --force && yarn run turbo run build --filter @xen-orchestra/web && systemctl restart xo-server.service && cd
        

        The commit is latest: a420a
        Screenshot 2025-03-31 at 18-49-10 About.png

        But the /v6 don't show the New VM button
        Screenshot 2025-03-31 at 18-47-49 Xen Orchestra.png

        As it does in XOA 5.105.0
        Screenshot 2025-03-31 at 18-47-19 Xen Orchestra.png

        Have there been a change in this part of the update procedure that has updated the /v6 earlier ?

        yarn run turbo run build --filter @xen-orchestra/web
        
        1 Reply Last reply Reply Quote 0
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          @ph7 no change, but maybe a bug in the build. Try again later today with new commit that are coming on master, it might solve your problem.

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

            Note: just do a yarn && yarn build and it will work. The XO 6 build might be broken, but that's not surprising, it could happens.

            1 Reply Last reply Reply Quote 1
            • P ph7 referenced this topic 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