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

    first attemp with XOCE

    Scheduled Pinned Locked Moved Xen Orchestra
    12 Posts 4 Posters 1.1k 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.
    • BenjiReisB Offline
      BenjiReis Vates 🪐 XCP-ng Team
      last edited by

      Hi!

      @nackstein said in first attemp with XOCE:

      The other error seemed a regression in my node version, maybe I should switch to LTS instead of latest (I have installed 13.10.1).

      FYI: The doc specifically mention to use node v8 so that might be a cause of a build problem.

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        nackstein
        last edited by nackstein

        it seems that the git diff didn't include a modification I made, maybe the file isn't tracked.

        in file @xen-orchestra/audit-core/node_modules/@babel/helper-compilation-targets/package.json
        I had to modify the exports:

        "exports": {
          ".": "./lib/index.js"
        },
        

        the original was like (not sure):

        "exports": none
        

        but was throwing error during build:

        Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved
        
        BenjiReisB 1 Reply Last reply Reply Quote 0
        • N Offline
          nackstein @BenjiReis
          last edited by

          @BenjiReis yes but XOA is using v12.16.1 so I believed the documentation was a little old. I will try to build from scratch with the LTS that is 12.16.1.

          1 Reply Last reply Reply Quote 0
          • BenjiReisB Offline
            BenjiReis Vates 🪐 XCP-ng Team @nackstein
            last edited by BenjiReis

            @nackstein Please use markdown when quoting code for readability 🙂

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

              It seems you are really angry again JS dev/build system, but you missed the a sentence that's in bold in the documentation 😉 For instance, Node version. Please take time to read the doc carefully before going further, or you'll lose your time 🙂

              edit: our doc should be considered as "source of truth" for your installation

              edit 2: XOA is a bit different, we can provide a coherent solution with the environment, until we decide we are sure with Node 12, we keep the version on 8.

              N 1 Reply Last reply Reply Quote 1
              • N Offline
                nackstein @olivierlambert
                last edited by

                @olivierlambert ok thanks for the clarification. I was deliberating exploring new territories. I don't like the build system in javascript but maybe it's useful on windows platform so you don't have to port make and shell script. to me it's a new complicated thing to just execute some command in a pipe. Anyway my post was sarcastic, I don't want to blame anyone.

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

                  No worries 😉 Just telling you that following the doc will save you a lot of time!

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

                    @nackstein said in first attemp with XOCE:

                    then as documented I cloned git and tried building with yarn:
                    git clone -b master http://github.com/vatesfr/xen-orchestra
                    cd xen-orchestra
                    yarn build

                    Did you issue the yarn command prior to the yarn build? If not, that would explain the missing dependencies.

                    N 1 Reply Last reply Reply Quote 0
                    • N Offline
                      nackstein @Danp
                      last edited by

                      @Danp oh yes, I just forgot to post it here. I'm going to edit my post. thanks.
                      I think the broken dependency is due to bcrypt 2.x that come only in 64 npm version and by using a too recent node/npm the build system look for bcrypt 2.x 79 npm version

                      1 Reply Last reply Reply Quote 0
                      • N Offline
                        nackstein
                        last edited by

                        I tried building from scratch and with node 8. I had a couple of build error but building one package by directly entering its directory and relaunching building without --parallel in the main package.json solved my problem. I think the VM I used to build with 2GB RAM is not enough for parallel building (I took the hint from the post about building on FreeBSD).

                        now I would like to install on a local directory and not using the git directory to start services. how do you usually do in your development environment?

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

                          Exactly like how it's displayed in the documentation.

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