[framagenda]problèmes de synchro android

Bonjour, depuis quelques semaines, mon téléphone et ma tablettes sous android et avec acaldav ne synchronisent plus mon agenda. lorsque je veux lancer à la main, j’ai un message : " Invalid server answer, check URL" sachant que l’url du serveur est “https://framagenda.org/remote.php/dav/”.
Y a t-il eu une modification de cette url ?
merci

Bonjour @jcp, n’utilisant pas le framagenda je ne pourrais pas répondre directement à ta question mais je peux te proposer une option de controle, cela fonctionne t il avec DavX5 ? Successeur de DavDroid, tu peux le trouver sur F-Droid ou le Play Store.

A+

Bonjour

C’est la même chose chez moi. J’ai essayé avec Caldav, OpenSync et l’outil natif de Nextcloud. J’ai également " Invalid server answer, check URL" en retour.

Le log d’OpenSync

--- BEGIN DEBUG INFO ---

LOGS:
2019-08-19 17:28:31 13396 [ui.setup.DavResourceFinder] Finding initial carddav service configuration
2019-08-19 17:28:31 13396 [ui.setup.DavResourceFinder] No principal found at user-given URL, trying to discover
2019-08-19 17:28:31 13396 [ui.setup.DavResourceFinder] Looking up SRV records for _carddavs._tcp.framagenda.org
2019-08-19 17:28:31 13396 [ui.setup.DavResourceFinder] Didn't find carddav service, trying at https://framagenda.org:443
2019-08-19 17:28:31 13396 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://framagenda.org/.well-known/carddav
2019-08-19 17:28:31 13396 [HttpClient$1] --> PROPFIND https://framagenda.org/.well-known/carddav http/1.1
2019-08-19 17:28:31 13396 [HttpClient$1] Content-Type: application/xml; charset=utf-8
2019-08-19 17:28:31 13396 [HttpClient$1] Content-Length: 198
2019-08-19 17:28:31 13396 [HttpClient$1] Depth: 0
2019-08-19 17:28:31 13396 [HttpClient$1] 
2019-08-19 17:28:31 13396 [HttpClient$1] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><current-user-principal /></prop></propfind>
2019-08-19 17:28:31 13396 [HttpClient$1] --> END PROPFIND (198-byte body)
2019-08-19 17:28:32 13396 [HttpClient$1] <-- 301  https://framagenda.org/.well-known/carddav (228ms)
2019-08-19 17:28:32 13396 [HttpClient$1] server: nginx/1.14.2
2019-08-19 17:28:32 13396 [HttpClient$1] date: Mon, 19 Aug 2019 15:28:28 GMT
2019-08-19 17:28:32 13396 [HttpClient$1] content-type: text/html
2019-08-19 17:28:32 13396 [HttpClient$1] content-length: 185
2019-08-19 17:28:32 13396 [HttpClient$1] location: https://framagenda.org/remote.php/dav
2019-08-19 17:28:32 13396 [HttpClient$1] strict-transport-security: max-age=15768000; includeSubDomains; preload;
2019-08-19 17:28:32 13396 [HttpClient$1] x-content-type-options: nosniff
2019-08-19 17:28:32 13396 [HttpClient$1] x-xss-protection: 1; mode=block
2019-08-19 17:28:32 13396 [HttpClient$1] x-robots-tag: none
2019-08-19 17:28:32 13396 [HttpClient$1] x-download-options: noopen
2019-08-19 17:28:32 13396 [HttpClient$1] x-permitted-cross-domain-policies: none
2019-08-19 17:28:32 13396 [HttpClient$1] referrer-policy: no-referrer
2019-08-19 17:28:32 13396 [HttpClient$1] 
2019-08-19 17:28:32 13396 [HttpClient$1] <html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.14.2</center>
</body>
</html>

2019-08-19 17:28:32 13396 [HttpClient$1] <-- END HTTP (185-byte body)
2019-08-19 17:28:32 13396 [dav4android.DavResource] Redirected, new location=https://framagenda.org/remote.php/dav
2019-08-19 17:28:32 13396 [HttpClient$1] --> PROPFIND https://framagenda.org/remote.php/dav http/1.1
2019-08-19 17:28:32 13396 [HttpClient$1] Content-Type: application/xml; charset=utf-8
2019-08-19 17:28:32 13396 [HttpClient$1] Content-Length: 198
2019-08-19 17:28:32 13396 [HttpClient$1] Depth: 0
2019-08-19 17:28:32 13396 [HttpClient$1] 
2019-08-19 17:28:32 13396 [HttpClient$1] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><current-user-principal /></prop></propfind>
2019-08-19 17:28:32 13396 [HttpClient$1] --> END PROPFIND (198-byte body)
2019-08-19 17:28:32 13396 [HttpClient$1] <-- 401  https://framagenda.org/remote.php/dav (384ms)
2019-08-19 17:28:32 13396 [HttpClient$1] server: nginx/1.14.2
2019-08-19 17:28:32 13396 [HttpClient$1] date: Mon, 19 Aug 2019 15:28:29 GMT
2019-08-19 17:28:32 13396 [HttpClient$1] content-type: application/xml; charset=utf-8
2019-08-19 17:28:32 13396 [HttpClient$1] expires: Thu, 19 Nov 1981 08:52:00 GMT
2019-08-19 17:28:32 13396 [HttpClient$1] cache-control: no-store, no-cache, must-revalidate
2019-08-19 17:28:32 13396 [HttpClient$1] pragma: no-cache
2019-08-19 17:28:32 13396 [HttpClient$1] set-cookie: oc_sessionPassphrase=EEy89zFi07IkgiLz4zzKl8ZhP6KP0%2BaS3JODVGbh1Hp4xC48FDKrq4SlZdZAp6jSEpYV%2F%2BzDzH2kVs8xdpN9PK9KCNYaDWdISLXcHdj%2FJbhPKTLyKXliD7r4ler9yWds; path=/; secure; HttpOnly
2019-08-19 17:28:32 13396 [HttpClient$1] x-frame-options: SAMEORIGIN
2019-08-19 17:28:32 13396 [HttpClient$1] set-cookie: __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
2019-08-19 17:28:32 13396 [HttpClient$1] set-cookie: __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
2019-08-19 17:28:32 13396 [HttpClient$1] content-security-policy: default-src 'none';
2019-08-19 17:28:32 13396 [HttpClient$1] set-cookie: oc6e20a3ckgf=g3nv7v19uhip0bs4gcgkkh0a9p; path=/; secure; HttpOnly
2019-08-19 17:28:32 13396 [HttpClient$1] www-authenticate: Basic realm="Framagenda", charset="UTF-8"
2019-08-19 17:28:32 13396 [HttpClient$1] 
2019-08-19 17:28:32 13396 [HttpClient$1] <?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>
  <s:message>No public access to this resource., Username or password was incorrect, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured, Username or password was incorrect</s:message>
</d:error>

2019-08-19 17:28:32 13396 [HttpClient$1] <-- END HTTP (415-byte body)
2019-08-19 17:28:32 13396 [ui.setup.DavResourceFinder] carddav service discovery failed
EXCEPTION at.bitfire.dav4android.exception.UnauthorizedException: 401 
	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:315)
	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:298)
	at at.bitfire.dav4android.DavResource.propfind(DavResource.java:283)
	at com.deependhulla.opensync.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.java:352)
	at com.deependhulla.opensync.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.java:334)
	at com.deependhulla.opensync.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.java:140)
	at com.deependhulla.opensync.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.java:90)
	at com.deependhulla.opensync.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.java:142)
	at com.deependhulla.opensync.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.java:125)
	at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:302)
	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:57)
	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:45)
	at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:138)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:764)

2019-08-19 17:28:32 13396 [ui.setup.DavResourceFinder] Finding initial caldav service configuration
2019-08-19 17:28:32 13396 [ui.setup.DavResourceFinder] No principal found at user-given URL, trying to discover
2019-08-19 17:28:32 13396 [ui.setup.DavResourceFinder] Looking up SRV records for _caldavs._tcp.framagenda.org
2019-08-19 17:28:32 13396 [ui.setup.DavResourceFinder] Didn't find caldav service, trying at https://framagenda.org:443
2019-08-19 17:28:32 13396 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://framagenda.org/.well-known/caldav
2019-08-19 17:28:32 13396 [HttpClient$1] --> PROPFIND https://framagenda.org/.well-known/caldav http/1.1
2019-08-19 17:28:32 13396 [HttpClient$1] Content-Type: application/xml; charset=utf-8
2019-08-19 17:28:32 13396 [HttpClient$1] Content-Length: 198
2019-08-19 17:28:32 13396 [HttpClient$1] Depth: 0
2019-08-19 17:28:32 13396 [HttpClient$1] 
2019-08-19 17:28:32 13396 [HttpClient$1] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><current-user-principal /></prop></propfind>
2019-08-19 17:28:32 13396 [HttpClient$1] --> END PROPFIND (198-byte body)
2019-08-19 17:28:32 13396 [HttpClient$1] <-- 301  https://framagenda.org/.well-known/caldav (70ms)
2019-08-19 17:28:32 13396 [HttpClient$1] server: nginx/1.14.2
2019-08-19 17:28:32 13396 [HttpClient$1] date: Mon, 19 Aug 2019 15:28:29 GMT
2019-08-19 17:28:32 13396 [HttpClient$1] content-type: text/html
2019-08-19 17:28:32 13396 [HttpClient$1] content-length: 185
2019-08-19 17:28:32 13396 [HttpClient$1] location: https://framagenda.org/remote.php/dav
2019-08-19 17:28:32 13396 [HttpClient$1] strict-transport-security: max-age=15768000; includeSubDomains; preload;
2019-08-19 17:28:32 13396 [HttpClient$1] x-content-type-options: nosniff
2019-08-19 17:28:32 13396 [HttpClient$1] x-xss-protection: 1; mode=block
2019-08-19 17:28:32 13396 [HttpClient$1] x-robots-tag: none
2019-08-19 17:28:32 13396 [HttpClient$1] x-download-options: noopen
2019-08-19 17:28:32 13396 [HttpClient$1] x-permitted-cross-domain-policies: none
2019-08-19 17:28:32 13396 [HttpClient$1] referrer-policy: no-referrer
2019-08-19 17:28:32 13396 [HttpClient$1] 
2019-08-19 17:28:32 13396 [HttpClient$1] <html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.14.2</center>
</body>
</html>

2019-08-19 17:28:32 13396 [HttpClient$1] <-- END HTTP (185-byte body)
2019-08-19 17:28:32 13396 [dav4android.DavResource] Redirected, new location=https://framagenda.org/remote.php/dav
2019-08-19 17:28:32 13396 [HttpClient$1] --> PROPFIND https://framagenda.org/remote.php/dav http/1.1
2019-08-19 17:28:32 13396 [HttpClient$1] Content-Type: application/xml; charset=utf-8
2019-08-19 17:28:32 13396 [HttpClient$1] Content-Length: 198
2019-08-19 17:28:32 13396 [HttpClient$1] Depth: 0
2019-08-19 17:28:32 13396 [HttpClient$1] 
2019-08-19 17:28:32 13396 [HttpClient$1] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><current-user-principal /></prop></propfind>
2019-08-19 17:28:32 13396 [HttpClient$1] --> END PROPFIND (198-byte body)
2019-08-19 17:28:33 13396 [HttpClient$1] <-- 401  https://framagenda.org/remote.php/dav (469ms)
2019-08-19 17:28:33 13396 [HttpClient$1] server: nginx/1.14.2
2019-08-19 17:28:33 13396 [HttpClient$1] date: Mon, 19 Aug 2019 15:28:29 GMT
2019-08-19 17:28:33 13396 [HttpClient$1] content-type: application/xml; charset=utf-8
2019-08-19 17:28:33 13396 [HttpClient$1] expires: Thu, 19 Nov 1981 08:52:00 GMT
2019-08-19 17:28:33 13396 [HttpClient$1] cache-control: no-store, no-cache, must-revalidate
2019-08-19 17:28:33 13396 [HttpClient$1] pragma: no-cache
2019-08-19 17:28:33 13396 [HttpClient$1] x-frame-options: SAMEORIGIN
2019-08-19 17:28:33 13396 [HttpClient$1] content-security-policy: default-src 'none';
2019-08-19 17:28:33 13396 [HttpClient$1] set-cookie: oc6e20a3ckgf=8esnq8r0sok0u0n3jt3rfugj3a; path=/; secure; HttpOnly
2019-08-19 17:28:33 13396 [HttpClient$1] www-authenticate: Basic realm="Framagenda", charset="UTF-8"
2019-08-19 17:28:33 13396 [HttpClient$1] 
2019-08-19 17:28:33 13396 [HttpClient$1] <?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>
  <s:message>No public access to this resource., Username or password was incorrect, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured, Username or password was incorrect</s:message>
</d:error>

2019-08-19 17:28:33 13396 [HttpClient$1] <-- END HTTP (415-byte body)
2019-08-19 17:28:33 13396 [ui.setup.DavResourceFinder] caldav service discovery failed
EXCEPTION at.bitfire.dav4android.exception.UnauthorizedException: 401 
	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:315)
	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:298)
	at at.bitfire.dav4android.DavResource.propfind(DavResource.java:283)
	at com.deependhulla.opensync.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.java:352)
	at com.deependhulla.opensync.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.java:334)
	at com.deependhulla.opensync.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.java:140)
	at com.deependhulla.opensync.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.java:91)
	at com.deependhulla.opensync.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.java:142)
	at com.deependhulla.opensync.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.java:125)
	at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:302)
	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:57)
	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:45)
	at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:138)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:764)



SOFTWARE INFORMATION
OpenSync version: 1.5.0.3-ose (145) Tue Apr 18 09:03:24 GMT+02:00 2017
Installed from: com.android.vending
JB Workaround installed: no

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

SQLITE DUMP
android_metadata
	|  locale |
	|  fr_FR |
----------
settings
	|  setting | value |
----------
services
	|  _id | accountName | service | principal |
----------
sqlite_sequence
	|  name | seq |
----------
homesets
	|  _id | serviceID | url |
----------
collections
	|  _id | serviceID | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | sync |
----------

SYSTEM INFORMATION
Android version: 9 (PPR1.180610.011.G950FXXU5DSFB)
Device: Samsung SM-G950F (dreamlte)

--- END DEBUG INFO ---


texte préformaté indenté par 4 espaces

En lisant les logs côté agenda, il me semble que côté IOS, les iphones arrivent bien à se connecter et utiliser le service.

après quelques tâtonnements, j’ai fini par réussir à synchroniser mon agenda à l’aide d’OpenSync et à me connecter avec Nextcloud. Toujours pas réussi avec calldav.

Bonjour, puis-je installer OpenSync tout en laissant acaldav installé ? Est-ce que je ne risque pas de conflit ?
Je voulais ajouter que la synchronisation avec thunderbird fonctionne parfaitement si ça peut aider.
Merci

Hello @jcp & @Patrice, je ne suis malheureusement pas assez calé techniquement pour pouvoir répondre à vos questions(trop) techniques (pour moi).

Plus particulièrement @jcp, je ne penses pas que installer opensync tout en laissant acaldav ne soit un problème pour la synchronisation.

Opensync a l’air de fonctionner. Ce serait donc un problème de Acaldav.
Enfin peu importe, ce qui compte c’est que j’ai un outil pour synchroniser.
Merci pour vos conseils.
PS : comment fais-je pour passer ce post en résolu ?

@jcp il doit y avoir une coche à côté des réponses des différentes personnes aillant participés à la discussion. A côté de répondre, partager ce message, afficher plus, etc