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

    Getting errors when migrating 4 out 5 VMGuest

    Scheduled Pinned Locked Moved Advanced features
    50 Posts 5 Posters 12.9k Views 3 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.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      Thanks! That might be a bug. We are about to make a release (tomorrow) but we'll see if we can reproduce it quickly. Adding @Melissa-FR or @MathieuRA in the loop 👍

      1 Reply Last reply Reply Quote 0
      • MathieuRAM Offline
        MathieuRA Vates 🪐 XO Team @ashinobi
        last edited by

        Hi 🙂
        I tried to reproduce the steps on different VMs, but I was not able to reproduce the issue.

        Capture d’écran de 2024-02-01 10-40-07.png Capture d’écran de 2024-02-01 10-40-14.png
        Capture d’écran de 2024-02-01 10-43-42.png

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

          @ashinobi do you have some VMs you try to migrate with ISO inserted?

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            ashinobi @olivierlambert
            last edited by

            @olivierlambert

            Yes 2 vm has guest vm tools iso inserted the other 3 doesn't have any iso.

            @MathieuRA

            Thanks for testing, that is really strange it is consistent on my setup. Do you need more information on my setup just incase it is something unique on how I configure my XCP-NG and Xen Orchestra?

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

              That's likely because of the ISO. Eject them, and try again.

              1 Reply Last reply Reply Quote 0
              • A Offline
                ashinobi @MathieuRA
                last edited by

                @MathieuRA

                Disk name for your Alpine 3.13 vmguest machine. Is that using default name? What I notice (not sure if it will be relevant or not) is the ones that are not working. All of them I renamed disk name (XenOrchestra, Unifi-Controller, Mail-Client and HomeAssistant). The one that is working is Windows 10 (64-bit)_itaze which I didn't rename.

                I am now deploying 2 new VM's to test this theory and see if that is the one causing problem. I will update this thread once done with the test.

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

                  You should test first to eject all the ISO and migrate 🙂

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    ashinobi @olivierlambert
                    last edited by

                    @olivierlambert

                    I did that as mention 3 of the vm's doesn't have iso mounted and it still experience the problem.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      ashinobi @MathieuRA
                      last edited by

                      @MathieuRA

                      Done with the testing and it did not make any difference. Probably there is something on my setup that maybe causing this problem since this is only happening on my setup it maybe a problem on my setup.

                      Any advise what logs should I monitor to find out what maybe causing this problem?

                      MathieuRAM 2 Replies Last reply Reply Quote 0
                      • MathieuRAM Offline
                        MathieuRA Vates 🪐 XO Team @ashinobi
                        last edited by

                        While investigating the code, I found something unexpected. We don't have exactly the same behavior for migrating from the Home/VM view and from the VM view itself.
                        I will try to fix this and it might solve your problem.
                        I will come back to you when I have opened the branch to allow you to do some tests on it.

                        1 Reply Last reply Reply Quote 1
                        • MathieuRAM Offline
                          MathieuRA Vates 🪐 XO Team @ashinobi
                          last edited by

                          @ashinobi Several bug fixes related to VM migration are on the xo5/fix-bulk-migration branch. Could you please test to see if they solve your issue?

                          A 1 Reply Last reply Reply Quote 1
                          • A Offline
                            ashinobi @MathieuRA
                            last edited by

                            @MathieuRA

                            Is the fix part of XO commi 2498a? If not how can I download the update. My apologies if that I am not familiar.

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

                              @ashinobi Switch to the target branch with the command git checkout xo5/fix-bulk-migration. Then rebuild using the standard yarn; yarn build.

                              A 1 Reply Last reply Reply Quote 0
                              • A Offline
                                ashinobi @Danp
                                last edited by ashinobi

                                @Danp said in Getting errors when migrating 4 out 5 VMGuest:

                                xo5/fix-bulk-migration

                                Hi, Danp.

                                Thank you for replying to me, my apologies but I am still new to all of this and I am trying to learn. If I execute the command you gave me I get the below error:

                                admin@xen-orchestra:~/XenOrchestraInstallerUpdater$ sudo git checkout xo5/fix-bulk-migration
                                [sudo] password for admin:
                                error: pathspec 'xo5/fix-bulk-migration' did not match any file(s) known to git
                                

                                I have installed XO using XenOrchestra Installer Updater script, would this cause the problem?

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

                                  It looks like you are using the installation script from @ronivay. I've never used it, so you may get better advice from one of the other forum members. I suspect that you weren't in the correct directory at the time you issued that command.

                                  This is what it looks like on my end --

                                  root@ubuntuxo:/home/danpollak# cd /opt/xen-orchestra/
                                  root@ubuntuxo:/opt/xen-orchestra# git checkout xo5/fix-bulk-migration
                                  branch 'xo5/fix-bulk-migration' set up to track 'origin/xo5/fix-bulk-migration'.
                                  Switched to a new branch 'xo5/fix-bulk-migration'
                                  root@ubuntuxo:/opt/xen-orchestra# git checkout master
                                  Switched to branch 'master'
                                  
                                  A 1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    ashinobi @Danp
                                    last edited by ashinobi

                                    @Danp

                                    Hi, Danp.

                                    Thanks for the info, since I am using the script, the location for my installation is different:

                                    admin@xen-orchestra:/opt/xo/xo-src/xen-orchestra$ ls
                                    AGPL.txt         book.json     CHANGELOG.pre-2022.md    CODE_OF_CONDUCT.md  ISC.txt     package.json  PULL_REQUEST_TEMPLATE.md  scripts      turbo.json  @xen-orchestra
                                    babel.config.js  CHANGELOG.md  CHANGELOG.unreleased.md  docs                LICENSE.md  packages      README.md                 SECURITY.md  @vates      yarn.lock
                                    

                                    I have ran the command as per your instruction, but I got an error when running yarn:

                                    admin@xen-orchestra:/opt/xo/xo-src/xen-orchestra$ sudo git checkout xo5/fix-bulk-migration
                                    [sudo] password for admin:
                                    Branch 'xo5/fix-bulk-migration' set up to track remote branch 'xo5/fix-bulk-migration' from 'origin'.
                                    Switched to a new branch 'xo5/fix-bulk-migration'
                                    
                                    admin@xen-orchestra:/opt/xo/xo-src/xen-orchestra$ yarn build
                                    yarn run v1.22.19
                                    $ turbo run build --scope xo-server --scope xo-server-'*' --scope xo-web
                                    /bin/sh: 1: turbo: not found
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • DanpD Offline
                                      Danp Pro Support Team
                                      last edited by

                                      You need to run yarn followed by yarn build. FYI, you can combine them into a single command like this --

                                      yarn; yarn build

                                      A 1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        ashinobi @Danp
                                        last edited by

                                        @Danp

                                        Here is what I got after running yarn:

                                        admin@xen-orchestra:/opt/xo/xo-src/xen-orchestra$ sudo yarn;yarn build
                                        [sudo] password for admin:
                                        yarn install v1.22.19
                                        [1/5] Validating package.json...
                                        [2/5] Resolving packages...
                                        [3/5] Fetching packages...
                                        [4/5] Linking dependencies...
                                        warning "@commitlint/cli > @commitlint/load > cosmiconfig-typescript-loader@5.0.0" has unmet peer dependency "@types/node@*".
                                        warning "@commitlint/cli > @commitlint/load > cosmiconfig-typescript-loader@5.0.0" has unmet peer dependency "typescript@>=4".
                                        warning "@vue/eslint-config-typescript > @typescript-eslint/eslint-plugin > ts-api-utils@1.0.3" has unmet peer dependency "typescript@>=4.2.0".
                                        warning "workspace-aggregator-04a3b3bf-f2de-4fa4-8c4d-af65746d82b1 > @vates/node-vsphere-soap > soap@1.0.0" has incorrect peer dependency "axios@^0.27.2".
                                        warning "workspace-aggregator-04a3b3bf-f2de-4fa4-8c4d-af65746d82b1 > @vates/event-listeners-manager > tap > @tapjs/test > @isaacs/ts-node-temp-fork-for-pr-2009@10.9.5" has unmet peer dependency "@types/node@*".
                                        warning "workspace-aggregator-04a3b3bf-f2de-4fa4-8c4d-af65746d82b1 > @vates/event-listeners-manager > tap > @tapjs/asserts > tcompare > react-element-to-jsx-string@15.0.0" has unmet peer dependency "react@^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 || ^18.0.0".
                                        warning "workspace-aggregator-04a3b3bf-f2de-4fa4-8c4d-af65746d82b1 > @vates/event-listeners-manager > tap > @tapjs/asserts > tcompare > react-element-to-jsx-string@15.0.0" has unmet peer dependency "react-dom@^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 || ^18.0.0".
                                        warning Workspaces can only be enabled in private projects.
                                        [5/5] Building fresh packages...
                                        $ husky install
                                        husky - Git hooks installed
                                        Done in 185.69s.
                                        yarn run v1.22.19
                                        $ turbo run build --scope xo-server --scope xo-server-'*' --scope xo-web
                                         ERROR  run failed: IO error: failed to create directory `/opt/xo/xo-src/xen-orchestra/node_modules/.cache/turbo`
                                        error Command failed with exit code 1.
                                        info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • DanpD Offline
                                          Danp Pro Support Team
                                          last edited by

                                          Try it like this --

                                          sudo bash
                                          yarn; yarn build
                                          
                                          A 1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            ashinobi @Danp
                                            last edited by

                                            @Danp

                                            Thanks. I have successfully run it

                                            root@xen-orchestra:/opt/xo/xo-src/xen-orchestra# yarn; yarn build
                                            yarn install v1.22.19
                                            [1/5] Validating package.json...
                                            [2/5] Resolving packages...
                                            success Already up-to-date.
                                            $ husky install
                                            husky - Git hooks installed
                                            Done in 4.22s.
                                            yarn run v1.22.19
                                            $ turbo run build --scope xo-server --scope xo-server-'*' --scope xo-web
                                            • Packages in scope: xo-server, xo-server-audit, xo-server-auth-github, xo-server-auth-google, xo-server-auth-ldap, xo-server-auth-oidc, xo-server-auth-saml, xo-server-backup-reports, xo-server-load-balancer, xo-server-netbox, xo-server-perf-alert, xo-server-sdn-controller, xo-server-test, xo-server-test-plugin, xo-server-transport-email, xo-server-transport-icinga2, xo-server-transport-nagios, xo-server-transport-slack, xo-server-transport-xmpp, xo-server-usage-report, xo-server-web-hooks, xo-web
                                            • Running build in 22 packages
                                            • Remote caching disabled
                                             WARNING  Failed to check if we can skip restoring outputs for xo-lib#build: GrpcFailure(DeadlineExceeded). Proceeding to check cache
                                             WARNING  Failed to check if we can skip restoring outputs for xo-server-auth-saml#build: GrpcFailure(DeadlineExceeded). Proceeding to check cache
                                             WARNING  Failed to check if we can skip restoring outputs for xo-server-transport-xmpp#build: GrpcFailure(DeadlineExceeded). Proceeding to check cache
                                             WARNING  Failed to check if we can skip restoring outputs for xo-remote-parser#build: GrpcFailure(DeadlineExceeded). Proceeding to check cache
                                             WARNING  Failed to check if we can skip restoring outputs for xo-server-auth-github#build: GrpcFailure(DeadlineExceeded). Proceeding to check cache
                                             WARNING  Failed to check if we can skip restoring outputs for xo-server-auth-google#build: GrpcFailure(DeadlineExceeded). Proceeding to check cache
                                             WARNING  Failed to check if we can skip restoring outputs for xo-server-transport-slack#build: GrpcFailure(Cancelled). Proceeding to check cache
                                             WARNING  Failed to check if we can skip restoring outputs for xo-server-transport-icinga2#build: GrpcFailure(DeadlineExceeded). Proceeding to check cache
                                             WARNING  Failed to check if we can skip restoring outputs for xo-server-transport-email#build: GrpcFailure(DeadlineExceeded). Proceeding to check cache
                                             WARNING  Failed to check if we can skip restoring outputs for xo-collection#build: GrpcFailure(DeadlineExceeded). Proceeding to check cache
                                            
                                             Tasks:    25 successful, 25 total
                                            Cached:    0 cached, 25 total
                                              Time:    4m46.846s
                                            
                                            Done in 287.74s.
                                            

                                            perform the migration test but I am still having the same error message.

                                            b63aa72d-4948-4fd5-a876-82a3cc142bc8-image.png

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