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

cdav works in web broswer but not on client app : help needed ? #31

Open
jbonlinea opened this issue Aug 29, 2019 · 2 comments
Open

cdav works in web broswer but not on client app : help needed ? #31

jbonlinea opened this issue Aug 29, 2019 · 2 comments

Comments

@jbonlinea
Copy link

Hi,

Thank you for this very usefull plugin.

I installed th plugin and tested it folowing the troubleshooting section of the read me and can browse through the DAVx⁵ url https://mydomain.com/custom/cdav/

However I can't access to the XX-DAV server from thunderbird or androix DAVx⁵ and I can'f figure out what I may have done wrong ?

From my web server dolibarr is install at this path / ; and not inside the htdocs folder ; and my module are all installed and running from /custom/moduleXX/

Thank's in advance !


thunderbird, TbSync and CalDav & CardDav Provider module are installed

I did try the auto detect and manual install folowing the instruction and the readme, but the connexion fails with the folowing logs :

Could not connect to serveur (NS_ERROR_NET_INTERUPT)
Account: myTbSyncAccountName
URL : https://mydomain.com/custom/cdav/server.php/calendars/MyDolibarrUser/1-cal-MyDolibarrUser (PROPFIND)

Could not connect to serveur (NS_ERROR_NET_INTERUPT)
Account: myTbSyncAccountName
URL : https://mydomain.com/custom/cdav/server.php/addressbooks/MyDolibarrUser/default (PROPFIND)


in DAVx⁵ on adroid I used the url https://mydomain.com/custom/cdav/ and I get :

LOGS:
2019-08-29 12:18:22 15072 [ui.setup.DavResourceFinder] Finding initial carddav service configuration
2019-08-29 12:18:22 15072 [ui.setup.DavResourceFinder] Checking user-given URL: https://mydomain.com/custom/cdav/
2019-08-29 12:18:22 15072 [HttpClient] --> PROPFIND https://mydomain.com/custom/cdav/
2019-08-29 12:18:22 15072 [HttpClient] Content-Type: application/xml; charset=utf-8
2019-08-29 12:18:22 15072 [HttpClient] Content-Length: 290
2019-08-29 12:18:22 15072 [HttpClient] Depth: 0
2019-08-29 12:18:22 15072 [HttpClient]
2019-08-29 12:18:22 15072 [HttpClient] <CARD:addressbook-description /><CARD:addressbook-home-set />
2019-08-29 12:18:22 15072 [HttpClient] --> END PROPFIND (290-byte body)
2019-08-29 12:18:22 15072 [HttpClient] <-- HTTP FAILED: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2019-08-29 12:18:22 15072 [ui.setup.DavResourceFinder] PROPFIND/OPTIONS on user-given URL failed
EXCEPTION okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:158)
at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:131)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.dav4jvm.BasicDigestAuthHandler.intercept(BasicDigestAuthHandler.kt:291)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.davdroid.HttpClient$UserAgentInterceptor.intercept(HttpClient.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:225)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:250)
at okhttp3.RealCall.execute(RealCall.java:93)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:323)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:34)
at at.bitfire.dav4jvm.DavResource.followRedirects(DavResource.kt:378)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:318)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:180)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:115)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:73)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

2019-08-29 12:18:22 15072 [HttpClient] --> PROPFIND https://mydomain.com/.well-known/carddav
2019-08-29 12:18:22 15072 [HttpClient] Content-Type: application/xml; charset=utf-8
2019-08-29 12:18:22 15072 [HttpClient] Content-Length: 198
2019-08-29 12:18:22 15072 [HttpClient] Depth: 0
2019-08-29 12:18:22 15072 [HttpClient]
2019-08-29 12:18:22 15072 [HttpClient]
2019-08-29 12:18:22 15072 [HttpClient] --> END PROPFIND (198-byte body)
2019-08-29 12:18:22 15072 [HttpClient] <-- HTTP FAILED: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2019-08-29 12:18:22 15072 [ui.setup.DavResourceFinder] Well-known URL detection failed
EXCEPTION okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:158)
at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:131)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.dav4jvm.BasicDigestAuthHandler.intercept(BasicDigestAuthHandler.kt:291)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.davdroid.HttpClient$UserAgentInterceptor.intercept(HttpClient.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:225)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:250)
at okhttp3.RealCall.execute(RealCall.java:93)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:323)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:34)
at at.bitfire.dav4jvm.DavResource.followRedirects(DavResource.kt:378)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:318)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:385)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:119)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:73)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

2019-08-29 12:18:23 15072 [ui.setup.DavResourceFinder] No principal found at user-given URL, trying to discover
2019-08-29 12:18:23 15072 [ui.setup.DavResourceFinder] Looking up SRV records for _carddavs._tcp.mydomain.com
2019-08-29 12:18:23 15072 [ui.setup.DavResourceFinder] Didn't find carddav service, trying at https://mydomain.com:443
2019-08-29 12:18:23 15072 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://mydomain.com/.well-known/carddav
2019-08-29 12:18:23 15072 [HttpClient] --> PROPFIND https://mydomain.com/.well-known/carddav
2019-08-29 12:18:23 15072 [HttpClient] Content-Type: application/xml; charset=utf-8
2019-08-29 12:18:23 15072 [HttpClient] Content-Length: 198
2019-08-29 12:18:23 15072 [HttpClient] Depth: 0
2019-08-29 12:18:23 15072 [HttpClient]
2019-08-29 12:18:23 15072 [HttpClient]
2019-08-29 12:18:23 15072 [HttpClient] --> END PROPFIND (198-byte body)
2019-08-29 12:18:23 15072 [HttpClient] <-- HTTP FAILED: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2019-08-29 12:18:23 15072 [ui.setup.DavResourceFinder] No resource found
EXCEPTION okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:158)
at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:131)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.dav4jvm.BasicDigestAuthHandler.intercept(BasicDigestAuthHandler.kt:291)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.davdroid.HttpClient$UserAgentInterceptor.intercept(HttpClient.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:225)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:250)
at okhttp3.RealCall.execute(RealCall.java:93)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:323)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:34)
at at.bitfire.dav4jvm.DavResource.followRedirects(DavResource.kt:378)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:318)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:385)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:365)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:138)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:73)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

2019-08-29 12:18:23 15072 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://mydomain.com/
2019-08-29 12:18:23 15072 [HttpClient] --> PROPFIND https://mydomain.com/
2019-08-29 12:18:23 15072 [HttpClient] Content-Type: application/xml; charset=utf-8
2019-08-29 12:18:23 15072 [HttpClient] Content-Length: 198
2019-08-29 12:18:23 15072 [HttpClient] Depth: 0
2019-08-29 12:18:23 15072 [HttpClient]
2019-08-29 12:18:23 15072 [HttpClient]
2019-08-29 12:18:23 15072 [HttpClient] --> END PROPFIND (198-byte body)
2019-08-29 12:18:23 15072 [HttpClient] <-- HTTP FAILED: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2019-08-29 12:18:23 15072 [ui.setup.DavResourceFinder] No resource found
EXCEPTION okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:158)
at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:131)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.dav4jvm.BasicDigestAuthHandler.intercept(BasicDigestAuthHandler.kt:291)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.davdroid.HttpClient$UserAgentInterceptor.intercept(HttpClient.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:225)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:250)
at okhttp3.RealCall.execute(RealCall.java:93)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:323)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:34)
at at.bitfire.dav4jvm.DavResource.followRedirects(DavResource.kt:378)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:318)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:385)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:365)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:138)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:73)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

2019-08-29 12:18:23 15072 [ui.setup.DavResourceFinder] Finding initial caldav service configuration
2019-08-29 12:18:23 15072 [ui.setup.DavResourceFinder] Checking user-given URL: https://mydomain.com/custom/cdav/
2019-08-29 12:18:23 15072 [HttpClient] --> PROPFIND https://mydomain.com/custom/cdav/
2019-08-29 12:18:23 15072 [HttpClient] Content-Type: application/xml; charset=utf-8
2019-08-29 12:18:23 15072 [HttpClient] Content-Length: 435
2019-08-29 12:18:23 15072 [HttpClient] Depth: 0
2019-08-29 12:18:23 15072 [HttpClient]
2019-08-29 12:18:23 15072 [HttpClient] <n0:calendar-color xmlns:n0="http://apple.com/ns/ical/" /><CAL:calendar-description /><CAL:calendar-timezone /><CAL:supported-calendar-component-set /><CAL:calendar-home-set />
2019-08-29 12:18:23 15072 [HttpClient] --> END PROPFIND (435-byte body)
2019-08-29 12:18:24 15072 [HttpClient] <-- HTTP FAILED: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2019-08-29 12:18:24 15072 [ui.setup.DavResourceFinder] PROPFIND/OPTIONS on user-given URL failed
EXCEPTION okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:158)
at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:131)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.dav4jvm.BasicDigestAuthHandler.intercept(BasicDigestAuthHandler.kt:291)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.davdroid.HttpClient$UserAgentInterceptor.intercept(HttpClient.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:225)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:250)
at okhttp3.RealCall.execute(RealCall.java:93)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:323)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:34)
at at.bitfire.dav4jvm.DavResource.followRedirects(DavResource.kt:378)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:318)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:189)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:115)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:80)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

2019-08-29 12:18:24 15072 [HttpClient] --> PROPFIND https://mydomain.com/.well-known/caldav
2019-08-29 12:18:24 15072 [HttpClient] Content-Type: application/xml; charset=utf-8
2019-08-29 12:18:24 15072 [HttpClient] Content-Length: 198
2019-08-29 12:18:24 15072 [HttpClient] Depth: 0
2019-08-29 12:18:24 15072 [HttpClient]
2019-08-29 12:18:24 15072 [HttpClient]
2019-08-29 12:18:24 15072 [HttpClient] --> END PROPFIND (198-byte body)
2019-08-29 12:18:24 15072 [HttpClient] <-- HTTP FAILED: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2019-08-29 12:18:24 15072 [ui.setup.DavResourceFinder] Well-known URL detection failed
EXCEPTION okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:158)
at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:131)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.dav4jvm.BasicDigestAuthHandler.intercept(BasicDigestAuthHandler.kt:291)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.davdroid.HttpClient$UserAgentInterceptor.intercept(HttpClient.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:225)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:250)
at okhttp3.RealCall.execute(RealCall.java:93)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:323)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:34)
at at.bitfire.dav4jvm.DavResource.followRedirects(DavResource.kt:378)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:318)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:385)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:119)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:80)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

2019-08-29 12:18:24 15072 [ui.setup.DavResourceFinder] No principal found at user-given URL, trying to discover
2019-08-29 12:18:24 15072 [ui.setup.DavResourceFinder] Looking up SRV records for _caldavs._tcp.mydomain.com
2019-08-29 12:18:24 15072 [ui.setup.DavResourceFinder] Didn't find caldav service, trying at https://mydomain.com:443
2019-08-29 12:18:24 15072 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://mydomain.com/.well-known/caldav
2019-08-29 12:18:24 15072 [HttpClient] --> PROPFIND https://mydomain.com/.well-known/caldav
2019-08-29 12:18:24 15072 [HttpClient] Content-Type: application/xml; charset=utf-8
2019-08-29 12:18:24 15072 [HttpClient] Content-Length: 198
2019-08-29 12:18:24 15072 [HttpClient] Depth: 0
2019-08-29 12:18:24 15072 [HttpClient]
2019-08-29 12:18:24 15072 [HttpClient]
2019-08-29 12:18:24 15072 [HttpClient] --> END PROPFIND (198-byte body)
2019-08-29 12:18:24 15072 [HttpClient] <-- HTTP FAILED: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2019-08-29 12:18:24 15072 [ui.setup.DavResourceFinder] No resource found
EXCEPTION okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:158)
at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:131)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.dav4jvm.BasicDigestAuthHandler.intercept(BasicDigestAuthHandler.kt:291)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.davdroid.HttpClient$UserAgentInterceptor.intercept(HttpClient.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:225)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:250)
at okhttp3.RealCall.execute(RealCall.java:93)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:323)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:34)
at at.bitfire.dav4jvm.DavResource.followRedirects(DavResource.kt:378)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:318)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:385)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:365)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:138)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:80)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

2019-08-29 12:18:24 15072 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://mydomain.com/
2019-08-29 12:18:24 15072 [HttpClient] --> PROPFIND https://mydomain.com/
2019-08-29 12:18:24 15072 [HttpClient] Content-Type: application/xml; charset=utf-8
2019-08-29 12:18:24 15072 [HttpClient] Content-Length: 198
2019-08-29 12:18:24 15072 [HttpClient] Depth: 0
2019-08-29 12:18:24 15072 [HttpClient]
2019-08-29 12:18:24 15072 [HttpClient]
2019-08-29 12:18:24 15072 [HttpClient] --> END PROPFIND (198-byte body)
2019-08-29 12:18:25 15072 [HttpClient] <-- HTTP FAILED: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2019-08-29 12:18:25 15072 [ui.setup.DavResourceFinder] No resource found
EXCEPTION okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:158)
at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:131)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.dav4jvm.BasicDigestAuthHandler.intercept(BasicDigestAuthHandler.kt:291)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at at.bitfire.davdroid.HttpClient$UserAgentInterceptor.intercept(HttpClient.kt:247)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:225)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:250)
at okhttp3.RealCall.execute(RealCall.java:93)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:323)
at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:34)
at at.bitfire.dav4jvm.DavResource.followRedirects(DavResource.kt:378)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:318)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:385)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:365)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:138)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:80)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

SOFTWARE INFORMATION

  • at.bitfire.davdroid 2.5.4.1-ose (299) from com.google.android.packageinstaller
  • com.android.providers.contacts 7.0 (24)
  • com.android.providers.calendar 7.0 (24)
  • com.android.contacts 9.6.0.8 (100)
  • com.android.calendar 9.2.1.4 (9020104)

CONNECTIVITY (at the moment)
Active connection: mobile, CONNECTED

CONFIGURATION
Power saving disabled: yes
android.permission.READ_CONTACTS: denied
android.permission.WRITE_CONTACTS: denied
android.permission.READ_CALENDAR: denied
android.permission.WRITE_CALENDAR: denied
org.dmfs.permission.READ_TASKS: denied
org.dmfs.permission.WRITE_TASKS: denied
android.permission.ACCESS_COARSE_LOCATION: denied
System-wide synchronization: manually

SQLITE DUMP
android_metadata
| locale |
| fr_FR |

room_master_table
| id | identity_hash |
| 42 | a7554d1ebc5ecfe0c7aefe271485d63c |

service
| id | accountName | type | principal |

sqlite_sequence
| name | seq |

homeset
| id | serviceId | url | privBind | displayName |

collection
| id | serviceId | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | supportsVJOURNAL | source | sync |

SYSTEM INFORMATION
Android version: 7.0 (AL1512-mido-build-XXXXXXXXXX)
Device: Xiaomi Redmi Note 4 (mido)

@jpfox
Copy link
Member

jpfox commented Aug 29, 2019

Hi,

Are you using last github version? DoliStore version could be outdated. Last commits correct this kind of troubles.
Donwload last version from this link, unzip and rename included folder from cdav-master to cdav.

https://github.com/Befox/cdav/archive/master.zip

Let me know

@jbonlinea
Copy link
Author

Hi,

Thank's for your reply.

That's exactly what I did the very first time !

As I can browse from DAVx⁵ url https://mydomain.com/custom/cdav/ I did not consider it might be a server issue, but here are some basic info in case it's needed.

Run on php 7.1 cgi using cloud linux on top of centOS and the htacces file of the cdav module folder contains

 ## HTTP Auth workaround for php in fastcgi mode
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
<IfModule mod_fastcgi.c>
	<IfModule mod_rewrite.c>
		RewriteEngine on
		RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
	</IfModule>
	# for Apache 2.4.13 or later
	<IfVersion >= 2.4.13>
		CGIPassAuth on
	</IfVersion>
</IfModule>

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

2 participants