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

Cannot connect with CardBook #9869

Closed
biva opened this Issue Jun 14, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@biva
Copy link

biva commented Jun 14, 2018

I have issues to connect my Nextcloud with CardBook on Thunderbird, while it works on DavDroid. I get a validation error when creating a new address book to sync with Nextcloud.

We are trying to find a solution with CardBookd developer on https://gitlab.com/CardBook/CardBook/issues/306 but without success. You'll find all our investigation there.

Steps:

  1. Create new address book
  2. Enter CalDAV info (https://nextcloud.mysite.com/remote.php/dav/addressbooks/users/sisim/Perso/
  3. Credentials, click Validate
  4. Error message: "Validation en erreur"

Version:

TB 60.0b7
Cardbook 29.6
Nextcloud 13.0.4
Contacts app 2.1.5

Cardbook Log:

2018.06.14 08:52:34:342 : Validation module : Requête de validation sans découverte d'URL sur https://nextcloud.mysite.com/remote.php/dav/addressbooks/users/sisim/Perso/ …
2018.06.14 08:52:34:346 : Validation module : debug mode : method : (new String("PROPFIND"))
2018.06.14 08:52:34:346 : Validation module : debug mode : headers : (new String("depth: \"1\", content-type: \"application/xml; charset=utf-8\", User-Agent: \"Thunderbird CardBook/29.6\", Authorization: \"Basic \"*****\""))
2018.06.14 08:52:34:346 : Validation module : debug mode : body : (new String("<?xml version=\"1.0\" encoding=\"utf-8\"?><D:propfind xmlns:D=\"DAV:\"><D:prop><D:resourcetype/><D:displayname/></D:prop></D:propfind>"))
2018.06.14 08:52:34:346 : Validation module : debug mode : username : (new String("sisim"))
2018.06.14 08:52:34:346 : Validation module : debug mode : url : (new String("https://nextcloud.mysite.com/remote.php/dav/addressbooks/users/sisim/Perso/"))
2018.06.14 08:52:34:415 : Validation module : debug mode : response code : (new Number(503))
2018.06.14 08:52:34:416 : Validation module : Synchronisation en erreur (étape : validateWithoutDiscovery, url : https://nextcloud.mysite.com/remote.php/dav/addressbooks/users/sisim/Perso/, statut : 503)
2018.06.14 08:52:35:360 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryRequest : (new Number(1))
2018.06.14 08:52:35:361 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryResponse : (new Number(1))
2018.06.14 08:52:35:362 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryError : (new Number(1))
2018.06.14 08:52:35:362 : Validation module : debug mode : cardbookRepository.cardbookServerValidation : ({length:0, user:"sisim"})
2018.06.14 08:52:35:373 : Validation module : Requête de découverte d'URL phase 1 sur https://nextcloud.mysite.com/remote.php/dav/addressbooks/users/sisim/Perso/.well-known/carddav …
2018.06.14 08:52:35:376 : Validation module : debug mode : method : (new String("PROPFIND"))
2018.06.14 08:52:35:376 : Validation module : debug mode : headers : (new String("depth: \"0\", content-type: \"application/xml; charset=utf-8\", User-Agent: \"Thunderbird CardBook/29.6\", Authorization: \"Basic \"*****\""))
2018.06.14 08:52:35:376 : Validation module : debug mode : body : (new String("<?xml version=\"1.0\" encoding=\"utf-8\"?><D:propfind xmlns:D=\"DAV:\"><D:prop><D:current-user-principal/></D:prop></D:propfind>"))
2018.06.14 08:52:35:376 : Validation module : debug mode : username : (new String("sisim"))
2018.06.14 08:52:35:376 : Validation module : debug mode : url : (new String("https://nextcloud.mysite.com/remote.php/dav/addressbooks/users/sisim/Perso/.well-known/carddav"))
2018.06.14 08:52:35:427 : Validation module : debug mode : response code : (new Number(503))
2018.06.14 08:52:35:427 : Validation module : Synchronisation en erreur (étape : discoverPhase1, url : https://nextcloud.mysite.com/remote.php/dav/addressbooks/users/sisim/Perso/.well-known/carddav, statut : 503)
2018.06.14 08:52:36:400 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryRequest : (new Number(1))
2018.06.14 08:52:36:400 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryResponse : (new Number(1))
2018.06.14 08:52:36:400 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryError : (new Number(1))
2018.06.14 08:52:36:400 : Validation module : debug mode : cardbookRepository.cardbookServerValidation : ({length:0, user:"sisim"})
2018.06.14 08:52:36:411 : Validation module : Requête de validation sans découverte d'URL sur https://nextcloud.mysite.com/remote.php/dav/addressbooks/sisim …
2018.06.14 08:52:36:415 : Validation module : debug mode : method : (new String("PROPFIND"))
2018.06.14 08:52:36:416 : Validation module : debug mode : headers : (new String("depth: \"1\", content-type: \"application/xml; charset=utf-8\", User-Agent: \"Thunderbird CardBook/29.6\", Authorization: \"Basic \"*****\""))
2018.06.14 08:52:36:416 : Validation module : debug mode : body : (new String("<?xml version=\"1.0\" encoding=\"utf-8\"?><D:propfind xmlns:D=\"DAV:\"><D:prop><D:resourcetype/><D:displayname/></D:prop></D:propfind>"))
2018.06.14 08:52:36:416 : Validation module : debug mode : username : (new String("sisim"))
2018.06.14 08:52:36:416 : Validation module : debug mode : url : (new String("https://nextcloud.mysite.com/remote.php/dav/addressbooks/sisim"))
2018.06.14 08:52:36:469 : Validation module : debug mode : response code : (new Number(503))
2018.06.14 08:52:36:469 : Validation module : Synchronisation en erreur (étape : validateWithoutDiscovery, url : https://nextcloud.mysite.com/remote.php/dav/addressbooks/sisim, statut : 503)
2018.06.14 08:52:37:430 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryRequest : (new Number(1))
2018.06.14 08:52:37:430 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryResponse : (new Number(1))
2018.06.14 08:52:37:431 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryError : (new Number(1))
2018.06.14 08:52:37:431 : Validation module : debug mode : cardbookRepository.cardbookServerValidation : ({length:0, user:"sisim"})

Nextcloud apache access log:

192.168.1.1 - sisim [14/Jun/2018:11:58:02 +0200] "PROPFIND /remote.php/dav/addressbooks/users/sisim/Perso/ HTTP/2.0" 503 -
192.168.1.1 - sisim [14/Jun/2018:11:58:03 +0200] "PROPFIND /remote.php/dav/addressbooks/users/sisim/Perso/.well-known/carddav HTTP/2.0" 503 -
192.168.1.1 - sisim [14/Jun/2018:11:58:04 +0200] "PROPFIND /remote.php/dav/addressbooks/sisim HTTP/2.0" 503 -

Nextcloud log:

{"reqId":"XXXXXZZZ","level":1,"time":"2018-06-14T11:48:42+00:00","remoteAddr":"192.168.1.1","user":"--","app":"admin_audit","method":"PROPFIND","url":"\/remote.php\/dav\/addressbooks\/users\/sisim\/Perso\/","message":"Login attempt: \"sisim\"","userAgent":"Thunderbird CardBook\/29.6 Lightning\/6.2","version":"13.0.3.2"}
{"reqId":"XXXXXYYY","level":1,"time":"2018-06-14T11:48:42+00:00","remoteAddr":"192.168.1.1","user":"sisim","app":"admin_audit","method":"PROPFIND","url":"\/remote.php\/dav\/addressbooks\/users\/sisim\/Perso\/","message":"Login successful: \"sisim\"","userAgent":"Thunderbird CardBook\/29.6 Lightning\/6.2","version":"13.0.3.2"}
@biva

This comment has been minimized.

Copy link

biva commented Jun 14, 2018

Investigating further, it does not come from Nextcloud, but from Thunderbird. I close it for now

@vampsm

This comment has been minimized.

Copy link

vampsm commented Aug 28, 2018

For all Users with Thunderbird 60, problems with Address and Calendar Sync.

You need

-> about:config
----> network.cookie.same-site.enabled = true ---> false

Than works all sync......
#10134 (comment)

https://blog.mozilla.org/security/2018/04/24/same-site-cookies-in-firefox-60/
https://bugzilla.mozilla.org/show_bug.cgi?id=1468912
https://www.thunderbird.net/en-US/thunderbird/60.0/releasenotes/#known-issues

@adsworth

This comment has been minimized.

Copy link
Member

adsworth commented Sep 26, 2018

The above fix from @vampsm also fixes lightning calender connection issues.

@dcrobertson01

This comment has been minimized.

Copy link

dcrobertson01 commented Dec 4, 2018

Edit -> Preferences -> General -> Config Editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment