Update script
-
Hi all, I just used the update script, and it resulted in XO not starting. Here is the log for when I try to start the XO server:
Jun 07 18:39:54 xoa-HVM-domU systemd[1]: Started XO Server. Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: (node:2709) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: (Use `node --trace-warnings ...` to show where the warning was created) Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: /opt/xen-orchestra/packages/xo-server/dist/xapi/mixins/index.js:2 Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: import _gpu, * as __gpu from "./gpu"; Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: ^^^^^^ Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: SyntaxError: Cannot use import statement outside a module Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: at wrapSafe (internal/modules/cjs/loader.js:984:16) Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: at Module._compile (internal/modules/cjs/loader.js:1032:27) Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: at Module.load (internal/modules/cjs/loader.js:933:32) Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: at Function.Module._load (internal/modules/cjs/loader.js:774:14) Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29) Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: at ModuleJob.run (internal/modules/esm/module_job.js:152:23) Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: at async Loader.import (internal/modules/esm/loader.js:177:24) Jun 07 18:39:55 xoa-HVM-domU xo-server[2709]: at async Object.loadESM (internal/process/esm_loader.js:68:5) Jun 07 18:39:55 xoa-HVM-domU systemd[1]: xo-server.service: Main process exited, code=exited, status=1/FAILURE Jun 07 18:39:55 xoa-HVM-domU systemd[1]: xo-server.service: Failed with result 'exit-code'. Jun 07 18:39:56 xoa-HVM-domU systemd[1]: xo-server.service: Scheduled restart job, restart counter is at 5. Jun 07 18:39:56 xoa-HVM-domU systemd[1]: Stopped XO Server. Jun 07 18:39:56 xoa-HVM-domU systemd[1]: xo-server.service: Start request repeated too quickly. Jun 07 18:39:56 xoa-HVM-domU systemd[1]: xo-server.service: Failed with result 'exit-code'. Jun 07 18:39:56 xoa-HVM-domU systemd[1]: Failed to start XO Server.
Anyone have any ideas?
Thanks! -
Hi,
There's no official update script. You are probably using a 3rd party script I assume?
Please read the big warning part here: https://xen-orchestra.com/docs/community.html
-
Yes, sorry, I'm using the Jarli01 script:
https://github.com/Jarli01/xenorchestra_installerSorry, I thought Jarli01 was an xcpng developer. I will post this issue to that github account.
-
No, but he's one creator of a script to install XO from the sources (there's multiple 3rd party scripts).
That's why it's better to ask those script authors first
-
@olivierlambert
Yep! Thanks, I'll ask them now. -
@mrnaz You may want to review this thread -- https://xcp-ng.org/forum/topic/4630/syntaxerror-cannot-use-import-statement-outside-a-module
-
@mrnaz look for the (first) error in your terminal where you execute the script to upgrade. Probably you need to upgrade the yarn or node version.