OwnCloud timeout



  • Hi,
    I am using owncloud for calendar sync. I have a very big calendar, some thousand entries, the ics-file was about 1MB.

    DavDroid does not show any of the entries of that calendar. however I can create events in that big calendar on the device -- they show up in owncloud.

    Small Calendars are synced perfectly in both directions.

    The big one also syncs perfectly with Lightning -- so I think its not a problem with owncloud itself.

    Is that a known problem? BTW: There is a clone-app of DavDroid (Easy DAV for owncloud), which does not have the problem with the big calendar...

    Best Regards,
    Tobias


  • developer

    No, large calendars shouldn't be a problem. Can you please provide logs?



  • I do have same problem, but only on android 5.x.
    I will try to post log if I have enough time.
    Regards,
    Brisferr


  • developer

    @Brisferr said:

    I do have same problem, but only on android 5.x.
    I will try to post log if I have enough time.

    Thanks, because without logs, we can just guess around.



  • I really like to give you logs, but...

    I have enabled SD-Card logging and also the extensive-log option but the log-file does not contain anything about the "big" calendar. There are some logs about the smaller calendars about "setting color" and such things but the calendar of interest is not in the log, even if I start synchronisation manually.

    Any idea?

    Best Regards,
    Tobias


  • admin

    @Tobias What calendar app do you use? Are you sure, that the questionable calendars are set to "synchronized"? For instance I find this option in my default calendar app in "Calendars to show" / "Synchronized calendars".



  • Synchronisation is not configured in the calendar app, I think, which is the default google app. And in the account the synchronisation is correctly configured.

    The "big-calendar" is "existing" in the calendar app, it has the correct color, but it is empty. And it wont show up in the log-files, if I manually start synchronisation.

    :-/


  • developer

    @Tobias said:

    Synchronisation is not configured in the calendar app, I think, which is the default google app.

    You can install Etar from F-Droid which is an AOSP calendar in Material style. Choose "Calendars to show" in Etar's navigational panel, then "Calendars to synchronize". Then check whether the "big" calendars are synchronized.

    DAVdroid synchronizes all calendars with SYNC_EVENTS != 0, so if a calendar is not synchronized at all, then I guess SYNC_EVENTS is 0.



  • Hello,

    I'm using the default app of Cyanogenmod, and I do see the calendar in my calendar app and it's checked to view it.
    Actually, my calendar is working with my account on our owncloud, but I'm sharing the calendar of my girlfriend, wich is big. And that one wont synchronise on my mobile. Sins two day, she does have a new Lenovo mobile phone with Android 5.1 (Like my cyanogen) and I'm unable to synchronise her calendar on it neither.

    If I'm using easy-dav it's working... I will try to install ETAR and see wath append.

    About the log? Am I oblige to connect with adb? There is an option where it's written that it will be logged in /storage/emulated/0/Android/data/at.bitfire.davdroid/files. But when i do enable that option, each time DAVDroid try to synchronise that account, I do get a message "DAVDroid" has stop. So I can't enable the logging option...

    Thanks for you follow up.

    Brisferr


  • developer

    @Brisferr said:

    I'm using the default app of Cyanogenmod, and I do see the calendar in my calendar app and it's checked to view it.

    There are two options: one to view it, another to synchronize it. The latter one can be reached from the menu of the first one (at least on my device / in Etar), and the thing that matters here is how it is enabled for synchronization. Whether it's displayed in the calendar doesn't matter for DAVdroid.

    Actually, my calendar is working with my account on our owncloud, but I'm sharing the calendar of my girlfriend, wich is big. And that one wont synchronise on my mobile. Sins two day, she does have a new Lenovo mobile phone with Android 5.1 (Like my cyanogen) and I'm unable to synchronise her calendar on it neither.

    I don't think that this problem is related to whether the calendar is "big" or not – after all, it's not synchronized, so DAVdroid won't even see that it's "big".

    If I'm using easy-dav it's working... I will try to install ETAR and see wath append.

    EasyDAV is just a DAVdroid 0.8.x, re-branded by someone else.

    About the log? Am I oblige to connect with adb? There is an option where it's written that it will be logged in /storage/emulated/0/Android/data/at.bitfire.davdroid/files. But when i do enable that option, each time DAVDroid try to synchronise that account, I do get a message "DAVDroid" has stop. So I can't enable the logging option...

    I thought you have already got logs?

    If the logs to SDcard crash, then you will have to use adb, yes.



  • Hello,

    I did test with ETAR, did double check if everywhere the calendar was asked to be viewed and synchronise.

    No event did came on the screen of the ETAR calendar.

    Regards,

    Brisferr


  • developer

    I did test with ETAR, did double check if everywhere the calendar was asked to be viewed and synchronise.

    So synchronization was enabled?

    I don't think I have an idea then… did you try to re-install DAVdroid?



  • All calendars set to sync Google-Default-App sets all visible calendars automatically to sync... Reinstalling DAVDROID I have tried...

    Can I debug DavDroid with Android Studio?


  • developer

    @Tobias said:

    All calendars set to sync Google-Default-App sets all visible calendars automatically to sync... Reinstalling DAVDROID I have tried...

    Then I don't have any more ideas. Is your device rooted, i.e. can you copy a file from /data/data?

    Can I debug DavDroid with Android Studio?

    Yes, just compile and debug it.



  • Hi rfc2822,

    Yes, before posting here the first time, I did check everything.

    Something strange, is that this calendar was working with an old version of DAVDroid on an older version of android.

    Our Owncloud server has a least 6 different calender, with all use of davdroid and working. Only the one of my girlfriend who has about 4 meeting a day 7 days a week is not synchronising.

    My device is rooted, I can write a file in the directory pointed by DAVDroid for the log file, but DAVDroid do hang when I do enable the log option.

    I did reinstall davdroid different time allready, nothing change.

    I will try tonight (GMT+1) to test the log with adb (never did that).

    Bye,
    Brisferr


  • developer

    @Brisferr Can you please send a copy of /data/data/com.android.providers.calendar/databases/calendar.db to play@bitfire.at (OpenPGP 🔑)?

    Allow root for apps in Developer/Debug Settings, then open your file manager, navigate to /data/data/com.android.providers.calendar/databases (will require root), then copy calendar.db to the SD card. Then you can send it via email. Or just fetch it via adb pull, or any other way – but the file could be helpful ;)



  • My phone is not rooted... I'll try to get it by adb...


  • developer

    @Tobias said:

    My phone is not rooted... I'll try to get it by adb...

    If your device is not rooted, you won't get access to this file. Then you can just get the DAVdroid logs via adb logcat.



  • I'll do that!



  • I just checked: I have a mail-account with the same name as my Caldav-Account... could that be a problem?

    BTW: With the Android Studio I got logs... here is an excerpt with the big calendar:

    11-26 19:26:49.320 14371-15392/? I/davdroid: Synchronizing calendar #11, URL: http://...
    11-26 19:26:49.320 14371-15392/? I/davdroid: AccountSettings version: v2, should be: 2
    11-26 19:26:49.340 14371-15392/? I/MemorizingTrustManager: getAppKeyStore(/data/data/at.bitfire.davdroid/app_KeyStore/KeyStore.bks) - exception loading file key store
                                                               java.io.FileNotFoundException: /data/data/at.bitfire.davdroid/app_KeyStore/KeyStore.bks: open failed: ENOENT (No such file or directory)
                                                                   at libcore.io.IoBridge.open(IoBridge.java:416)
                                                                   at java.io.FileInputStream.<init>(FileInputStream.java:78)
                                                                   at de.duenndns.ssl.MemorizingTrustManager.loadAppKeyStore(MemorizingTrustManager.java:327)
                                                                   at de.duenndns.ssl.MemorizingTrustManager.init(MemorizingTrustManager.java:152)
                                                                   at de.duenndns.ssl.MemorizingTrustManager.<init>(MemorizingTrustManager.java:130)
                                                                   at at.bitfire.davdroid.HttpClient.<init>(HttpClient.java:59)
                                                                   at at.bitfire.davdroid.HttpClient.<init>(HttpClient.java:104)
                                                                   at at.bitfire.davdroid.syncadapter.SyncManager.<init>(SyncManager.java:125)
                                                                   at at.bitfire.davdroid.syncadapter.CalendarSyncManager.<init>(CalendarSyncManager.java:63)
                                                                   at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$SyncAdapter.onPerformSync(CalendarsSyncAdapterService.java:57)
                                                                   at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254)
                                                                Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
                                                                   at libcore.io.Posix.open(Native Method)
                                                                   at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
                                                                   at libcore.io.IoBridge.open(IoBridge.java:400)
                                                                   at java.io.FileInputStream.<init>(FileInputStream.java:78) 
                                                                   at de.duenndns.ssl.MemorizingTrustManager.loadAppKeyStore(MemorizingTrustManager.java:327) 
                                                                   at de.duenndns.ssl.MemorizingTrustManager.init(MemorizingTrustManager.java:152) 
                                                                   at de.duenndns.ssl.MemorizingTrustManager.<init>(MemorizingTrustManager.java:130) 
                                                                   at at.bitfire.davdroid.HttpClient.<init>(HttpClient.java:59) 
                                                                   at at.bitfire.davdroid.HttpClient.<init>(HttpClient.java:104) 
                                                                   at at.bitfire.davdroid.syncadapter.SyncManager.<init>(SyncManager.java:125) 
                                                                   at at.bitfire.davdroid.syncadapter.CalendarSyncManager.<init>(CalendarSyncManager.java:63) 
                                                                   at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$SyncAdapter.onPerformSync(CalendarsSyncAdapterService.java:57) 
                                                                   at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254) 
    11-26 19:26:49.350 14371-15392/? I/davdroid: Preparing synchronization
    11-26 19:26:49.350 14371-15392/? I/davdroid: Querying capabilities
    11-26 19:26:49.860 14371-15392/? I/davdroid: Setting calendar name and color (if available)
    11-26 19:26:49.870 14371-15392/? I/davdroid: Processing locally deleted entries
    11-26 19:26:49.880 14371-15392/? I/davdroid: Locally preparing dirty entries
    11-26 19:26:49.890 14371-15392/? I/davdroid: Processing deleted exceptions
    11-26 19:26:49.900 14371-15392/? I/davdroid: Processing dirty exceptions
    11-26 19:26:49.910 14371-15392/? I/davdroid: Uploading dirty entries
    11-26 19:26:49.930 14371-15392/? I/davdroid: Checking sync state
    11-26 19:26:49.940 14371-15392/? I/davdroid: Listing local entries
    11-26 19:26:49.950 14371-15392/? I/davdroid: Listing remote entries
    11-26 19:27:34.960 14371-15392/? E/davdroid: I/O exception during sync, trying again later
                                                 java.net.SocketTimeoutException
                                                     at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
                                                     at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
                                                     at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
                                                     at okio.Okio$2.read(Okio.java:139)
                                                     at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
                                                     at okio.RealBufferedSource.indexOf(RealBufferedSource.java:306)
                                                     at okio.RealBufferedSource.indexOf(RealBufferedSource.java:300)
                                                     at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196)
                                                     at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191)
                                                     at com.squareup.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80)
                                                     at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:910)
                                                     at com.squareup.okhttp.internal.http.HttpEngine.access$300(HttpEngine.java:93)
                                                     at com.squareup.okhttp.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:895)
                                                     at at.bitfire.davdroid.HttpClient$PreemptiveAuthenticationInterceptor.intercept(HttpClient.java:155)
                                                     at com.squareup.okhttp.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:868)
                                                     at at.bitfire.davdroid.HttpClient$UserAgentInterceptor.intercept(HttpClient.java:142)
                                                     at com.squareup.okhttp.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:868)
                                                     at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:749)
                                                     at com.squareup.okhttp.Call.getResponse(Call.java:277)
                                                     at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:234)
                                                     at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:196)
                                                     at com.squareup.okhttp.Call.execute(Call.java:79)
                                                     at at.bitfire.dav4android.DavCalendar.calendarQuery(DavCalendar.java:73)
                                                     at at.bitfire.davdroid.syncadapter.CalendarSyncManager.listRemote(CalendarSyncManager.java:117)
                                                     at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.java:172)
                                                     at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$SyncAdapter.onPerformSync(CalendarsSyncAdapterService.java:58)
                                                     at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254)
    11-26 19:27:34.960 14371-15392/? I/davdroid: Synchronizing calendar #12, URL: http://...
    

    edit: made logs readable by surrounding them with ```


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.