XOA source update
-
Hi,
It seems there is a problem when updating XOA from sources.
Unable to start xo-server after updating via gitAug 01 11:18:07 xoa xo-server[22974]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/root/xen-orchestra/node_modules/@xen-orchestra/backups/formatVmBackups.js' imported from /root/xen-orchestra/packages/xo-server/dist/xo-mixins/backups-ng/index.mjs Aug 01 11:18:07 xoa xo-server[22974]: at new NodeError (node:internal/errors:400:5) Aug 01 11:18:07 xoa xo-server[22974]: at finalizeResolution (node:internal/modules/esm/resolve:326:11) Aug 01 11:18:07 xoa xo-server[22974]: at moduleResolve (node:internal/modules/esm/resolve:945:10) Aug 01 11:18:07 xoa xo-server[22974]: at defaultResolve (node:internal/modules/esm/resolve:1153:11) Aug 01 11:18:07 xoa xo-server[22974]: at nextResolve (node:internal/modules/esm/loader:163:28) Aug 01 11:18:07 xoa xo-server[22974]: at ESMLoader.resolve (node:internal/modules/esm/loader:842:30) Aug 01 11:18:07 xoa xo-server[22974]: at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) Aug 01 11:18:07 xoa xo-server[22974]: at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40) Aug 01 11:18:07 xoa xo-server[22974]: at link (node:internal/modules/esm/module_job:76:36) { Aug 01 11:18:07 xoa xo-server[22974]: code: 'ERR_MODULE_NOT_FOUND' Aug 01 11:18:07 xoa xo-server[22974]: }
Aug 01 12:05:37 xoa xo-server[1431]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/root/xen-orchestra/node_modules/@xen-orchestra/xapi/xoData.js' imported from /root/xen-orchestra/packages/xo-server/dist/xapi-object-to-xo.mjs Aug 01 12:05:37 xoa xo-server[1431]: at new NodeError (node:internal/errors:400:5) Aug 01 12:05:37 xoa xo-server[1431]: at finalizeResolution (node:internal/modules/esm/resolve:326:11) Aug 01 12:05:37 xoa xo-server[1431]: at moduleResolve (node:internal/modules/esm/resolve:945:10) Aug 01 12:05:37 xoa xo-server[1431]: at defaultResolve (node:internal/modules/esm/resolve:1153:11) Aug 01 12:05:37 xoa xo-server[1431]: at nextResolve (node:internal/modules/esm/loader:163:28) Aug 01 12:05:37 xoa xo-server[1431]: at ESMLoader.resolve (node:internal/modules/esm/loader:842:30) Aug 01 12:05:37 xoa xo-server[1431]: at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) Aug 01 12:05:37 xoa xo-server[1431]: at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40) Aug 01 12:05:37 xoa xo-server[1431]: at link (node:internal/modules/esm/module_job:76:36) { Aug 01 12:05:37 xoa xo-server[1431]: code: 'ERR_MODULE_NOT_FOUND' Aug 01 12:05:37 xoa xo-server[1431]: }
Aug 01 12:01:10 xoa xo-server[1204]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/root/xen-orchestra/node_modules/@xen-orchestra/backups/HealthCheckVmBackup.js' imported from /root/xen-orchestra/packages/xo-server/dist/xo-mixins/backups-ng/index.mjs Aug 01 12:01:10 xoa xo-server[1204]: at new NodeError (node:internal/errors:400:5) Aug 01 12:01:10 xoa xo-server[1204]: at finalizeResolution (node:internal/modules/esm/resolve:326:11) Aug 01 12:01:10 xoa xo-server[1204]: at moduleResolve (node:internal/modules/esm/resolve:945:10) Aug 01 12:01:10 xoa xo-server[1204]: at defaultResolve (node:internal/modules/esm/resolve:1153:11) Aug 01 12:01:10 xoa xo-server[1204]: at nextResolve (node:internal/modules/esm/loader:163:28) Aug 01 12:01:10 xoa xo-server[1204]: at ESMLoader.resolve (node:internal/modules/esm/loader:842:30) Aug 01 12:01:10 xoa xo-server[1204]: at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) Aug 01 12:01:10 xoa xo-server[1204]: at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40) Aug 01 12:01:10 xoa xo-server[1204]: at link (node:internal/modules/esm/module_job:76:36) { Aug 01 12:01:10 xoa xo-server[1204]: code: 'ERR_MODULE_NOT_FOUND' Aug 01 12:01:10 xoa xo-server[1204]: }
it seems files were migrated to .mjs but it is still looking for the .js files.
Thanks!
-
@rbbgl Hello, please make sure you are using Node LTS (18.17.0).
-
works. thanks!
-
-