question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to read data from the transport connection Exception

See original GitHub issue

I am attempting to set up a self-hosted agent on a server but cannot get past the first “Authentication” step. The error log is filled up with:

[2020-05-23 17:02:06Z ERR  RunnerServer] System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
 ---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
   at System.Net.FixedSizeReader.ReadPacketAsync(Stream transport, AsyncProtocolRequest request)
   at System.Net.Security.SslStream.ThrowIfExceptional()
   at System.Net.Security.SslStream.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.Security.SslStream.EndProcessAuthentication(IAsyncResult result)
   at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)
   at System.Net.Security.SslStream.<>c.<AuthenticateAsClientAsync>b__65_1(IAsyncResult iar)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at GitHub.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at GitHub.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
   at GitHub.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
   at GitHub.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
   at GitHub.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
   at GitHub.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
   at GitHub.Runner.Common.RunnerServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout)

I have tried turning the firewall off to no success. This server does sit behind a VPN, but I can communicate with GitHub just fine when RDP’d onto it. Find log attached: Runner_20200523-170124-utc.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
nikola-jokiccommented, Feb 23, 2022

Hi everyone,

This issue does not seem to be related to the runner itself, but rather to the host environment. If you are experiencing this issue on the GitHub hosted runners, please post your issue in the Virtual Environments Repository to ensure the correct team sees it.

Since we are trying to keep issues related to the runner itself, I am closing this issue now. But if you disagree, feel free to re-open this issue 😊

1reaction
axc450commented, Feb 15, 2022

@axc450 I am facing same issue and was wondering how you managed to resolve this? Also, how you managed to know the list of supported Cipher suites for https://pipelines.actions.githubusercontent.com? Because the URL is not opening through browser

We updated our Windows server to get the most up-to-date cypher suites. I used https://www.ssllabs.com/ssltest/ to check the SSL status of the domain.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to read data from the transport connection
This error usually means that the target machine is running, but the service that you're trying to connect to is not available. (Either...
Read more >
Error: Unable to read data from the transport connection
Error: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Read more >
System.IO.IOException: Unable to read data from the ...
Hi, I don't understand why some times I got the below exception? System.AggregateException: One or more errors occurred. (The SSL connection ...
Read more >
Error: Unable to Read Data from the Transport Connection
Answer: This error is a generic error from your SMTP Server. Attempt to resend these excepted emails. If the problem persists, you will...
Read more >
An existing connection was forcibly closed by the remote host
This error has been known to occur when IIS is configured for HTTPS, yet no certificate has been specified or when an expired...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found