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

Downloading files sometimes fails with SocketTimeout #41

Open
SailReal opened this issue Sep 28, 2023 · 0 comments
Open

Downloading files sometimes fails with SocketTimeout #41

SailReal opened this issue Sep 28, 2023 · 0 comments

Comments

@SailReal
Copy link

A user currently have problems to download the file from the file link request. The request to https://p-lux4.pcloud.com times out:

D	20230928231130.974	OkHttp	--> GET https://api.pcloud.com/stat?path=/Foo/vault.cryptomator http/1.1 (unknown length)
D	20230928231130.974	OkHttp	User-Agent: pCloud SDK Java unspecified
D	20230928231130.974	OkHttp	--> END GET
D	20230928231132.083	OkHttp	<-- 200 OK https://api.pcloud.com/stat?path=/Foo/vault.cryptomator (1108ms)
D	20230928231132.085	OkHttp	Server: CloudHTTPd-API v1.1
D	20230928231132.085	OkHttp	Date: Thu, 28 Sep 2023 21:11:31 GMT
D	20230928231132.086	OkHttp	ETag: "kMpHyQXGLLRP8WDOoYroz8PnNaX0"
D	20230928231132.086	OkHttp	Cache-Control: private, max-age=0
D	20230928231132.086	OkHttp	Vary: Accept-Encoding
D	20230928231132.086	OkHttp	Connection: keep-alive
D	20230928231132.087	OkHttp	Keep-Alive: timeout=1800
D	20230928231132.087	OkHttp	<-- END HTTP
D	20230928231132.089	OkHttp	--> GET https://api.pcloud.com/getfilelink?path=/Foo/vault.cryptomator http/1.1 (unknown length)
D	20230928231132.090	OkHttp	User-Agent: pCloud SDK Java unspecified
D	20230928231132.091	OkHttp	--> END GET
D	20230928231132.286	OkHttp	<-- 200 OK https://api.pcloud.com/getfilelink?path=/Foo/vault.cryptomator (194ms)
D	20230928231132.288	OkHttp	Server: CloudHTTPd-API v1.1
D	20230928231132.289	OkHttp	Date: Thu, 28 Sep 2023 21:11:31 GMT
D	20230928231132.290	OkHttp	ETag: "LLOahKJTpiS8Pi0Qu7wawmT2j8vV"
D	20230928231132.290	OkHttp	Cache-Control: private, max-age=0
D	20230928231132.290	OkHttp	Vary: Accept-Encoding
D	20230928231132.290	OkHttp	Connection: keep-alive
D	20230928231132.291	OkHttp	Keep-Alive: timeout=1800
D	20230928231132.292	OkHttp	<-- END HTTP
D	20230928231132.294	OkHttp	--> GET https://p-lux4.pcloud.com/DLZeCj2q9Zju662lZMOG6ZXZQvODykZ2ZZB9pZZdVZtpZL5ZT7ZCmRJIvMgirJxTC4vgkhjMBFzaxl7/vault.cryptomator http/1.1 (unknown length)
D	20230928231132.294	OkHttp	User-Agent: pCloud SDK Java unspecified
D	20230928231132.294	OkHttp	--> END GET
D	20230928231232.445	OkHttp	<-- HTTP FAILED: java.net.SocketTimeoutException: failed to connect to p-lux4.pcloud.com/45.131.244.155 (port 443) from /10.129.127.130 (port 60100) after 60000ms
D	20230928231232.451	GetUnverifiedVaultConfigUseCase	failed 5cfd43f3
D	20230928231232.460	ExceptionHandler	Unexpected error
org.cryptomator.domain.exception.NetworkConnectionException: org.cryptomator.domain.exception.FatalBackendException: java.net.SocketTimeoutException: failed to connect to p-lux4.pcloud.com/45.131.244.155 (port 443) from /10.129.127.130 (port 60100) after 60000ms
	at org.cryptomator.data.cloud.pcloud.PCloudContentRepository.throwConnectionErrorIfRequired(PCloudContentRepository.kt:33)
	at org.cryptomator.data.cloud.pcloud.PCloudContentRepository.throwWrappedIfRequired(PCloudContentRepository.kt:26)
	at org.cryptomator.data.cloud.InterceptingCloudContentRepository.read(InterceptingCloudContentRepository.kt:173)
	at org.cryptomator.data.repository.DispatchingCloudContentRepository.read(DispatchingCloudContentRepository.kt:160)
	at org.cryptomator.data.cloud.crypto.CryptoCloudFactory.readConfigFileData(CryptoCloudFactory.java:59)
	at org.cryptomator.data.cloud.crypto.CryptoCloudFactory.unverifiedVaultConfig(CryptoCloudFactory.java:52)
	at org.cryptomator.data.repository.CloudRepositoryImpl.unverifiedVaultConfig(CloudRepositoryImpl.java:97)
	at org.cryptomator.domain.usecases.vault.GetUnverifiedVaultConfig.execute(GetUnverifiedVaultConfig.java:28)
	at org.cryptomator.domain.usecases.vault.GetUnverifiedVaultConfigUseCase$Launcher$2.call(GetUnverifiedVaultConfigUseCase.java:92)
	at org.cryptomator.domain.usecases.vault.GetUnverifiedVaultConfigUseCase$Launcher$2.call(GetUnverifiedVaultConfigUseCase.java:86)
	at io.reactivex.internal.operators.flowable.FlowableFromCallable.subscribeActual(FlowableFromCallable.java:39)
	at io.reactivex.Flowable.subscribe(Flowable.java:14935)
	at io.reactivex.Flowable.subscribe(Flowable.java:14882)
	at io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.run(FlowableSubscribeOn.java:82)
	at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker$BooleanRunnable.run(ExecutorScheduler.java:288)
	at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker.run(ExecutorScheduler.java:253)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)
Caused by: org.cryptomator.domain.exception.FatalBackendException: java.net.SocketTimeoutException: failed to connect to p-lux4.pcloud.com/45.131.244.155 (port 443) from /10.129.127.130 (port 60100) after 60000ms
	at org.cryptomator.data.cloud.pcloud.PCloudContentRepository$Intercepted.read(PCloudContentRepository.kt:151)
	at org.cryptomator.data.cloud.pcloud.PCloudContentRepository$Intercepted.read(PCloudContentRepository.kt:48)
	at org.cryptomator.data.cloud.InterceptingCloudContentRepository.read(InterceptingCloudContentRepository.kt:168)
	... 16 more
Caused by: java.net.SocketTimeoutException: failed to connect to p-lux4.pcloud.com/45.131.244.155 (port 443) from /10.129.127.130 (port 60100) after 60000ms
	at libcore.io.IoBridge.connectErrno(IoBridge.java:235)
	at libcore.io.IoBridge.connect(IoBridge.java:179)
	at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436)
	at java.net.Socket.connect(Socket.java:646)
	at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
	at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
	at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
	at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
	at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
	at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
	at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at org.cryptomator.data.cloud.okhttplogging.HttpLoggingInterceptor.getResponseLoggingExceptions(HttpLoggingInterceptor.kt:51)
	at org.cryptomator.data.cloud.okhttplogging.HttpLoggingInterceptor.getAndLogResponse(HttpLoggingInterceptor.kt:42)
	at org.cryptomator.data.cloud.okhttplogging.HttpLoggingInterceptor.proceedWithLogging(HttpLoggingInterceptor.kt:28)
	at org.cryptomator.data.cloud.okhttplogging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:18)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at com.pcloud.sdk.internal.AccessTokenAuthenticator.intercept(AccessTokenAuthenticator.java:50)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at com.pcloud.sdk.internal.GlobalRequestInterceptor.intercept(GlobalRequestInterceptor.java:46)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
	at com.pcloud.sdk.internal.OkHttpCall.execute(OkHttpCall.java:42)
	at com.pcloud.sdk.internal.RealFileLink.download(RealFileLink.java:101)
	at org.cryptomator.data.cloud.pcloud.PCloudImpl.readFile(PCloudImpl.kt:295)
	at org.cryptomator.data.cloud.pcloud.PCloudImpl.writeToData(PCloudImpl.kt:271)
	at org.cryptomator.data.cloud.pcloud.PCloudImpl.read(PCloudImpl.kt:242)
	at org.cryptomator.data.cloud.pcloud.PCloudContentRepository$Intercepted.read(PCloudContentRepository.kt:149)
	... 18 more

ErrorCode: L2G5:B7QI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant