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

    Unable to fetch latest master commit.

    Scheduled Pinned Locked Moved Xen Orchestra
    10 Posts 5 Posters 71 Views 5 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.
    • acebmxerA Online
      acebmxer
      last edited by acebmxer

      Since commit de9687e it has stopped showing the master commit. I was a couple of commits behind de9687e when i updated to it.

      Just updated this morning and still and issue.

      Screenshot_20260723_055514.png

      1 Reply Last reply Reply Quote 1
      • acebmxerA Online
        acebmxer
        last edited by

        My script is still able to fetch the master commit.

        Screenshot_20260723_060314.png

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

          Does it fail every time or is it an intermittent issue?

          acebmxerA 1 Reply Last reply Reply Quote 0
          • acebmxerA Online
            acebmxer @Danp
            last edited by acebmxer

            @Danp

            It happened when i updated to de9687e i was hoping it would fix itself after this update but no still an issue.

            Screenshot 2026-07-23 083308.png

            1 Reply Last reply Reply Quote 1
            • acebmxerA Online
              acebmxer
              last edited by

              Screenshot 2026-07-23 083537.png

              1 Reply Last reply Reply Quote 0
              • marcoiM Offline
                marcoi
                last edited by

                Same for me.
                2b56a8b0-ca75-43a9-a28f-95b3647db966-image.jpeg

                ill try to update manually and see if it changes.

                1 Reply Last reply Reply Quote 2
                • R Offline
                  robertblissitt
                  last edited by

                  Greetings! I have been seeing the same since yesterday and it is happening every time. I rolled back to a previous version yesterday and the failure notice was no longer displayed. I ran the XenOrchestraInstallerUpdater script again this morning, and while it did update successfully, the failure notice has returned.

                  c0806919-7bc2-402a-b7e7-235c99507ba1-image.jpeg

                  1 Reply Last reply Reply Quote 1
                  • marcoiM Offline
                    marcoi
                    last edited by

                    same with me and latest update
                    44301957-aaed-4f90-9156-015b9e391211-image.jpeg

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

                      @marcoi
                      Same for me.

                      1 Reply Last reply Reply Quote 0
                      • acebmxerA Online
                        acebmxer
                        last edited by

                        @danp

                        Just check with AI to make sure this was not cause my install script.. Here is the report it came back with...

                        `
                        It's an upstream issue in Xen Orchestra itself — neither this project nor the installer scripts are at fault. I traced the exact cause:

                        What's happening
                        The "Failed to fetch latest master commit" message comes from XO's own web UI (the About page). It's defined upstream in xo-web's messages.js and displayed when the page can't retrieve the latest master commit.
                        That check runs in your browser: the About page calls fetch('https://api.github.com/repos/vatesfr/xen-orchestra/commits/master') directly from the client (see _callGithubApi in xo-web/src/common/xo/index.js).
                        On 2026-07-22, upstream merged PR #10101 — "feat(xo-server): add content security policy" (commit 8e8afeb, a few hours before de9687e). It makes xo-server send a default CSP header with default-src 'self' and no connect-src directive — so browsers now block the About page's call to api.github.com.
                        This explains every symptom in the forum thread: it appeared right at de9687e (the first commit most people landed on after the CSP merge), rolling back fixes it, rebuilding on latest master brings it back, and the installer script itself still fetches commits fine — the CSP only affects the browser, not server-side git.
                        No one has filed an upstream issue for this yet — only the original PR exists. It would be worth reporting on vatesfr/xen-orchestra (the fix is for them to add connect-src 'self' https://api.github.com to their default CSP, since source installs need it for the update check).

                        Workaround until upstream fixes it
                        The PR's design lets config values extend the default CSP (array values are concatenated onto the defaults):

                        Open /etc/xo-server/config.toml (where this project's installer writes the config).
                        Add this section:

                        [http.helmet.contentSecurityPolicy.directives]
                        connect-src = ["'self'", "https://api.github.com"]
                        Restart xo-server: sudo systemctl restart xo-server.
                        

                        Reload the About page (hard refresh, Ctrl+Shift+R) and verify the master commit shows again.
                        If you'd like, I can add that CSP directive to this project's config generation so fresh installs and rebuilds get it automatically — say the word and I'll make the change.

                        Sources: xcp-ng forum thread, PR #10101, xo-web About view source

                        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