Build from source Error
-
Hello,
I am building xoa from source with the script from:
https://github.com/ronivay/XenOrchestraInstallerUpdaterAfter everything is completed I get this error.
I also tried this with the steps provided from the documentation directly. Same result.
OS is debain10
Mai 19 14:31:32 xoa-ce xo-server[22408]: /opt/xo/xo-builds/xen-orchestra-202105191427/packages/xo-server/bin/xo-server:30 Mai 19 14:31:32 xoa-ce xo-server[22408]: require('@xen-orchestra/log/configure').catchGlobalErrors(require('@xen-orchestra/log').default('xo:xo-server')) Mai 19 14:31:32 xoa-ce xo-server[22408]: ^ Mai 19 14:31:32 xoa-ce xo-server[22408]: TypeError: require(...).default is not a function Mai 19 14:31:32 xoa-ce xo-server[22408]: at Object.<anonymous> (/opt/xo/xo-builds/xen-orchestra-202105191427/packages/xo-server/bin/xo-server:30:96) Mai 19 14:31:32 xoa-ce xo-server[22408]: at Module._compile (internal/modules/cjs/loader.js:1068:30) Mai 19 14:31:32 xoa-ce xo-server[22408]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) Mai 19 14:31:32 xoa-ce xo-server[22408]: at Module.load (internal/modules/cjs/loader.js:933:32) Mai 19 14:31:32 xoa-ce xo-server[22408]: at Function.Module._load (internal/modules/cjs/loader.js:774:14) Mai 19 14:31:32 xoa-ce xo-server[22408]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) Mai 19 14:31:32 xoa-ce xo-server[22408]: at internal/main/run_main_module.js:17:47 Mai 19 14:31:32 xoa-ce systemd[1]: xo-server.service: Main process exited, code=exited, status=1/FAILURE Mai 19 14:31:32 xoa-ce systemd[1]: xo-server.service: Failed with result 'exit-code'. Mai 19 14:31:33 xoa-ce systemd[1]: xo-server.service: Service RestartSec=100ms expired, scheduling restart. Mai 19 14:31:33 xoa-ce systemd[1]: xo-server.service: Scheduled restart job, restart counter is at 5. Mai 19 14:31:33 xoa-ce systemd[1]: Stopped XO Server. Mai 19 14:31:33 xoa-ce systemd[1]: xo-server.service: Start request repeated too quickly. Mai 19 14:31:33 xoa-ce systemd[1]: xo-server.service: Failed with result 'exit-code'. Mai 19 14:31:33 xoa-ce systemd[1]: Failed to start XO Server. -
-
Hi @michimate
Please read https://xen-orchestra.com/docs/community.html
If you have a problem using a 3rd party script, please ask on the install script Github repository.
If you installed it following our doc, please double check your filled the pre-requisites (like Node version for example) -
Could be related to this recent commit -- https://github.com/vatesfr/xen-orchestra/commit/68bb2fa7f012625bcbb273f1526aa62defd2df12
-
Ah yes, and so last question: on which commit HEAD are you right now?
-
FWIW, I get the same issue when building from latest sources (68bb2fa7f012625bcbb273f1526aa62defd2df12)
-
i used the latest master
git clone -b master http://github.com/vatesfr/xen-orchestraI also tried again with the guide from your doku. Same result.
root@xoa-ce:/home/server-admin/xen-orchestra/packages/xo-server# yarn start yarn run v1.22.10 $ node bin/xo-server /home/server-admin/xen-orchestra/packages/xo-server/bin/xo-server:30 require('@xen-orchestra/log/configure').catchGlobalErrors(require('@xen-orchestra/log').default('xo:xo-server')) ^ TypeError: require(...).default is not a function at Object.<anonymous> (/home/server-admin/xen-orchestra/packages/xo-server/bin/xo-server:30:96) at Module._compile (internal/modules/cjs/loader.js:1068:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) at Module.load (internal/modules/cjs/loader.js:933:32) at Function.Module._load (internal/modules/cjs/loader.js:774:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) at internal/main/run_main_module.js:17:47 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. -
Thanks
What about your Node version? node -v -
v14.17.0
-
@julien-f does it ring any bell?
-
-
Thanks's a lot. Now it worked!
-
Thanks for the report!
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