ronivay / XenOrchestraInstallerUpdater

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

Updater failing #267

Closed kevdogg closed 2 hours ago

kevdogg commented 3 hours ago

Attempting xo update which I've done many times thanks to this script on a virtualized instance of Debian Bookworm 12 Node.js: 20.18.0 Yarn: 1.22.2

Debian Bookworm provisioned on xcp-ng with 2vCPU and 4Gb RAM

Updating failed this morning (11-18-2024).

Here is log file:

+ command -v git
/usr/bin/git
+ cd . && git config --get remote.origin.url
https://github.com/ronivay/XenOrchestraInstallerUpdater.git
+ cd . && git status --porcelain
+ cd . && git fetch
+ cd . && git rev-parse --short HEAD
f2a3edc
+ cd . && git rev-parse --short FETCH_HEAD
f2a3edc
+ cd . && git diff --name-only @{upstream}| grep xo-install.sh
Running script version f2a3edc with config:

PORT=443
INSTALLDIR="/opt/xo"
SELFUPGRADE=true
CONFIGUPDATE=true
REPOSITORY="https://github.com/vatesfr/xen-orchestra"
BRANCH="master"
PLUGINS="all"
AUTOUPDATE="true"
YARN_CACHE_CLEANUP="true"
OS_CHECK="true"
ARCH_CHECK="true"
PRESERVE="3"
CERTIFICATE_DIR=/etc/ssl/letsencrypt/xo-quincy.<domain>.com
PATH_TO_HTTPS_CERT=$CERTIFICATE_DIR/cert.pem
PATH_TO_HTTPS_KEY=$CERTIFICATE_DIR/privkey.pem

+ id -u
0
+ uname -m
x86_64
+ command -v xe
+ grep ^VERSION_ID /etc/os-release | cut -d'=' -f2 | grep -Eo '[0-9]{1,2}' | head -1
12
+ grep ^NAME /etc/os-release | cut -d'=' -f2 | sed 's/"//g' | awk '{print $1}'
Debian
+ grep ^GRUB_DISTRIBUTOR /etc/default/grub | grep 'Xen Orchestra'
+ command -v dnf
+ command -v apt-get
/usr/bin/apt-get
+ command -v systemctl
/usr/bin/systemctl
+ openssl x509 -pubkey -noout -in /etc/ssl/letsencrypt/xo-quincy.<domain>.com/cert.pem | openssl md5
MD5(stdin)= 830143af59e90932ad17ca16967b9c61
+ openssl pkey -pubout -in /etc/ssl/letsencrypt/xo-quincy.<domain>.com/privkey.pem -outform PEM | openssl md5
MD5(stdin)= 830143af59e90932ad17ca16967b9c61
+ df -P -k '/opt' | tail -1 | awk '{print $4}'
165966232
+ grep MemTotal /proc/meminfo | awk '{print $2}'
4004632
+ node -v 2>/dev/null| grep -Eo '[0-9.]+' | cut -d'.' -f1
20
+ apt-get update
Hit:1 https://dl.yarnpkg.com/debian stable InRelease
Hit:2 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:3 http://deb.debian.org/debian bookworm InRelease
Get:4 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:5 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Ign:6 https://gitlab.com/api/v4/projects/xen-project%2Fxen-guest-agent/packages/generic/deb-amd64 release/ InRelease
Get:7 http://security.debian.org/debian-security bookworm-security/main Sources [125 kB]
Get:8 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [204 kB]
Hit:9 https://gitlab.com/api/v4/projects/xen-project%2Fxen-guest-agent/packages/generic/deb-amd64 release/ Release
Get:10 http://security.debian.org/debian-security bookworm-security/main Translation-en [125 kB]
Ign:11 https://gitlab.com/api/v4/projects/xen-project%2Fxen-guest-agent/packages/generic/deb-amd64 release/ Release.gpg
Fetched 557 kB in 1s (677 kB/s)
Reading package lists...
+ apt-get install -y --only-upgrade nodejs yarn
Reading package lists...
Building dependency tree...
Reading state information...
nodejs is already the newest version (20.18.0-1nodesource1).
yarn is already the newest version (1.22.22-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ cd "/opt/xo/xo-src/xen-orchestra" && git remote set-url origin "https://github.com/vatesfr/xen-orchestra" &&             git fetch --prune &&             git reset --hard origin/master &&             git clean -xdff
From https://github.com/vatesfr/xen-orchestra
 - [deleted]             (none)     -> origin/bugfix-remote-error
 - [deleted]             (none)     -> origin/docs-migrate-to-docusaurus
 - [deleted]             (none)     -> origin/fix-nfs-port
 - [deleted]             (none)     -> origin/fix-pif-with-empty-string-ipv6
 - [deleted]             (none)     -> origin/fix_list_changed_block_async
 - [deleted]             (none)     -> origin/lite/fix-dashboard-patches-container-width
 - [deleted]             (none)     -> origin/perf-alert/fixUnwritableSRs
 - [deleted]             (none)     -> origin/vmHealthTab/displayNestedVirtTooltip
 - [deleted]             (none)     -> origin/web-stack/update-deps-vue35
 - [deleted]             (none)     -> origin/xo6/checkbox
 - [deleted]             (none)     -> origin/xo6/checkbox-group
 - [deleted]             (none)     -> origin/xo6/host-console
 - [deleted]             (none)     -> origin/xo6/radio-button
 - [deleted]             (none)     -> origin/xo6/sidepanel-component
 - [deleted]             (none)     -> origin/xo6/table-actions
 - [deleted]             (none)     -> origin/xo6/toaster
 - [deleted]             (none)     -> origin/xo6/toggle
 - [deleted]             (none)     -> origin/xo6/top-bottom-table
 - [deleted]             (none)     -> origin/xoServer-api-captureLogs
 - [deleted]             (none)     -> origin/xostor-airgap
   efee92dbd..2a8acd277  master                  -> origin/master
 + 90eeb0551...7417aa706 ability-to-block-migration -> origin/ability-to-block-migration  (forced update)
 * [new branch]          display-console-to-host -> origin/display-console-to-host
   93da76aba..d6fad175e  displayProxyVersion     -> origin/displayProxyVersion
 + 862d9a6a7...48db60d07 feat_dedup              -> origin/feat_dedup  (forced update)
 * [new branch]          fix_enable_cbt_slow     -> origin/fix_enable_cbt_slow
 * [new branch]          fix_ipv6_iso_sr         -> origin/fix_ipv6_iso_sr
 * [new branch]          fix_supportvtpm_incremental -> origin/fix_supportvtpm_incremental
 * [new branch]          fs-test-tmpdir          -> origin/fs-test-tmpdir
 * [new branch]          getSizeOnDisk           -> origin/getSizeOnDisk
   e9e8ece36..8d4917c47  gfs                     -> origin/gfs
 * [new branch]          host-network-view       -> origin/host-network-view
 * [new branch]          instant_start           -> origin/instant_start
   385b367e3..d492d874a  lite/add-links-to-user-menu -> origin/lite/add-links-to-user-menu
 + fdd11b5d9...c99ac730e lite/update-user-menu-icon -> origin/lite/update-user-menu-icon  (forced update)
 * [new branch]          rest-api-vifs           -> origin/rest-api-vifs
 + 4a602faa3...eb8978695 web-core-console-panel  -> origin/web-core-console-panel  (forced update)
 + 19c02c4f9...2c0e21a29 web-core/new-menu-system -> origin/web-core/new-menu-system  (forced update)
 * [new branch]          web-core/update-documentation -> origin/web-core/update-documentation
 * [new branch]          web-core/use-disabled   -> origin/web-core/use-disabled
 * [new branch]          xo-6/host-network-view  -> origin/xo-6/host-network-view
 + e21fffa8c...364c3efe2 xo6/add-state-for-panel -> origin/xo6/add-state-for-panel  (forced update)
 + c2375c935...ae134018e xo6/dropdown-button     -> origin/xo6/dropdown-button  (forced update)
 + 5415e1d26...ce872343e xo6/radio-button-group  -> origin/xo6/radio-button-group  (forced update)
 + ecefcdee0...a769eaea9 xostack/job-system      -> origin/xostack/job-system  (forced update)
HEAD is now at 2a8acd277 fix(xo-lite/stories): bad custom-event name case (#8140)
+ rm -rf "/opt/xo/xo-builds/xen-orchestra-202411180934"
+ cp -r "/opt/xo/xo-src/xen-orchestra" "/opt/xo/xo-builds/xen-orchestra-202411180934"
+ cd /opt/xo/xo-builds/xen-orchestra-202411180934 && git rev-parse HEAD
2a8acd2770aee86e26a4f94641d221fa6a839d92
+ cd /opt/xo/xo-builds/xen-orchestra-202411180934 && git rev-parse --short HEAD
2a8acd277
+ cd .
+ readlink -e /opt/xo/xo-server
/opt/xo/xo-builds/xen-orchestra-202411102241/packages/xo-server
+ cd /opt/xo/xo-server && git rev-parse HEAD
efee92dbdff8f3ef131abb8556f981e7b2b87985
+ cd /opt/xo/xo-server && git rev-parse --short HEAD
efee92dbd
+ cd .
Updating Xen Orchestra from 'efee92dbd' to '2a8acd277'
+ cd /opt/xo/xo-builds/xen-orchestra-202411180934 && yarn --network-timeout 300000 && yarn --network-timeout 300000 build
yarn install v1.22.22
[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.1.0" has unmet peer dependency "@types/node@*".
warning "@commitlint/cli > @commitlint/load > cosmiconfig-typescript-loader@5.1.0" has unmet peer dependency "typescript@>=4".
warning "@typescript-eslint/eslint-plugin > ts-api-utils@1.4.0" has unmet peer dependency "typescript@>=4.2.0".
warning " > @xen-orchestra/web-core@0.4.0" has unmet peer dependency "pinia@^2.2.6".
warning " > @xen-orchestra/web-core@0.4.0" has unmet peer dependency "vue@~3.5.12".
warning " > @xen-orchestra/web-core@0.4.0" has unmet peer dependency "vue-i18n@^9.9.0".
warning " > @xen-orchestra/web-core@0.4.0" has unmet peer dependency "vue-router@^4.4.5".
warning "workspace-aggregator-1498cebe-873b-42d2-beb9-b3a69feb6cd2 > @vates/event-listeners-manager > tap > @tapjs/test > @isaacs/ts-node-temp-fork-for-pr-2009@10.9.7" has unmet peer dependency "@types/node@*".
warning "workspace-aggregator-1498cebe-873b-42d2-beb9-b3a69feb6cd2 > @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-1498cebe-873b-42d2-beb9-b3a69feb6cd2 > @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 80.80s.
yarn run v1.22.22
$ TURBO_TELEMETRY_DISABLED=1 turbo run build --filter xo-server --filter xo-server-'*' --filter xo-web
turbo 2.3.0

• 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
xo-server-usage-report:build: cache miss, executing 645466adb52ea89b
xo-server-usage-report:build: yarn run v1.22.22
xo-server-usage-report:build: $ yarn run clean
xo-server-usage-report:build: Segmentation fault
xo-server-usage-report:build: error Command failed with exit code 139.
xo-server-usage-report:build: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
xo-server-usage-report:build: ERROR: command finished with error: command (/opt/xo/xo-builds/xen-orchestra-202411180934/packages/xo-server-usage-report) /tmp/yarn--1731944136106-0.7288789935145732/yarn run build exited (139)
xo-server-usage-report#build: command (/opt/xo/xo-builds/xen-orchestra-202411180934/packages/xo-server-usage-report) /tmp/yarn--1731944136106-0.7288789935145732/yarn run build exited (139)

 Tasks:    9 successful, 21 total
Cached:    0 cached, 21 total
  Time:    6.342s
Failed:    xo-server-usage-report#build

 ERROR  run failed: command  exited (139)
error Command failed with exit code 139.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
+ rm -rf /opt/xo/xo-builds/xen-orchestra-202411180934
ronivay commented 2 hours ago

Hey,

Seems to be some yarn specific error to which i probably can't do much here. Sounds somewhat of a transient issue. Could you try again later. Not the first time XO build randomly fails.

kevdogg commented 2 hours ago

Thanks for reply, I tried it later and it all updated. Not sure why. Sorry to bother you. I'll just close the issue for now. Thanks