XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Build from source Error

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    12 Posts 4 Posters 574 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      michimate
      last edited by michimate

      Hello,

      I am building xoa from source with the script from:
      https://github.com/ronivay/XenOrchestraInstallerUpdater

      After 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.
      
      1 Reply Last reply Reply Quote 0
      • julien-fJ Offline
        julien-f Vates 🪐 Co-Founder XO Team @olivierlambert
        last edited by

        https://github.com/vatesfr/xen-orchestra/issues/5782

        gallart created this issue in vatesfr/xen-orchestra

        closed loader.js - Cannot find module #5782

        M 1 Reply Last reply Reply Quote 1
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by olivierlambert

          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)

          1 Reply Last reply Reply Quote 0
          • DanpD Offline
            Danp Pro Support Team
            last edited by

            Could be related to this recent commit -- https://github.com/vatesfr/xen-orchestra/commit/68bb2fa7f012625bcbb273f1526aa62defd2df12

            0 julien-f committed to vatesfr/xen-orchestra
            feat(xo-collection): named instead of default exports
            
            Behave better with Babel and native ESM.
            1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              Ah yes, and so last question: on which commit HEAD are you right now?

              M 1 Reply Last reply Reply Quote 0
              • DanpD Offline
                Danp Pro Support Team
                last edited by

                FWIW, I get the same issue when building from latest sources (68bb2fa7f012625bcbb273f1526aa62defd2df12)

                1 Reply Last reply Reply Quote 0
                • M Offline
                  michimate @olivierlambert
                  last edited by

                  olivierlambert

                  i used the latest master

                  git clone -b master http://github.com/vatesfr/xen-orchestra
                  

                  I 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.
                  
                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Thanks 🙂 What about your Node version? node -v

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      michimate @olivierlambert
                      last edited by

                      olivierlambert

                      v14.17.0

                      1 Reply Last reply Reply Quote 0
                      • olivierlambertO Offline
                        olivierlambert Vates 🪐 Co-Founder CEO
                        last edited by

                        julien-f does it ring any bell?

                        julien-fJ 1 Reply Last reply Reply Quote 0
                        • julien-fJ Offline
                          julien-f Vates 🪐 Co-Founder XO Team @olivierlambert
                          last edited by

                          https://github.com/vatesfr/xen-orchestra/issues/5782

                          gallart created this issue in vatesfr/xen-orchestra

                          closed loader.js - Cannot find module #5782

                          M 1 Reply Last reply Reply Quote 1
                          • M Offline
                            michimate @julien-f
                            last edited by

                            julien-f

                            Thanks's a lot. Now it worked!

                            1 Reply Last reply Reply Quote 1
                            • olivierlambertO Offline
                              olivierlambert Vates 🪐 Co-Founder CEO
                              last edited by

                              Thanks for the report!

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post