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

    Xen Orchestra has stopped updating commits

    Scheduled Pinned Locked Moved Xen Orchestra
    34 Posts 11 Posters 10.0k Views 9 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.
    • 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 Offline
                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
                      • D Offline
                        ducatijosh
                        last edited by

                        I ran into this issue today after doing the following I was still seeing the old version in the settings -> about

                        sudo systemctl stop xo-server
                        git pull --ff-only
                        yarn
                        yarn build --force
                        sudo systemctl start xo-server

                        I then did a full OS reboot now the commit shows up to date rather than 23 commits behind, why was a reboot needed? Shouldn't restarting the service be enough?

                        florentF 1 Reply Last reply Reply Quote 0
                        • florentF Offline
                          florent Vates 🪐 XO Team @ducatijosh
                          last edited by

                          @ducatijosh my bet is that xo-server was still not completly stoppe,d thus was serving the old code . As strange as it seems, it you start a second xo-server, it won't fail, but only show a warningin the logs

                          a full reboot really restart xo-server

                          florentF 1 Reply Last reply Reply Quote 0
                          • florentF Offline
                            florent Vates 🪐 XO Team @florent
                            last edited by florent

                            ping @julienxovates I think we can change thie behavior ( accepting a xo-server start even if a zombie process is still running)

                            julienXOvatesJ D 2 Replies Last reply Reply Quote 0
                            • julienXOvatesJ Offline
                              julienXOvates Vates 🪐 XO Team @florent
                              last edited by

                              yes we'll enhance this behavior in a coming release ! thanks

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                ducatijosh @florent
                                last edited by ducatijosh

                                @florent said:

                                ping @julienxovates I think we can change thie behavior ( accepting a xo-server start even if a zombie process is still running)

                                Hello, Today I tried to update again with the same steps and a reboot and it still shows out of date.

                                887782ff-6408-4788-a761-4d13d6b0ee95-image.jpeg

                                I did see the new XO6 features so I assume it kind of half worked

                                From the command line I ran
                                git log -1 --format="%h"
                                and still saw the old commit version of c998f though

                                I then ran the following and got the newest 7e144 version
                                git fetch --all
                                git reset --hard origin/master

                                From there I reran my yarn and yarn build commands and it's updated fully now.
                                For some reason git pull --ff-only was not getting the full update or something.

                                P 1 Reply Last reply Reply Quote 0
                                • P Offline
                                  pierrebrunet Vates 🪐 XO Team @ducatijosh
                                  last edited by pierrebrunet

                                  @ducatijosh Hi,
                                  Can you check git status to see if you have anything tracked in your repository? You need to wait for a new commit in master though.

                                  D 1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    ducatijosh @pierrebrunet
                                    last edited by

                                    @pierrebrunet

                                    It says the following when I run that:

                                    On branch master
                                    Your branch is up to date with 'origin/master'.
                                    no changes added to commit

                                    florentF 1 Reply Last reply Reply Quote 0
                                    • florentF Offline
                                      florent Vates 🪐 XO Team @ducatijosh
                                      last edited by

                                      @ducatijosh did you do a yarn build ?

                                      1 Reply Last reply Reply Quote 0

                                      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
                                      • First post
                                        Last post