signalapp / Flock

Private contact and calendar sync for Android.
https://signal.org/blog/flock
358 stars 80 forks source link

Sync error reported by android, not by Flock #83

Open bungabunga opened 9 years ago

bungabunga commented 9 years ago

i installed Flock yesterday and sync it with the server. my device is telling me that there is an error by Flock syncing contacts (last sync: yesterday evening) but if i go to Flock it wellcomes me with "Everything's working! (last sync: today morning)"

here is a log that i took just after an (un)successful sync: https://gist.github.com/c070cb3f56c997a9a5e8

nysatrok commented 9 years ago

I experience the same issue. There might be a server-side limit on the size of a single contact. This is just a wild guess.

@rhodey Is there such a limit? Can this issue be related to that?

n1m1 commented 9 years ago

Same issue here.

nysatrok commented 9 years ago

This issue still occurs under version 0.9.6 and Android 5.0.2 but now I get a different error message with pullRemotelyChangedComponents():

who knows...
org.apache.commons.httpclient.NoHttpResponseException: The server flock-sync.whispersystems.org failed to respond
    at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976)
    at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
    at org.anhonesteffort.flock.webdav.DavClient.execute(DavClient.java:118)
    at org.anhonesteffort.flock.webdav.AbstractDavComponentCollection.getComponents(AbstractDavComponentCollection.java:384)
    at org.anhonesteffort.flock.sync.addressbook.HidingCardDavCollection.getHiddenComponents(HidingCardDavCollection.java:183)
    at org.anhonesteffort.flock.sync.AbstractDavSyncWorker.pullRemotelyChangedComponents(AbstractDavSyncWorker.java:551)
    at org.anhonesteffort.flock.sync.AbstractDavSyncWorker.run(AbstractDavSyncWorker.java:122)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    at java.lang.Thread.run(Thread.java:818)

@bungabunga @n1m1 Can you confirm this?

bungabunga commented 9 years ago

i can't confirm because i have a new phone now and flock works without issues. but the old one had many issues..

nysatrok commented 9 years ago

The issue may or may not occur with the same set of contacts. It is more likely to occur if many contacts were imported at once. That's weird.