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

    Upgrade failed: Command failed: npm uninstall -g --silent xen-orchestra

    Scheduled Pinned Locked Moved Xen Orchestra
    7 Posts 2 Posters 1.3k 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.
    • bret_millerB Offline
      bret_miller
      last edited by

      I had the same error with the update to xoa-updater but muddled through manually removing it, and updating it. But I'm not confident in trying to do that with the whole of xen-orchestra.

      The log is posted below. Any idea what to do next?

      [14:11 11] xoa@xoa:~$ xoa-updater --update
      latest channel selected
      Following packages will be removed:
        xen-orchestra 5.48.3
        xo-server-telemetry 0.2.1
        xo-server-xoa 0.9.0
        xo-server 5.62.1
        xo-web-free 5.64.0
        xoa-cli 0.20.0
        xen-orchestra-upload-ova 0.1.3
        xoa-updater 0.35.0
      New packages available:
        npm 6.14.11
      New versions available:
        node 14.16.0 (12.18.2 installed)
      New versions available:
        xoa-updater 0.35.0 (0.35.0 installed)
      New versions available:
        xen-orchestra-upload-ova 0.1.4 (0.1.3 installed)
        xen-orchestra 5.56.1 (5.48.3 installed)
        xo-server-telemetry 0.4.0 (0.2.1 installed)
        xo-server-xoa 0.11.3 (0.9.0 installed)
        xo-server 5.77.0 (5.62.1 installed)
        xo-web-free 5.79.0 (5.64.0 installed)
        xoa-cli 0.25.1 (0.20.0 installed)
      
      [14:11 11] xoa@xoa:~$ xoa-updater --upgrade
      latest channel selected
      Following packages will be removed:
        xen-orchestra 5.48.3
        xo-server-telemetry 0.2.1
        xo-server-xoa 0.9.0
        xo-server 5.62.1
        xo-web-free 5.64.0
        xoa-cli 0.20.0
        xen-orchestra-upload-ova 0.1.3
        xoa-updater 0.35.0
      Removing packages...
      
      ✖ Command failed: npm uninstall -g --silent xen-orchestra
      [14:11 11] xoa@xoa:~$ ping xen-orchestra.com
      PING xen-orchestra.com (185.78.159.93) 56(84) bytes of data.
      64 bytes from 185.78.159.93 (185.78.159.93): icmp_seq=1 ttl=50 time=104 ms
      64 bytes from 185.78.159.93 (185.78.159.93): icmp_seq=2 ttl=50 time=104 ms
      ^C
      --- xen-orchestra.com ping statistics ---
      2 packets transmitted, 2 received, 0% packet loss, time 1000ms
      rtt min/avg/max/mdev = 104.510/104.555/104.601/0.326 ms
      [14:12 11] xoa@xoa:~$ xoa check
      ✔ Node version
      ✔ xo-server config syntax
      ✔ Disk space for /
      ✔ Disk space for /var
      ✔ Native SMB support
      ✔ XOA version
      ✔ Appliance registration
      ✖ npm version: 6.14.5
       does not satisfies ^4.6
      ✖ XOA status: not up-to-date, please run xoa-updater
      ✔ Internet connectivity
      
      
      bret_millerB 1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi!

        It seems you have an unsupported version of npm. Have you make any modification/specific package in there?

        bret_millerB 1 Reply Last reply Reply Quote 0
        • bret_millerB Offline
          bret_miller @olivierlambert
          last edited by

          @olivierlambert No changes that I'm aware of. It it possible to get it back to a supported version?

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

            Yes, but please open a ticket and also a support tunnel in the meantime, so our support/dev team can take a look and fix it for you 🙂

            bret_millerB 1 Reply Last reply Reply Quote 0
            • bret_millerB Offline
              bret_miller @olivierlambert
              last edited by

              @olivierlambert OK. I did that, but there isn't any feedback from "Open Support Ticket" so I'm not sure it did anything.

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

                Have you opened it here? https://support.vates.fr

                1 Reply Last reply Reply Quote 0
                • bret_millerB Offline
                  bret_miller @bret_miller
                  last edited by

                  @bret_miller said in Upgrade failed: Command failed: npm uninstall -g --silent xen-orchestra:

                  ✖ npm version: 6.14.5
                  does not satisfies ^4.6

                  For the sake of someone after me with this problem, based on it apparently looking for npm version 4.6.x, I did this:

                  sudo npm install -g npm@4.6.1
                  

                  Then re-ran the xo check which came out clean except for being on and old version.

                  Then re-ran the upgrade which immediately re-upgraded to npm 6.14.11 and completed the upgrade successfully.

                  My theory then is that the upgrade to 6.14.x probably happened on a failed XO upgrade leaving the system in a state that I could no longer upgrade. It now appears fixed.

                  1 Reply Last reply Reply Quote 0

                  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