Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-11129

Better Logging for NTP sync or time related issues

    XMLWordPrintable

Details

    • 11
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

       

      Atlassian status as of Jan 2022

      Hi everyone, thank you all for your feedback on this request. 

      I'm happy to announce that in Bitbucket Data Center 7.19 we have shipped a check that logs a message in the mirror logs if the clocks from the upstream server and the mirror drift too much. The log message reads "Upstream and mirror clocks are out of sync by XXXs, check the system clocks on the upstream and mirror nodes. This can sometimes cause JWT authentication to fail"

      You can read more about Bitbucket DC 7.19 in release notes.

      Cheers,
      Wolfgang Kritzinger
      Senior Software Engineer


      Original suggestion

      We would like to see better logging for issues regarding NTP. 
      After rebooting a Mirror it would not connect back the upstream cluster.
      This was the error:

      "POST /rest/mirroring/latest/upstreamServers/b5f0e586-7d67-3f36-8a4c-833cc11effa1/addon/events HTTP/1.1" c.a.b.i.m.m.c.DefaultServerUpstreamClient Delegated authentication failed because the upstream rejected our mirror credentials. Perhaps the mirror has been disabled on the upstream? 
      

      The cause was that the Mirror needed to be synced with the NTP server.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lroscillo Lonnie
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: