"POST MAU submission FAILED" error on Sourcetree operations
Asked by Richard Eastwood:

I'm in the process of moving from an old laptop (Windows 10 build 19045.3803) to a new one (Windows 11 build 22621.2861). I've installed git-for-windows then Sourcetree (3.4.16) on the new one. Every git operation (push, pull, fetch, check-out, with the exception of log) fails with the sourctree.log showing:

```
ERROR [2024-01-11 11:19:03,930] [75] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - POST MAU submission FAILED

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

   at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)

   at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)

   --- End of inner exception stack trace ---

   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)

   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)

   --- End of inner exception stack trace ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Refit.RequestBuilderImplementation`1.<>c__DisplayClass13_0`1.<<BuildCancellableTaskFuncForMethod>b__0>d.MoveNext() in D:\a\1\s\Refit\RequestBuilderImplementation.cs:line 231

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

   at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.<Post>d__12.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

   at SourceTree.Analytics.Emau.EMauSubmissionService.<SubmitBatch>d__40.MoveNext()
```

Also, Sourcetree update check produces the same error.

Also, I've tried with and without "Disable SSL certificate validation" checked.

After struggling for the best part of a week to get this issue sorted, I also uninstalled and followed the exact same installation on the old laptop to use as an experiment, since Sourcetree was still working fine on that. That continues to work fine, after. I'm using plink/pageant with a the same private key on both. As best I can tell, all the company certificates are present in the Windows Cert Store on both computers.

I currently can't work because of this, and it's driving me mental. Desperate for help.

Thanks.


Answers:
author: Navpreet Ahuja
body: Hi, can you please try any git operation, e.g. \`pull\` without sourcetree. I think the issue is that Git in your new machine doesn't trust the certificate

These links might be useful:

- <https://stackoverflow.com/questions/9072376/configure-git-to-accept-a-particular-self-signed-server-certificate-for-a-partic>

- <https://confluence.atlassian.com/sourcetreekb/resolving-ssl-self-signed-certificate-errors-284368425.html>

Edit: found a [similar answer](https://community.atlassian.com/t5/Sourcetree-questions/How-do-I-resolve-error-msg-SSL-certificate-problem-self-signed/qaq-p/1976699#M41290)


Tags: bitbucket

bitbucket-server

server