ronivay / XenOrchestraInstallerUpdater

Xen Orchestra install/update script
GNU General Public License v3.0
1.21k stars 190 forks source link

Yarn install failing when updating to c8b29da67 #174

Closed InputObject2 closed 1 year ago

InputObject2 commented 1 year ago

OS Version: Ubuntu 20.04 Node.js version: v18.14.2 Yarn version: 1.22.19

Server specs 2 vCPU, 4GB ram

Issue Trying to update, the installation hangs at the yarn command on the line

runcmd "cd $INSTALLDIR/xo-builds/xen-orchestra-$TIME && yarn && yarn build"

No real error output, log only shows:

Updating Xen Orchestra from 'cfa094f20' to 'c8b29da67'
+ cd /opt/xo/xo-builds/xen-orchestra-202302240505 && yarn && yarn build
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error An unexpected error occurred: "EIO: i/o error, read".
info If you think this is a bug, please open a bug report with the information provided in "/opt/xo/xo-builds/xen-orchestra-202302240505/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I tried removing the xo-sources folder (so it would clone the repo again) but yarn seems to keep failing on the same package. After a few failures, I added npm install just before the yarn command and it seemed to do the trick.

runcmd "cd $INSTALLDIR/xo-builds/xen-orchestra-$TIME && npm install && yarn && yarn build"

Adding this command doesn't feel right but I could not get it to work without it. Any ideas?

ronivay commented 1 year ago

Hi,

Is this still happening? I can't seem to reproduce the error.

github-actions[bot] commented 1 year ago

This issue has been open for 14 days without activity. It will be closed in 5 days if not updated