Jump to content
Ardemius

Synchronization failed - network issue because of proxy (AdBlock Plus)

Recommended Posts

Hi,

 

Just a post to explain my issue, and the solution found

On my tablet, a galaxy Tab S using Samsung layer over Lollipop 5.0.2, I systematically have a synchronisation issue when uploading data over Wifi.

 

After several tries, I found that this issue was due to AdBlock Plus Androïd application, forcing all network communication to be done through its proxy (on localhost and port 2020 as usual).

When looking at Evernote logs, I found the following errors:

2015-04-11 18:48:06,234 ERROR [ak] - retryRequest()::executionCount1:: exception=javax.net.ssl.SSLProtocolException: Read error: ssl=0xaf59c200: Failure in SSL library, usually a protocol errorjavax.net.ssl.SSLProtocolException: Read error: ssl=0xaf59c200: Failure in SSL library, usually a protocol errorcom.android.org.conscrypt.NativeCrypto.SSL_read(Native Method)com.android.org.conscrypt.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketImpl.java:728)org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:191)org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:82)org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:180)org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)org.apache.http.impl.client.DefaultRequestDirector.executeOriginal(DefaultRequestDirector.java:1393)org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:702)org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:694)org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:516)org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:494)com.evernote.android.a.h.b(TAndroidHttpClient.java:181)com.evernote.e.h.i.m(UserStore.java:373)com.evernote.e.h.i.e(UserStore.java:364)com.evernote.client.f.b(BaseSession.java:162)com.evernote.client.t.b(EvernoteSession.java:767)com.evernote.client.SyncService.a(SyncService.java:6461)com.evernote.ui.fh.run(EvernotePreferenceActivity.java:179)[...]2015-04-11 18:48:21,111 ERROR [ak] - retryRequest()::executionCount1:: exception=java.net.SocketTimeoutException: Read timed outjava.net.SocketTimeoutException: Read timed outcom.android.org.conscrypt.NativeCrypto.SSL_read(Native Method)com.android.org.conscrypt.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketImpl.java:728)org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:191)org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:82)org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:180)org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)org.apache.http.impl.client.DefaultRequestDirector.executeOriginal(DefaultRequestDirector.java:1393)org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:702)org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:694)org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:516)org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:494)com.evernote.android.a.h.b(TAndroidHttpClient.java:181)com.evernote.e.f.w.e(NoteStore.java:1907)com.evernote.e.f.w.b(NoteStore.java:1898)com.evernote.client.f.b(BaseSession.java:378)com.evernote.client.SyncService.a(SyncService.java:4171)com.evernote.client.SyncService.a(SyncService.java:3130)com.evernote.client.SyncService.a(SyncService.java:3045)com.evernote.client.SyncService.o(SyncService.java:3262)com.evernote.client.SyncService.onHandleIntent(SyncService.java:10464)android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)android.os.Handler.dispatchMessage(Handler.java:102)android.os.Looper.loop(Looper.java:145)android.os.HandlerThread.run(HandlerThread.java:61)

If I desactivate the proxy (direct connexion again), no more issue, the data upload works fine.

 

I also made tries with Evernote on my desktop and Androïd phone (plain Lollipop 5.1), with AdBlock Plus again, and this problem does not exit.

 

Does the issue come from a SSL issue when the data upload goes through a proxy on 5.0.2? I can't be sure.

But, as I think many people still use Lollipop 5.0.2 and AdBlock Plus, I write this post just to give the workaround: if facing the issue in the same configuration as me, just desactivate AdBlock Plus proxy, and EverNote will work well again  ;)

 

Regards,

Ardemius

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...