Upgrade failed: Command failed: npm uninstall -g --silent xen-orchestra
-
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 -
Hi!
It seems you have an unsupported version of
npm. Have you make any modification/specific package in there? -
@olivierlambert No changes that I'm aware of. It it possible to get it back to a supported version?
-
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

-
@olivierlambert OK. I did that, but there isn't any feedback from "Open Support Ticket" so I'm not sure it did anything.
-
Have you opened it here? https://support.vates.fr
-
@bret_miller said in Upgrade failed: Command failed: npm uninstall -g --silent xen-orchestra:
npm version: 6.14.5
does not satisfies ^4.6For 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.1Then 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.
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