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

    Unable to fetch latest master commit.

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    17 Posts 8 Posters 472 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.
    • 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 Offline
          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

          TS79T 1 Reply Last reply Reply Quote 2
          • DanpD Online
            Danp Pro Support Team
            last edited by

            Thanks for the reports and the detailed analysis. I'll make sure that the XOA team is notified.

            acebmxerA 1 Reply Last reply Reply Quote 1
            • poddingueP poddingue marked this topic as a question
            • acebmxerA Offline
              acebmxer @Danp
              last edited by

              @Danp

              I was about to ask if there has been any update on this... I just did an update and it appears to be working again..

              Screenshot_20260727_054626.png

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

                Yes, it has been merged on main 2 hours ago, as visible at https://github.com/vatesfr/xen-orchestra/commit/b7bce8e7e71f7fd3cde61b74024bd5e0fb5b5a5d

                A 1 Reply Last reply Reply Quote 2
                • A Offline
                  Andrew Top contributor @olivierlambert
                  last edited by

                  @olivierlambert Working again. Thanks!

                  1 Reply Last reply Reply Quote 1
                  • olivierlambertO olivierlambert has marked this topic as solved
                  • TS79T Offline
                    TS79 @acebmxer
                    last edited by

                    @acebmxer thanks for this - good detective work! 🙂

                    Just a note - your code block seems to imply that

                    Restart xo-server: sudo systemctl restart xo-server.
                    

                    needs to be added to the config.toml file --- am I correct that only the first 2 lines of your code block are correct?

                    The "Restart xo-server" was part of your instructions, and then the "sudo systemctl restart xo-server.service" was meant to be the next code block?

                    acebmxerA 1 Reply Last reply Reply Quote 0
                    • acebmxerA Offline
                      acebmxer @TS79
                      last edited by

                      @TS79

                      That is what AI output. Vates was able to implement a fix from that and is live.

                      TS79T 1 Reply Last reply Reply Quote 1
                      • TS79T Offline
                        TS79 @acebmxer
                        last edited by

                        @acebmxer all good 👍🏻 and thank you again for sharing your discovery on the forums 🙏🏻

                        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