Unable to launch sourcetree after sequential packaging with APPV-5.1
Asked by Sridhar Allada:

Hi,

We have done sequential packaging with APPV-5.1 for source tree.But while launching source tree its opening and closing immediately just like Flash.No error messages or warnings.

Also we have packaged the dependency git client and also we have installed .NET framework 4.7.2 in the machine.Can you please let me know if we are missing anything here.

PFB system details we are using

OS:WIndows server 2012

CPU:4 cpu's

RAM:16 GB


Answers:
author: Sridhar Allada
body: Hi Michael,

I have collected the logs. Can you please have a look and suggest me what can be the issue.

ERROR \[2019-03-05 10:07:37,759\] \[27\] \[Sourcetree.Analytics.Emau.EMauSubmissionService\] \[Log\] - POST MAU submission FAILED  
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---\> System.Net.WebException: Unable to connect to the remote server ---\> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xx.xx.xx.xx:443  
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)  
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket\& socket, IPAddress\& address, ConnectSocketState state, IAsyncResult asyncResult, Exception\& exception)  
--- 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 System.Net.Http.HttpClient.\<FinishSendAsyncUnbuffered\>d__59.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 Refit.RequestBuilderImplementation.\<\>c__DisplayClass11_0\`1.\<\<BuildCancellableTaskFuncForMethod\>b__0\>d.MoveNext() in D:\\a\\1\\s\\Refit\\RequestBuilderImplementation.cs:line 224  
--- 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 Atlassian.AnalyticsService.Client.AnalyticsServiceClient.\<Post\>d__14.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 Sourcetree.Analytics.Emau.EMauSubmissionService.\<SubmitBatch\>d__59.MoveNext()  
ERROR \[2019-03-05 10:07:37,759\] \[1\] \[SourceTree.UI.OnboardingManager\] \[Log\] - Unable to submit Finished Registration Analytics  
System.AggregateException: One or more errors occurred. ---\> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---\> System.Net.WebException: Unable to connect to the remote server ---\> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xx.xxx.xx.xx:443  
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)  
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket\& socket, IPAddress\& address, ConnectSocketState state, IAsyncResult asyncResult, Exception\& exception)  
--- 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 System.Net.Http.HttpClient.\<FinishSendAsyncUnbuffered\>d__59.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 Refit.RequestBuilderImplementation.\<\>c__DisplayClass11_0\`1.\<\<BuildCancellableTaskFuncForMethod\>b__0\>d.MoveNext() in E:\\RequestBuilderImplementation.cs:line 224  
--- End of inner exception stack trace ---  
at System.Threading.Tasks.Task\`1.GetResultCore(Boolean waitCompletionNotification)  
at SourceTree.Mau.Submission.Gas.GasMauSubmissionService.Submit(GasEvent userActivityEvent)  
at SourceTree.Mau.Submission.Gas.GasMauSubmissionService.ForceSubmission()  
at SourceTree.Analytics.AnalyticsDataManager.ForceSubmission()  
at SourceTree.UI.OnboardingManager.SubmitStartedRegistrationAnalytics()  
---\> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---\> System.Net.WebException: Unable to connect to the remote server ---\> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond XX.XX.XX.XX:443  
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)  
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket\& socket, IPAddress\& address, ConnectSocketState state, IAsyncResult asyncResult, Exception\& exception)


author: minnsey
body: Hi  

We don't test with APPV so I'm not sure of what effect it will have on Sourcetree.  

But if Sourcetree starts at all it should log to %localappdata%\\Atlassian\\Sourcetree\\Sourcetree.log is there anything there, or in the Event Viewer?