Hi Blake,
Thank you for the response, sorry about my custom logs.
I’m using Couchbase 3.0.0, and reproduced the issue on multiple android devices (8.1.0, 11)
For more information, i’m waiting for replication to start and then kill the app or just turn off mobile data multiple times.
I only got these logs in the error file:
22:53:42.325814| [WS] ERROR: {N8litecore4repl12C4SocketImplE#6} WebSocket failed to connect! (reason=Network error 2)
22:53:42.327769| [Sync] ERROR: {Repl#4} Got LiteCore error: Network error 2, "java.net.UnknownHostException: Unable to resolve host "sync-data.apnl-cloud.com": No address associated with hostname"
22:53:42.328518| [Sync] ERROR: {C4Replicator#5} State: connecting, progress=0.00%, error=Network error 2, "java.net.UnknownHostException: Unable to resolve host "sync-data.apnl-cloud.com": No address associated with hostname"
22:53:42.332405| [Sync] ERROR: {C4Replicator#5} Transient error (Network error 2, "java.net.UnknownHostException: Unable to resolve host "sync-data.apnl-cloud.com": No address associated with hostname"); attempt #2 in 2 sec...
22:53:42.333207| [Sync] ERROR: {C4Replicator#5} State: offline, progress=0.00%, error=Network error 2, "java.net.UnknownHostException: Unable to resolve host "sync-data.apnl-cloud.com": No address associated with hostname"
However I did found this in the info logs:
22:54:49.054690| [WS]: [JAVA] WebSocket CLOSED with error
java.net.SocketException: Software caused connection abort
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:114)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:139)
at okio.Okio$2.read(Okio.java:140)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:237)
at okio.RealBufferedSource.request(RealBufferedSource.java:72)
at okio.RealBufferedSource.require(RealBufferedSource.java:65)
at okio.RealBufferedSource.readByte(RealBufferedSource.java:78)
at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:117)
at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:101)
at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:273)
at okhttp3.internal.ws.RealWebSocket$1.onResponse(RealWebSocket.java:209)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
22:54:49.058852| [WS]: {N8litecore4repl12C4SocketImplE#6} sent 6391033 bytes, rcvd 1068, in 13.733 sec (465390/sec, 78/sec)
22:54:49.066116| [BLIP]: {N8litecore4blip10ConnectionE#3} Closed with Network error 22: java.net.SocketException: Software caused connection abort
22:54:49.066346| [BLIP]: {N8litecore4blip6BLIPIOE#9} Notifying 3 outgoing messages they're canceled
22:54:49.066433| [Sync]: {Repl#4} Connection closed with Network error 22: "java.net.SocketException: Software caused connection abort" (state=2)
22:54:49.066533| [BLIP]: {N8litecore4blip6BLIPIOE#9} Notifying 3 incoming messages they're canceled
22:54:49.066710| [Sync]: BLIP sent 11 msgs (6391033 bytes), rcvd 3 msgs (1068 bytes) in 13.740 sec. Max outbox depth was 1, avg 1.00
22:54:49.066838| [Sync]: {N8litecore4repl6PusherE#7} activityLevel=stopped: pendingResponseCount=3, caughtUp=1, changeLists=0, revsInFlight=0, blobsInFlight=3, awaitingReply=2883, revsToSend=0, pushingDocs=3, pendingSequences=3
22:54:49.067940| [Sync]: {Repl#4} activityLevel=busy: connectionState=-1, savingChkpt=0
22:54:49.068052| [Sync]: {N8litecore4repl6PusherE#7} activityLevel=stopped: pendingResponseCount=2, caughtUp=1, changeLists=0, revsInFlight=0, blobsInFlight=3, awaitingReply=2883, revsToSend=0, pushingDocs=2, pendingSequences=0
Please tell me if you need anything more.
Thank you very much