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

    Xen Orchestra has stopped updating commits

    Scheduled Pinned Locked Moved Xen Orchestra
    26 Posts 7 Posters 4.0k Views 6 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.
    • J Offline
      jr-m4
      last edited by

      Hi,
      Sorry for necroposting here. But just wanted to bump and let y'all know that this is still an issue.
      Where right now, the About section will say that I'm on commit 7e66a. With 8 commits behind master 51f95

      But doing a (several) full update according to installation instructions in the docs. git show -s, tells me that I'm on

      commit 51f95b3c8590492164be38a77ad2c7bf5dc42451
      
      J J 2 Replies Last reply Reply Quote 0
      • J Offline
        jr-m4 @jr-m4
        last edited by

        @jr-m4 said in Xen Orchestra has stopped updating commits:

        Hi,
        Sorry for necroposting here. But just wanted to bump and let y'all know that this is still an issue.
        Where right now, the About section will say that I'm on commit 7e66a. With 8 commits behind master 51f95

        But doing a (several) full update according to installation instructions in the docs. git show -s, tells me that I'm on

        commit 51f95b3c8590492164be38a77ad2c7bf5dc42451
        

        Quick update:
        After clearing/deleting the folder node_modules completely along with another upgrade, solved the symptom for me. However, it is quite obvious that the underlying issue isn't fixed.
        It might be superfical at first glace. But as @olivierlambert said, it is quite beneficial to know which is the actual commit being used/applied.

        Also for completeness sake:
        I do my updates through a short script that goes through the commands listed in the official installation docs. Along with me using it as a systemd service

        #!/bin/bash
        git checkout . &&\
        git pull --ff-only &&\
        yarn &&\
        yarn build &&\
        systemctl restart xo-server
        
        julien-fJ 1 Reply Last reply Reply Quote 0
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          ping @julien-f

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

            @jr-m4 You're saying that git no longer updates the repo`?

            What's the git pull --ff-only error message?

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jr-m4 @julien-f
              last edited by

              @julien-f
              Hi,

              No. I'm saying that sometimes the "About"-section in XO (source version). Doesn't show the actual commit being used. And is instead lagging behind. Even though the acctual code being compile is on the newest commit.
              Removing the node_modules folder, cleared this issue. So there is some cache that doesn't always get updated with new commit versions.

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

                Are you rebuilding and then refreshing xo-web?

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jr-m4 @olivierlambert
                  last edited by jr-m4

                  @olivierlambert
                  I am

                  Update:
                  Correction.. I run this script I pasted above. That builds the entire code AFAIK. As to what specific portions of the code that acctually get recompile. I do not know.

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

                    It seems like the commit info is being embedded in to xo-web package. With the new turborepo addition, xo-web isn't rebuilt each time you rebuild XO, which causes the old commit info to be displayed on the About page. AFAICS, this is benign but still misleading.

                    Pretty sure this is still the reason for the discrepancy.

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

                      @Danp This is exactly that 🙂

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        janpan @jr-m4
                        last edited by janpan

                        Just a small thing from my side, I know this thread is old, but perhaps it might help someone.

                        I am also updating my xen-orchestra the same way as @jr-m4 with a script, as per documentation instructions.

                        I also noted that it kept on saying I was behind a commit in the xen orchestra web interface / about page, however the commit was the latest one.

                        Changing my script from this:

                        cd /path/to/xen-orchestra/
                        git checkout .
                        git pull --ff-only
                        yarn
                        yarn build
                        service orchestra restart
                        

                        to this, note the yarn build --force:

                        cd /path/to/xen-orchestra/
                        git checkout .
                        git pull --ff-only
                        yarn
                        yarn build --force
                        service orchestra restart
                        

                        fixed the issue, as it forces a complete rebuild, and it changes the yarn build command to run this (note the force part):

                        $ TURBO_TELEMETRY_DISABLED=1 turbo run build --filter xo-server --filter xo-server-'*' --filter xo-web --force
                        

                        instead of this:

                        $ TURBO_TELEMETRY_DISABLED=1 turbo run build --filter xo-server --filter xo-server-'*' --filter xo-web
                        

                        This makes the script run a bit longer, but it's not that big of a deal, and it fixes my xen orchestra web interface to always show the latest version.

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          archw
                          last edited by archw

                          That happens to me about once every six weeks on one of the XO installs. For what its worth, if I just kill the XO vm and let it reboot, as long as its not out of disk space, it always works the second time.

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