Should have said, I actually did:
Maintenance mode on
Backed up DB
Deleted corrupt calendar entry
Maintenance mode off
(In case anyone needs to do the same - always take a backup and always do it while in maintenance mode)
I have that error with 1.0.9.1 with contacts, this is the log:
SYNCHRONIZATION INFO
Synchronization phase: 9
Account name: Mte90
Authority: com.android.contacts
HTTP REQUEST:
REPORT /remote.php/dav/addressbooks/users/Mte90/contatti/
Content-Length: 1322
Content-Type: application/xml; charset=utf-8
Depth: 0
<?xml version='1.0' encoding='UTF-8' ?><CARD:addressbook-multiget xmlns="DAV:" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><getcontenttype /><getetag /><CARD:address-data content-type="text/vcard" version="4.0" /></prop><href>/remote.php/dav/addressbooks/users/Mte90/contatti/84ef7ca2-f384-444f-abee-d68cb7bf3548.vcf</href><href>/remote.php/dav/addressbooks/users/Mte90/contatti/87a8889d-bd70-4467-ab16-56e0629b539a.vcf</href><href>/remote.php/dav/addressbooks/users/Mte90/contatti/6321da75-dd56-4716-8680-72fb57bc3216.vcf</href><href>/remote.php/dav/addressbooks/users/Mte90/contatti/67d2235e-0735-40f1-a6b9-b2982fe345d7@domain.vcf</href><href>/remote.php/dav/addressbooks/users/Mte90/contatti/10b96177-bab4-42fe-a3a2-8f71dd0a5335.vcf</href><href>/remote.php/dav/addressbooks/users/Mte90/contatti/49f5eb2b-a675-476f-a87a-b27f66d5e53a.vcf</href><href>/remote.php/dav/addressbooks/users/Mte90/contatti/30ed6e32-d95b-4a2e-9652-789ee1753375.vcf</href><href>/remote.php/dav/addressbooks/users/Mte90/contatti/38ab17b5-d2f9-42d1-9142-9ab0f5f0d420.vcf</href><href>/remote.php/dav/addressbooks/users/Mte90/contatti/e15dfebb-4deb-405a-937c-786f2ca960e1.vcf</href><href>/remote.php/dav/addressbooks/users/Mte90/contatti/ea1c39a6-9ffc-4fe4-b35e-a8e3f2ff833d@domain.vcf</href></CARD:addressbook-multiget>
HTTP RESPONSE:
http/1.1 500 Internal Server Error
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: close
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *
Content-Type: application/xml; charset=utf-8
Date: Fri, 03 Jun 2016 21:48:16 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
Server: Apache
Strict-Transport-Security: max-age=15768000; includeSubDomains
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Powered-By: PHP/5.5.34
X-Robots-Tag: none
X-XSS-Protection: 1; mode=block
<?xml version="1.0" encoding="utf-8"?>[LF]
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">[LF]
<s:exception>Sabre\VObject\ParseException</s:exception>[LF]
<s:message>Invalid Mimedir file. Line starting at 12 did not follow iCalendar/vCard conventions</s:message>[LF]
</d:error>[LF]
EXCEPTION:
at.bitfire.dav4android.exception.HttpException: 500 Internal Server Error
at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:317)
at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:290)
at at.bitfire.dav4android.DavAddressBook.multiget(DavAddressBook.java:109)
at at.bitfire.davdroid.syncadapter.ContactsSyncManager.downloadRemote(ContactsSyncManager.java:203)
at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.java:170)
at at.bitfire.davdroid.syncadapter.ContactsSyncAdapterService$ContactsSyncAdapter.onPerformSync(ContactsSyncAdapterService.java:66)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)
SOFTWARE INFORMATION
DAVdroid version: 1.0.9.1 (101) Fri May 27 07:58:12 GMT+02:00 2016
Installed from: org.fdroid.fdroid
JB Workaround installed: no
CONFIGURATION
System-wide synchronization: automatically
Account: Mte90
Address book sync. interval: 240 min
Calendar sync. interval: 60 min
OpenTasks sync. interval: 240 min
SQLITE DUMP
android_metadata
| locale |
| it_IT |
----------
settings
| setting | value |
| hint_OpenTasksNotInstalled | 0 |
----------
services
| _id | accountName | service | principal |
| 3 | Mte90 | carddav | https://domain.com/remote.php/dav/principals/users/Mte90/ |
| 4 | Mte90 | caldav | https://domain.com/remote.php/dav/principals/users/Mte90/ |
----------
sqlite_sequence
| name | seq |
| services | 4 |
| collections | 8 |
| homesets | 6 |
----------
homesets
| _id | serviceID | url |
| 5 | 3 | https://domain.com/remote.php/dav/addressbooks/users/Mte90/ |
| 6 | 4 | https://domain.com/remote.php/dav/calendars/Mte90/ |
----------
collections
| _id | serviceID | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | sync |
| 6 | 3 | https://domain.com/remote.php/dav/addressbooks/users/Mte90/contatti/ | 0 | Contatti | <null> | <null> | <null> | <null> | <null> | 1 |
| 7 | 4 | https://domain.com/remote.php/dav/calendars/Mte90/contact_birthdays/ | 0 | contact_birthdays | <null> | <null> | <null> | 1 | 1 | 0 |
| 8 | 4 | https://domain.com/remote.php/dav/calendars/Mte90/owncube/ | 0 | Hosting | Hosting | -65536 | <null> | 1 | 1 | 1 |
----------
SYSTEM INFORMATION
Android version: 6.0.1 (MMB29X)
Device: OnePlus A0001 (A0001)
I removed only the reference of my owncloud server in that log, I followed the faq to try to remove the account and a new one but now I don’t have my contacts on the phone
Hello,
<s:message>Invalid Mimedir file. Line starting at 12 did not follow iCalendar/vCard conventions</s:message>[LF]
I don’t know what a “Mimedir file” is, but it seems this is an OwnCloud error and not a DAVdroid error, especially when it’s returned on a REPORT addressbook-query
request.