android icon indicating copy to clipboard operation
android copied to clipboard

Connection problems. Data points are collected and only synchronized very slowly. Phonetrack (Nextcloud)

Open ernoj opened this issue 5 months ago • 0 comments

I have a problem, whereby the locations sometimes stack up and are only transmitted after some time. In addition, only 1 point is transmitted at a time and then it takes a while again. As a result, a large number of data points are stored on longer journeys and it takes a very long time for the data to be transmitted to Phonetrack (Nextcloud).

2025-05-05 14:47:32.011 I [DefaultDispatcher-worker-6] MessageProcessor$resendDelayWait: Waiting for 8s before retrying send 2025-05-05 14:47:40.015 D [DefaultDispatcher-worker-6] MessageProcessor: Retry wait finished after 8.003072148s. Cancelled=false} 2025-05-05 14:47:40.020 D [DefaultDispatcher-worker-6] MessageProcessor: Taken message off queue: [MessageLocation id=e60096a2 ts=2025-05-05T12:41:20Z,lat=51.427570104599,long=6.774342894554138,created_at=2025-05-05T12:41:22.069Z,trigger=DEFAULT] 2025-05-05 14:47:40.021 D [DefaultDispatcher-worker-6] HttpMessageProcessorEndpoint: Publishing Message JSON {"_type":"location","_id":"e60096a2","acc":48,"alt":77,"batt":44,"bs":1,"cog":0,"conn":"m","created_at":1746448882,"lat":54.273468327648732,"lon":8.3748374232332323,"m":1,"tid":"ay","topic":"owntracks/user/bluejay","tst":1746448880,"vac":49,"vel":0} 2025-05-05 14:47:50.323 D [DefaultDispatcher-worker-6] HttpMessageProcessorEndpoint: Execute call failed java.net.SocketTimeoutException: timeout at okio.SocketAsyncTimeout.newTimeoutException(SourceFile:5) at okio.InputStreamSource.read(SourceFile:51) at okio.RealBufferedSource.indexOf(SourceFile:242) at okio.RealBufferedSource.readUtf8LineStrict(SourceFile:32) at okhttp3.internal.connection.RouteSelector.readResponseHeaders(SourceFile:49) at okhttp3.internal.connection.Exchange.readResponseHeaders(SourceFile:5) at okhttp3.internal.http.CallServerInterceptor.intercept(SourceFile:255) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:124) at okhttp3.internal.connection.ConnectInterceptor.intercept(SourceFile:91) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:124) at okhttp3.internal.cache.CacheInterceptor.intercept(SourceFile:657) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:124) at okhttp3.internal.http.BridgeInterceptor.intercept(SourceFile:542) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:124) at okhttp3.internal.http.BridgeInterceptor.intercept(SourceFile:143) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:124) at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(SourceFile:91) at okhttp3.internal.connection.RealCall.execute(SourceFile:39) at org.owntracks.android.net.http.HttpMessageProcessorEndpoint.sendMessage-gIAlu-s(SourceFile:237) at org.owntracks.android.services.MessageProcessor.sendAvailableMessages(SourceFile:640) at org.owntracks.android.services.MessageProcessor.access$sendAvailableMessages(SourceFile:1) at org.owntracks.android.services.MessageProcessor$sendAvailableMessages$1.invokeSuspend(Unknown Source:11) at kotlin.coroutines.jvm.internal.ContinuationImpl.resumeWith(SourceFile:9) at kotlinx.coroutines.DispatchedTask.run(SourceFile:109) at androidx.work.Worker$2.run(SourceFile:147) at kotlinx.coroutines.scheduling.TaskImpl.run(SourceFile:3) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:93) Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:118) at java.net.SocketInputStream.read(SocketInputStream.java:173) at java.net.SocketInputStream.read(SocketInputStream.java:143) at org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(SourceFile:25) at org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(SourceFile:173) at org.conscrypt.ConscryptEngineSocket$SSLInputStream.readUntilDataAvailable(SourceFile:1) at org.conscrypt.ConscryptEngineSocket$SSLInputStream.read(SourceFile:14) at okio.InputStreamSource.read(SourceFile:97) at okio.InputStreamSource.read(SourceFile:24) ... 25 more

2025-05-05 14:47:50.324 W [DefaultDispatcher-worker-6] MessageProcessor: Error sending message [MessageLocation id=e60096a2 ts=2025-05-05T12:41:20Z,lat=54.273468327648732,long=8.3748374232332323,created_at=2025-05-05T12:41:22.069Z,trigger=DEFAULT]. Re-queueing org.owntracks.android.net.MessageProcessorEndpoint$OutgoingMessageSendingException: java.net.SocketTimeoutException: timeout at org.owntracks.android.net.http.HttpMessageProcessorEndpoint.sendMessage-gIAlu-s(SourceFile:699) at org.owntracks.android.services.MessageProcessor.sendAvailableMessages(SourceFile:640) at org.owntracks.android.services.MessageProcessor.access$sendAvailableMessages(SourceFile:1) at org.owntracks.android.services.MessageProcessor$sendAvailableMessages$1.invokeSuspend(Unknown Source:11) at kotlin.coroutines.jvm.internal.ContinuationImpl.resumeWith(SourceFile:9) at kotlinx.coroutines.DispatchedTask.run(SourceFile:109) at androidx.work.Worker$2.run(SourceFile:147) at kotlinx.coroutines.scheduling.TaskImpl.run(SourceFile:3) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:93) Caused by: java.net.SocketTimeoutException: timeout at okio.SocketAsyncTimeout.newTimeoutException(SourceFile:5) at okio.InputStreamSource.read(SourceFile:51) at okio.RealBufferedSource.indexOf(SourceFile:242) at okio.RealBufferedSource.readUtf8LineStrict(SourceFile:32) at okhttp3.internal.connection.RouteSelector.readResponseHeaders(SourceFile:49) at okhttp3.internal.connection.Exchange.readResponseHeaders(SourceFile:5) at okhttp3.internal.http.CallServerInterceptor.intercept(SourceFile:255) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:124) at okhttp3.internal.connection.ConnectInterceptor.intercept(SourceFile:91) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:124) at okhttp3.internal.cache.CacheInterceptor.intercept(SourceFile:657) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:124) at okhttp3.internal.http.BridgeInterceptor.intercept(SourceFile:542) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:124) at okhttp3.internal.http.BridgeInterceptor.intercept(SourceFile:143) at okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:124) at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(SourceFile:91) at okhttp3.internal.connection.RealCall.execute(SourceFile:39) at org.owntracks.android.net.http.HttpMessageProcessorEndpoint.sendMessage-gIAlu-s(SourceFile:237) ... 8 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:118) at java.net.SocketInputStream.read(SocketInputStream.java:173) at java.net.SocketInputStream.read(SocketInputStream.java:143) at org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(SourceFile:25) at org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(SourceFile:173) at org.conscrypt.ConscryptEngineSocket$SSLInputStream.readUntilDataAvailable(SourceFile:1) at org.conscrypt.ConscryptEngineSocket$SSLInputStream.read(SourceFile:14) at okio.InputStreamSource.read(SourceFile:97) at okio.InputStreamSource.read(SourceFile:24) ... 25 more

Originally posted by @ernoj in #2023

ernoj avatar May 05 '25 12:05 ernoj