Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AppCenter] java.net.SocketTimeoutException: SSL handshake timed out #851

Closed
petr-pokorny-1 opened this issue Aug 9, 2019 · 8 comments
Closed
Labels
analytics Related to App Center's analytics service

Comments

@petr-pokorny-1
Copy link

petr-pokorny-1 commented Aug 9, 2019

I my xamarin.forms app (android), my crashes does not appear in appcenter web console. I just tested it by generating test crash.
I see a lot of errors in the log file:

[AppCenter] Try #1 failed and will be retried in 8899 ms
[AppCenter] java.net.SocketTimeoutException: SSL handshake timed out
[AppCenter] 	at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
[AppCenter] 	at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:357)
[AppCenter] 	at com.android.okhttp.Connection.connectTls(Connection.java:235)
[AppCenter] 	at com.android.okhttp.Connection.connectSocket(Connection.java:199)
[AppCenter] 	at com.android.okhttp.Connection.connect(Connection.java:172)
[AppCenter] 	at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)
[AppCenter] 	at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:130)
[AppCenter] 	at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329)
[AppCenter] 	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)
[AppCenter] 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
[AppCenter] 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)
[AppCenter] 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:257)
[AppCenter] 	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
[AppCenter] 	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
[AppCenter] 	at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doHttpCall(DefaultHttpClientCallTask.java:277)
[AppCenter] 	at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doInBackground(DefaultHttpClientCallTask.java:328)
[AppCenter] 	at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doInBackground(DefaultHttpClientCallTask.java:47)
[AppCenter] 	at android.os.AsyncTask$2.call(AsyncTask.java:305)
[AppCenter] 	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
[AppCenter] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
[AppCenter] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
[AppCenter] 	at java.lang.Thread.run(Thread.java:761)

Appcenter sttus page says "All Systems Operational"
https://kkc10kz2t8yc.statuspage.io/

@wist214
Copy link

wist214 commented Aug 9, 2019

I have the same problem on xamarin forms (android). I use Analytics and Crashes moduls.
I've tried different version on nuget, the problem is the same.
08-09 15:07:44.488 W/AppCenter(28658): Try #1 failed and will be retried in 8583 ms
08-09 15:07:44.488 W/AppCenter(28658): java.net.SocketTimeoutException: SSL handshake timed out

08-09 15:08:53.246 W/AppCenter(28658): Try #2 failed and will be retried in 190071 ms
08-09 15:08:53.246 W/AppCenter(28658): java.net.SocketTimeoutException: failed to connect to in.appcenter.ms/104.208.240.18 (port 443) from /192.168.43.245 (port 43578) after 60000ms

@yoannchaudet
Copy link

Hello,

Can you reproduce the issue? This looks related to this past incident that made our ingestion endpoint unavailable for a short moment.

SDK are expected to keep logs on local storage and send them at a later time.

@DaveBrickley
Copy link

I am getting this issue 100% on startup of a Xamarin Android project consuming the App Center module

@MatkovIvan
Copy link

@DaveBrickley please check the date and time on the device (it's required for https connection). If it's still the problem, please open support ticket on the portal. Thanks

@DaveBrickley
Copy link

@MatkovIvan Date and time on the physical device appear to be correc

@unnikrishnan-anil
Copy link

Is this issue still present? I get the same error:

W/AppCenter: Try #1 failed and will be retried in 5767 ms java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:215) at java.net.SocketInputStream.read(SocketInputStream.java:144) at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(ConscryptEngineSocket.java:936) at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:900) at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.access$100(ConscryptEngineSocket.java:722) at com.android.org.conscrypt.ConscryptEngineSocket.doHandshake(ConscryptEngineSocket.java:238) at com.android.org.conscrypt.ConscryptEngineSocket.startHandshake(ConscryptEngineSocket.java:217) at com.android.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:1450) at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:1399) at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:1343) at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:221) at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:144) at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:106) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:400) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:333) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:465) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:219) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:30) at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doHttpCall(DefaultHttpClientCallTask.java:226) at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doInBackground(DefaultHttpClientCallTask.java:279) at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doInBackground(DefaultHttpClientCallTask.java:48)

@arnzuk
Copy link

arnzuk commented Oct 14, 2021

Hi, I am getting same error too:

[AppCenter] Try #1 failed and will be retried in 6952 ms
[AppCenter] at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.access$100(ConscryptEn10-14 10:37:51.636 W/AppCenter( 8203): java.net.SocketTimeoutException: Read timed out
[AppCenter] at java.net.SocketInputStream.socketRead0(Native Method)
[AppCenter] at java.net.SocketInputStream.socketRead(SocketInputStream.java:119)
[AppCenter] at java.net.SocketInputStream.read(SocketInputStream.java:176)
[AppCenter] at java.net.SocketInputStream.read(SocketInputStream.java:144)
[AppCenter] at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(ConscryptEngineSocket.java:936)
[AppCenter] at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:900)
[AppCenter] at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.access$100(ConscryptEngineSocket.java:722)
[AppCenter] at com.android.org.conscrypt.ConscryptEngineSocket.doHandshake(ConscryptEngineSocket.java:238)
[AppCenter] at com.android.org.conscrypt.ConscryptEngineSocket.startHandshake(ConscryptEngineSocket.java:217)
[AppCenter] at com.android.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:196)
[AppCenter] at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:153)
[AppCenter] at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:116)
[AppCenter] at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:186)
[AppCenter] at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:128)
[AppCenter] at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:289)
[AppCenter] at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:232)
[AppCenter] at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:465)
[AppCenter] at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
[AppCenter] at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)
[AppCenter] at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:219)
[AppCenter] at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:30)
[AppCenter] at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doHttpCall(DefaultHttpClientCallTask.java:226)
[AppCenter] at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doInBackground(DefaultHttpClientCallTask.java:279)
[AppCenter] at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doInBackground(DefaultHttpClientCallTask.java:48)
[AppCenter] at android.os.AsyncTask$3.call(AsyncTask.java:394)
[AppCenter] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[AppCenter] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
[AppCenter] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
[AppCenter] at java.lang.Thread.run(Thread.java:923)

@AnastasiaKubova
Copy link

Hi there! Thanks for getting in touch with us!
Unfortunately, sometimes it can happen due to country specific policies and laws. Please see this docs.

I can suggest you try to change the DNS settings on your phone or try to switch to another network connection (for example turn off Wi-Fi and turn on mobile data instead) or use VPN, but this does not guarantee a complete solution to the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analytics Related to App Center's analytics service
Projects
None yet
Development

No branches or pull requests

9 participants