Addressbook service unreliable/sources fail/database corrupts

Hello Community,


I am at wits end on this one, and I'm losing data in the process. I could definitely use some help solving this issue before I take more drastic measures. The basic issue is that my local copy of my server-hosted addressbook repeatedly gets corrupted and then things go downhill from there.


I'm running now with Mavericks server/Mavericks client. Server hosts calendars, contacts, wikis in addition to some core services for the network. Both server and client have been recently rebuilt from scratch. The user account in question has been wiped and rebuilt with the exception of the data in the collab and caldav databases. I use Profile Manager but really had these issues before the last rebuilds and use of PM.


With yesterday mornings work to finish migrating the user to a new home directory and export/import in OD, I had finally hoped I had stabalized the addressbook service. This morning when I started working I had some trouble accessing the addressbook service and general disarray with Internet Accounts Remote Service (com.apple.preferences.internetaccounts.remoteservice). This was a pretty good indication I may not have solved my problems. I ended up rebooting the server and then was able to connect again to the services. So I set to work. One of the things I did was to create an addressbook group in Contacts and I added about 13 contacts. When I went to search for another name, everything suddendly froze and Console started reporting that the AddressBook-v22.abcddb file in the sources directory is corrupt. I also got a slew of comp.apple.quicklook.satellite errors about obtaining permanment IDs "The model configuration used to open the store is incompatible with the one that was used to create the store" and CoreData: error (3) access permission denied.


I also note that if I intentially delete an addressbook connect from Contacts, the sources directory doesn't clean up. There are now five separate folders under Addressbook/Sources with different UIDs. I've also started having files with .uknown in them being created in the Addressbook or Sources folders.


I have searched and read multiple discussions about Addressbook/Contacts issues but haven't come across anything like this yet. And if any of the solutions I've tried improve things at all, it is short-lived and I am right back to where I am now: A non-functioning addressbook for this user and lost data.


My next step is delete the source connections again in Internet Accounts, and try one again to restablish connections. I'll leave the files in the Addressbook directory alone for now.


If this doesn't work (and I doubt it will), I'm considering asking the users (luckily there are not a lot of them) to export/archive all their contacts and calendars, and then completely nuke the postgres database, and then let the users reconnect and load their data.


Is there a better way to proceed? Other things I should be looking into?


Thanks.


Tim

Mac mini, OS X Server

Posted on Jan 2, 2014 10:33 AM

Reply
29 replies

Jan 3, 2014 11:37 AM in response to Linc Davis

Thanks, Linc. Always nice to have a second set of eyes.


The situation yesterday was just unique enough (although certainly within the bounds of how I would expect a person would be using the system) that I'm holding off righ tnow on nuking the database.


I'm curious though, do others see OS X unable to clean up the folders in the Sources directory when connections to the server are deleted? While I can see how this would lead to the errors in the logs, I'm having trouble seeing how extra folders in the Sources directory would corrupt the AddressBook-v22.abcddb file?


And secondly, doesn't OS X clean up caldav data related to a user account that has been deleted? I have three extra owner_id entries in the addressbook_home table.


Tim

Jan 4, 2014 8:59 AM in response to Linc Davis

Here is an update, with some logs. After a meltdown yesterday (which was a little different as I will explain in a moment), I decided to proceed with nuking the database. I exported my calendar data without incident, and then did a Contacts Archive, also without incident. Then I decided to also export the contacts as a vCard (420 of them)--Big Meltdown(tm) almost instantaneously after the file finished creating on my desktop. Spinning beachball and the following log entries:



1/4/14 10:06:03.086 AM com.apple.quicklook.satellite[804]: CoreData: error: (3) access permission denied
1/4/14 10:06:03.091 AM com.apple.quicklook.satellite[804]: Unknown error reading database file, will attempt reimporting: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7fdc7962ef90 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during execution of SQL string 'pragma journal_mode=wal' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during execution of SQL string 'pragma journal_mode=wal' : access permission denied";
}
1/4/14 10:06:03.092 AM com.apple.quicklook.satellite[804]: Move Address Book store at /Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/5528F1BC-59BF-4DD2-96A2-7EE456C8901B/AddressBook-v22.abcddb to /Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/5528F1BC-59BF-4DD2-96A2-7EE456C8901B/AddressBook-v22.abcddb.DFEF7398-8632-41A8-AC55-0821AFE354DC.unknown
1/4/14 10:06:03.117 AM com.apple.quicklook.satellite[804]: Could not replace store at file:///Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application%20Support/AddressBook/Sources/5528F1BC-59BF-4DD2-96A2-7EE456C8901B/AddressBook-v22.abcddb.DFEF7398-8632-41A8-AC55-0821AFE354DC.unknown from file:///Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application%20Support/AddressBook/Sources/5528F1BC-59BF-4DD2-96A2-7EE456C8901B/AddressBook-v22.abcddb: Error Domain=NSSQLiteErrorDomain Code=3 "The operation couldn’t be completed. (NSSQLiteErrorDomain error 3.)" UserInfo=0x7fdc7953c610 {NSFilePath=/Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/5528F1BC-59BF-4DD2-96A2-7EE456C8901B/AddressBook-v22.abcddb.DFEF7398-8632-41A8-AC55-0821AFE354DC.unknown, reason=Failed to replace destination database} {
    NSFilePath = "/Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/5528F1BC-59BF-4DD2-96A2-7EE456C8901B/AddressBook-v22.abcddb.DFEF7398-8632-41A8-AC55-0821AFE354DC.unknown";
    reason = "Failed to replace destination database";
}
1/4/14 10:06:03.407 AM com.apple.quicklook.satellite[804]: CoreData: error: (3) access permission denied
1/4/14 10:06:03.410 AM com.apple.quicklook.satellite[804]: 0x7fdc79419fe0: ManagedObjectContext (ABAddressBook) could not create the store at path: </Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/5528F1BC-59BF-4DD2-96A2-7EE456C8901B/AddressBook-v22.abcddb> - creation error: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7fdc79543510 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during prepareSQL for SQL string 'pragma auto_vacuum=2' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during prepareSQL for SQL string 'pragma auto_vacuum=2' : access permission denied";
}
1/4/14 10:06:03.417 AM com.apple.quicklook.satellite[804]: CoreData: error: (3) access permission denied
1/4/14 10:06:03.418 AM com.apple.quicklook.satellite[804]: Unknown error reading database file, will attempt reimporting: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7fdc79494540 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during execution of SQL string 'pragma journal_mode=wal' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during execution of SQL string 'pragma journal_mode=wal' : access permission denied";
}
1/4/14 10:06:03.418 AM com.apple.quicklook.satellite[804]: Move Address Book store at /Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/FFD512FA-0B5F-4F96-9E53-CDF3060B0D51/AddressBook-v22.abcddb to /Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/FFD512FA-0B5F-4F96-9E53-CDF3060B0D51/AddressBook-v22.abcddb.2FA36D3C-DE97-4088-B4F9-316FA4DBD3D6.unknown
1/4/14 10:06:03.433 AM com.apple.quicklook.satellite[804]: Could not replace store at file:///Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application%20Support/AddressBook/Sources/FFD512FA-0B5F-4F96-9E53-CDF3060B0D51/AddressBook-v22.abcddb.2FA36D3C-DE97-4088-B4F9-316FA4DBD3D6.unknown from file:///Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application%20Support/AddressBook/Sources/FFD512FA-0B5F-4F96-9E53-CDF3060B0D51/AddressBook-v22.abcddb: Error Domain=NSSQLiteErrorDomain Code=3 "The operation couldn’t be completed. (NSSQLiteErrorDomain error 3.)" UserInfo=0x7fdc79495470 {NSFilePath=/Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/FFD512FA-0B5F-4F96-9E53-CDF3060B0D51/AddressBook-v22.abcddb.2FA36D3C-DE97-4088-B4F9-316FA4DBD3D6.unknown, reason=Failed to replace destination database} {
    NSFilePath = "/Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/FFD512FA-0B5F-4F96-9E53-CDF3060B0D51/AddressBook-v22.abcddb.2FA36D3C-DE97-4088-B4F9-316FA4DBD3D6.unknown";
    reason = "Failed to replace destination database";
}
1/4/14 10:06:04.240 AM com.apple.quicklook.satellite[804]: CoreData: error: (3) access permission denied
1/4/14 10:06:04.242 AM com.apple.quicklook.satellite[804]: 0x7fdc79419fe0: ManagedObjectContext (ABAddressBook) could not create the store at path: </Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/FFD512FA-0B5F-4F96-9E53-CDF3060B0D51/AddressBook-v22.abcddb> - creation error: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7fdc794959f0 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during prepareSQL for SQL string 'pragma auto_vacuum=2' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during prepareSQL for SQL string 'pragma auto_vacuum=2' : access permission denied";
}
1/4/14 10:06:04.250 AM com.apple.quicklook.satellite[804]: CoreData: error: (3) access permission denied
1/4/14 10:06:04.251 AM com.apple.quicklook.satellite[804]: Unknown error reading database file, will attempt reimporting: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7fdc79559a70 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during execution of SQL string 'pragma journal_mode=wal' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during execution of SQL string 'pragma journal_mode=wal' : access permission denied";
}
1/4/14 10:06:04.251 AM com.apple.quicklook.satellite[804]: Move Address Book store at /Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/AddressBook-v22.abcddb to /Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/AddressBook-v22.abcddb.DB75B9D2-5DC8-4470-9C68-C4E09776C6A4.unknown
1/4/14 10:06:04.265 AM com.apple.quicklook.satellite[804]: Could not replace store at file:///Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application%20Support/AddressBook/AddressBook-v22.abcddb.DB75B9D2-5DC8-4470-9C68-C4E09776C6A4.unknown from file:///Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application%20Support/AddressBook/AddressBook-v22.abcddb: Error Domain=NSSQLiteErrorDomain Code=3 "The operation couldn’t be completed. (NSSQLiteErrorDomain error 3.)" UserInfo=0x7fdc7949a040 {NSFilePath=/Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/AddressBook-v22.abcddb.DB75B9D2-5DC8-4470-9C68-C4E09776C6A4.unknown, reason=Failed to replace destination database} {
    NSFilePath = "/Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/AddressBook-v22.abcddb.DB75B9D2-5DC8-4470-9C68-C4E09776C6A4.unknown";
    reason = "Failed to replace destination database";
}
1/4/14 10:06:04.850 AM com.apple.quicklook.satellite[804]: CoreData: error: (3) access permission denied
1/4/14 10:06:04.852 AM com.apple.quicklook.satellite[804]: 0x7fdc79419fe0: ManagedObjectContext (ABAddressBook) could not create the store at path: </Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/AddressBook-v22.abcddb> - creation error: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7fdc79564880 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during prepareSQL for SQL string 'pragma auto_vacuum=2' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during prepareSQL for SQL string 'pragma auto_vacuum=2' : access permission denied";
}
1/4/14 10:06:04.855 AM com.apple.quicklook.satellite[804]: *** attempt to post distributed notification 'ABWillRestoreFromMetadataPriv' thwarted by sandboxing.


Date/Time:     Sat Jan  4 10:06:04 2014
OS Version:    13B42
Application:   com.apple.quicklook.satellite


Backtrace:
0   CoreFoundation                      0x00007fff95f40352 __CFGenerateReport + 242
1   CoreFoundation                      0x00007fff95db3482 _CFXNotificationPost + 882
2   Foundation                          0x00007fff8be247b4 -[NSDistributedNotificationCenter postNotificationName:object:userInfo:options:] + 73
3   AddressBook                         0x00007fff8d7bc521 -[ABAddressBook nts_RestoreFromMetaDataIfNeeded] + 164
4   AddressBook                         0x00007fff8d7bc426 -[ABAddressBook nts_DoInitialImports] + 157
5   AddressBook                         0x00007fff8d7b892f ABRunWithLock + 166
6   AddressBook                         0x00007fff8d7b6181 +[ABAddressBook nts_SharedAddressBook] + 129
7   AddressBook                         0x00007fff8d7b605b +[ABAddressBook nts_CreateSharedAddressBook] + 49
8   AddressBook                         0x00007fff8d7b5ede +[ABAddressBook sharedAddressBook] + 69
9   AddressBook                         0x00007fff8d7b5de7 +[ABAddressBook addressBookWithDatabaseDirectory:options:] + 56
10  AddressBook                         0x00007fff8d885646 -[ABVCardParser people] + 41
11  Contact                             0x0000000108b0869c Contact + 9884
12  QuickLook                           0x00007fff8cab6e33 _QLThumbnailRequestCallGenerator + 585
13  QuickLookSatellite                  0x0000000108041249 main + 6233
14  QuickLookSatellite                  0x00000001080426aa _QLUUIDForRequest + 150
15  QuickLookSatellite                  0x0000000108040fa4 main + 5556
16  QuickLook                           0x00007fff8cae7181 _Z18QLTryCatchAndCrashU13block_pointerFvvE + 17
17  libdispatch.dylib                   0x00007fff8b7701d7 _dispatch_call_block_and_release + 12
18  libdispatch.dylib                   0x00007fff8b76d2ad _dispatch_client_callout + 8
19  libdispatch.dylib                   0x00007fff8b76f68f _dispatch_queue_drain + 451
20  libdispatch.dylib                   0x00007fff8b7709dd _dispatch_queue_invoke + 110
21  libdispatch.dylib                   0x00007fff8b76efa3 _dispatch_root_queue_drain + 75
22  libdispatch.dylib                   0x00007fff8b770193 _dispatch_worker_thread2 + 40
23  libsystem_pthread.dylib             0x00007fff8cf09ef8 _pthread_wqthread + 314
24  libsystem_pthread.dylib             0x00007fff8cf0cfb9 start_wqthread + 13
1/4/14 10:06:04.866 AM com.apple.quicklook.satellite[804]: Restoring DB from MetaData
1/4/14 10:06:04.869 AM com.apple.quicklook.satellite[804]: Restoration from MetaData complete (0.003s)
1/4/14 10:06:04.872 AM com.apple.quicklook.satellite[804]: *** attempt to post distributed notification 'ABDistributedDatabaseChangedNotification' thwarted by sandboxing.


Date/Time:     Sat Jan  4 10:06:04 2014
OS Version:    13B42
Application:   com.apple.quicklook.satellite


Backtrace:
0   CoreFoundation                      0x00007fff95f40352 __CFGenerateReport + 242
1   CoreFoundation                      0x00007fff95db3482 _CFXNotificationPost + 882
2   Foundation                          0x00007fff8be247b4 -[NSDistributedNotificationCenter postNotificationName:object:userInfo:options:] + 73
3   AddressBook                         0x00007fff8d7bc5f3 -[ABAddressBook nts_RestoreFromMetaDataIfNeeded] + 374
4   AddressBook                         0x00007fff8d7bc426 -[ABAddressBook nts_DoInitialImports] + 157
5   AddressBook                         0x00007fff8d7b892f ABRunWithLock + 166
6   AddressBook                         0x00007fff8d7b6181 +[ABAddressBook nts_SharedAddressBook] + 129
7   AddressBook                         0x00007fff8d7b605b +[ABAddressBook nts_CreateSharedAddressBook] + 49
8   AddressBook                         0x00007fff8d7b5ede +[ABAddressBook sharedAddressBook] + 69
9   AddressBook                         0x00007fff8d7b5de7 +[ABAddressBook addressBookWithDatabaseDirectory:options:] + 56
10  AddressBook                         0x00007fff8d885646 -[ABVCardParser people] + 41
11  Contact                             0x0000000108b0869c Contact + 9884
12  QuickLook                           0x00007fff8cab6e33 _QLThumbnailRequestCallGenerator + 585
13  QuickLookSatellite                  0x0000000108041249 main + 6233
14  QuickLookSatellite                  0x00000001080426aa _QLUUIDForRequest + 150
15  QuickLookSatellite                  0x0000000108040fa4 main + 5556
16  QuickLook                           0x00007fff8cae7181 _Z18QLTryCatchAndCrashU13block_pointerFvvE + 17
17  libdispatch.dylib                   0x00007fff8b7701d7 _dispatch_call_block_and_release + 12
18  libdispatch.dylib                   0x00007fff8b76d2ad _dispatch_client_callout + 8
19  libdispatch.dylib                   0x00007fff8b76f68f _dispatch_queue_drain + 451
20  libdispatch.dylib                   0x00007fff8b7709dd _dispatch_queue_invoke + 110
21  libdispatch.dylib                   0x00007fff8b76efa3 _dispatch_root_queue_drain + 75
22  libdispatch.dylib                   0x00007fff8b770193 _dispatch_worker_thread2 + 40
23  libsystem_pthread.dylib             0x00007fff8cf09ef8 _pthread_wqthread + 314
24  libsystem_pthread.dylib             0x00007fff8cf0cfb9 start_wqthread + 13
1/4/14 10:06:04.886 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc79509bd0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.887 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc797297f0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.888 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc7941d750 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.893 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc794a53f0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.894 AM com.apple.quicklook.satellite[804]: Caught exception setting image data: *** -[NSURL initFileURLWithPath:]: nil string parameter
1/4/14 10:06:04.895 AM com.apple.quicklook.satellite[804]: Caught exception setting image data: *** -[NSURL initFileURLWithPath:]: nil string parameter
1/4/14 10:06:04.895 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc794a8cf0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.896 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc79547770 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.898 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc794ac600 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.902 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc794ba110 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.904 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc794bcb10 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.905 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc794bd770 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.907 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc7953e5d0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.910 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc79557eb0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.911 AM com.apple.quicklook.satellite[804]: Caught exception setting image data: *** -[NSURL initFileURLWithPath:]: nil string parameter
1/4/14 10:06:04.911 AM com.apple.quicklook.satellite[804]: Caught exception setting image data: *** -[NSURL initFileURLWithPath:]: nil string parameter
1/4/14 10:06:04.912 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc79542f60 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:04.912 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc794a7800 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}



These last entrees repeat for many lines before finishing with:


1/4/14 10:06:05.310 AM com.apple.quicklook.satellite[804]: Rethrowing (from setValue:forProperty:error:account:) NSInvalidArgumentException: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
1/4/14 10:06:05.311 AM com.apple.quicklook.satellite[804]: ABVCardParser: importToPerson: Exception: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
1/4/14 10:06:08.155 AM com.apple.quicklook.satellite[804]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7fdc7953f380 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/4/14 10:06:13.760 AM Contacts[817]: CoreData: error: (11) Fatal error.  The database at /Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/FFD512FA-0B5F-4F96-9E53-CDF3060B0D51/AddressBook-v22.abcddb is corrupted.  SQLite error code:11, 'database disk image is malformed'
1/4/14 10:06:13.760 AM Contacts[817]: Core Data: error: -executeRequest: encountered exception = Fatal error.  The database at /Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/FFD512FA-0B5F-4F96-9E53-CDF3060B0D51/AddressBook-v22.abcddb is corrupted.  SQLite error code:11, 'database disk image is malformed' with userInfo = {
    NSFilePath = "/Network/Servers/server1.mydomain.com/<path-to-users>/<user>/Library/Application Support/AddressBook/Sources/FFD512FA-0B5F-4F96-9E53-CDF3060B0D51/AddressBook-v22.abcddb";
    NSSQLiteErrorDomain = 11;
}


So now I'm thinking my overall issue has less to do with the actual caldav database and more to do with contents of one or more of these cards, some which have existed since the days of Palm Pilots ;-)


I'm going to proceed with nuking the database and will get all the user data back in execpt for these contacts (whcih is unfortunate). I've got to come up with a way to scrub them clean or determine the offending card(s). Any ideas are welcome, especially if someone knows of a program that will validate/clean up vCards?


For the meltdown yesteday, it seemed more focused on InternetAccounts kicked off by calendarAgent. Now I suspect calendarAgent also works with the contacts which is why I have been approaching this as all one problem. What happened yesterday has occurred before and normally coincides with addressbook problems; however the event yesterday seemed a little more isolated. What happens in general is that I am quite suddenly prompted to enter passwords again for all my services. Most of the services won't accept the passwords or I get log entries complaining of internetAccounts being unable to udpate passwords. The passwords in Safari get wiped and I frequently get the spinning beachball. Generally if I log off and delete the addressbook account in Internet Accounts, I can slowly get control again and the passwords start taking. Weird...


Tim

Jan 4, 2014 12:30 PM in response to tim_r_66

Turns out I have a unsuccessful procedure developed for nuking and starting over with the database.


My first attempt involved these steps:

1. backup data,

2. have users export their data

3. stop the servcies

4. drop the database (after killing remaining connections),

5. Used psql to create the caldav database.

6. Used psq to import a modified dump_caldav file to set things up.


Unfortunately, using my account as the test account, reconnecting to the service doesn't automatically create a new entry in the database for the user. I had hoped the service would be intelligent enough to start over. I appear to have been wrong.


I know Charles (krypted.com) identifed the command to bootsrap the database in Lion, however, that doesn't seem to work in Mavericks. I poked /usr/shar/caldavd/lib/python/calendarserver/tools and tried purge.py but it failed. I looked at bootstrapdatabase.py but the socket it is pointing at is in PostgreSQL For Server Services so I'm thinking this is left over from ML. I really feel I would need some documentation or stand on the shoulders of others to continue on this path since I'm not on a test machine.


So, I'm going to import alll the data again and get the other users access to their stuff. Then I'll work on how to clean up my vCards.


Does anyone have a set of commands for nuking and paving caldav in Mavericks?


Tim

Jan 4, 2014 7:29 PM in response to tim_r_66

It looks like you have permission errors on the client.

Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore will not, in itself, solve your problem.

First, empty the Trash, if possible.

Triple-click anywhere in the line below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:

find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) 2>&- | wc -l | pbcopy

Launch the built-in Terminal application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

Paste into the Terminal window (command-V). The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.

The output of the command will be a number. It's automatically copied to the Clipboard. Please paste it into a reply.

Jan 5, 2014 7:09 AM in response to Linc Davis

Here is the number that was returned.


5


What I did late yesterday afternoon is go through all he cards manually and deleted ~150. A few I edited the notes where they said X-Palm something or another. Yes, there were some entries in there that were from the mid 90s :-) I watched the Console output as I deleted them. The vast majority just reported


Contacts[343]: Process com.apple.AddressBook deleting 1 contact


and a very small number reported:


AddressBookSourceSync[667]: Process com.apple.AddressBookSourceSync deleting 1 (or 2) contact


I'm not clear on the difference or if it is relevent.


And one contact I deleted seemed to cause:


1/4/14 3:19:03.702 PM Contacts[343]: Timed out getting FaceTime ids for 9F6A7054-CD32-4A00-83B0-2CF08F82379E:ABPerson
1/4/14 3:19:03.803 PM Contacts[343]: Timed out getting legacy video ids for 9F6A7054-CD32-4A00-83B0-2CF08F82379E:ABPerson


So I'm hopeful there was a malformed entry which quicklook/other processes could not handle. Seems to me they should be able to handle those better though but if it works now, I won't fret. I have the original vCard file (moved to a test user account) and spent some time last night trying to adopt these vCard Validator tools for OS X, but I couldn't get the regex in csplit to recognize BEGIN:VCARD so I couldn't split up the file. It would be nice to know which card(s) caused the issue if that is in fact the case, but it would also be nice to run my updated contacts against a validator to make sure there aren't other surprises.


Tim

Jan 5, 2014 9:37 AM in response to tim_r_66

UPDATE:


So, I was also having trouble with my account remembering any of the passwords. I did all the usual things with Keychain and no luck. So I decided to go ahead and delete the calendar and contacts accounts and sure enough, the system started remembering passwords again. I then added the accounts back (this time using the OS X Server Account option).


The good news is the issue with passwords seems to be cleared up.


On the other hand, Addressbook came up showing it had a lot of duplicate, including the one group I had reconfigured. I deleted one of the groups and both disappeared. Sighhhh. I then ran Look for Duplicates, and said yes to merging. Apparently merging means delete in this case and my original 410 contacts is now down to 105. Frankly I'm disappointed, but if this is now going to be stable and usable, I'll live with it. I'm just surprised at how fragile this seems.


If I was having similar problems with other users or clients, I'd probably pursue alternatives. As it is, I'll let things sit and see if they are in fact stable.


Tim

Jan 5, 2014 10:34 AM in response to tim_r_66

Another Update:


Given the purge that occurred that would have made Kim Jong Un proud, I was faced with having to reconstruct several contacts. Because all of the contacts from my wife's side of the family were deleted (maybe Apple is trying to tell me something?), I asked her to start sending me vCards so I could import them.


As soon as I double-clicked on the first one:


1/5/14 12:18:45.558 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbe02ea0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.559 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbc75b30 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.559 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbf05710 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.560 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbc723d0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.560 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbd7dac0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.715 PM Messages[1236]: CoreData: error: (1) I/O error for database at /Network/Servers/server.mydomain.com/<path-to-user>/Library/Application Support/AddressBook/Sources/B10EFCFD-35B8-4050-99D8-F5673D22E108/AddressBook-v22.abcddb.  SQLite error code:1, 'cannot rollback - no transaction is active'
1/5/14 12:18:45.715 PM Messages[1236]: CoreData: error: exception during obtainPermanentIDsForObjects: Fetching maximum primary key failed with userInfo of {
    NSSQLiteErrorDomain = 522;
}
1/5/14 12:18:48.897 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbd61720 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}


This is just a representative sample of all the errors I got. Several minutes later, quicklook is still spinning on the vcf and Addressbook appears frozen.


So, unless someone else comes up with another idea soon, I'll print off as many contacts as I can then then delete everything, try to create a clean connection to the server, and then start typing.


Sure would be nice to get some of my "real work" done as opposed to trying to get this to work.


Tim

Jan 5, 2014 12:57 PM in response to tim_r_66

For anyone who may be brave enough to read this thread, I want to share what I did (based on a thread I found Googling) that has provided a workaround.


I took the same vCard above and copied to my test user account. Allowing quicklook to interact with the card caused a meltdown and corruption of AddressBook-v22.abcddb so it became very clear to me that my issues were not solely related to the existing data. On my Mavericks box, I renamed two files associated with quicklook and spotlight that has made it so I can work with .vcf files now:


The first is the Contact.qlgenerator in /System/Library/QuickLook, renamed to Contact.qlgenerator.BAD

Second, vCard.mdimporter in /System/Libarary/SpotLight, renamed to vCard.mdimporter.BAD


I can live without quicklook of vcards, but I'll have to experiment with the spotlight as I do want to be able to search for contacts.


Anyone else able to receive vCards in, say Messages, and able to doubleclick on them and have them be properly viewed/imported to Contacts without issues?


Tim

Jan 5, 2014 7:23 PM in response to tim_r_66

Quicklook makes no changes to files and is therefore incapable of corrupting them.


I'm past the point of being able to understand these strange complications that you seem to have. You had equally inexplicable problems with the Mail service in another thread. You must be doing something unusual, but I don't know what it is. You really need to get someone knowledgable to come to your site and look into it.

Jan 6, 2014 5:56 AM in response to Linc Davis

Well I do appreciate the time and effort. I will agree with you that something unusual is happening, and while I am open to it being something I am doing I am not sold on this explanation. I'm still looking at the quality of data and the complexity of the OS X system as contributors.


I'll trust you that Quicklook doesn't change files, but I do know that I'm now able to import vCards without issues. My knowledge is still growing and I don't comprehend yet the difference between quicklook and quicklook.satellite, but here is a log entry that seems to indicate the latter does manipulate files:


1/4/14 10:06:04.251 AM com.apple.quicklook.satellite[804]: Unknown error reading database file, will attempt reimporting: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7fdc79559a70 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during execution of SQL string 'pragma journal_mode=wal' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during execution of SQL string 'pragma journal_mode=wal' : access permission denied";
}
1/4/14 10:06:04.251 AM com.apple.quicklook.satellite[804]: Move Address Book store at /Network/Servers/server.mydomain.com/<path-to-user>/Library/Application Support/AddressBook/AddressBook-v22.abcddb to /Network/Servers/server.mydomain.com/<path-to-user>/Library/Application Support/AddressBook/AddressBook-v22.abcddb.DB75B9D2-5DC8-4470-9C68-C4E09776C6A4.unknown


But I suspect these two lines are really just symptoms.


Yesterday, I asked my wife to send me a vCard. At 1216, from her ML MacBook, she dragged a contact from her Addressbook into Messages and sent it to me. Shortly after, I double-clicked on that contact in my Messages on my Mavericks 2012 Mac-Mini (fresh install just a few days ago). Here are the log entries on my computer started at 1216 for the next couple of minutes until the error started repeating itself:



1/5/14 12:16:02.821 PM com.apple.ImageKit.MediaLibraryService[1282]: -[NSProcessInfo enableSuddenTermination] has been invoked more times than necessary to balance invocations of -[NSProcessInfo disableSuddenTermination]. Ignoring.
1/5/14 12:16:34.631 PM com.apple.ImageKit.MediaLibraryService[1282]: -[NSProcessInfo enableSuddenTermination] has been invoked more times than necessary to balance invocations of -[NSProcessInfo disableSuddenTermination]. Ignoring.
1/5/14 12:16:54.525 PM com.apple.WebKit.Networking[1434]: ERROR: unable to get the receiver data from the DB!
1/5/14 12:17:15.019 PM com.apple.ImageKit.MediaLibraryService[1282]: -[NSProcessInfo enableSuddenTermination] has been invoked more times than necessary to balance invocations of -[NSProcessInfo disableSuddenTermination]. Ignoring.
1/5/14 12:17:34.057 PM com.apple.ImageKit.MediaLibraryService[1282]: -[NSProcessInfo enableSuddenTermination] has been invoked more times than necessary to balance invocations of -[NSProcessInfo disableSuddenTermination]. Ignoring.
1/5/14 12:18:04.954 PM com.apple.ImageKit.MediaLibraryService[1282]: -[NSProcessInfo enableSuddenTermination] has been invoked more times than necessary to balance invocations of -[NSProcessInfo disableSuddenTermination]. Ignoring.
1/5/14 12:18:39.748 PM com.apple.ImageKit.MediaLibraryService[1282]: -[NSProcessInfo enableSuddenTermination] has been invoked more times than necessary to balance invocations of -[NSProcessInfo disableSuddenTermination]. Ignoring.
1/5/14 12:18:43.988 PM com.apple.quicklook.satellite[1450]: CoreData: error: (3) access permission denied
1/5/14 12:18:43.991 PM com.apple.quicklook.satellite[1450]: Unknown error reading database file, will attempt reimporting: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7f85cbc2c1f0 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during execution of SQL string 'pragma journal_mode=wal' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during execution of SQL string 'pragma journal_mode=wal' : access permission denied";
}
1/5/14 12:18:43.992 PM com.apple.quicklook.satellite[1450]: Move Address Book store at /Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application Support/AddressBook/Sources/B10EFCFD-35B8-4050-99D8-F5673D22E108/AddressBook-v22.abcddb to /Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application Support/AddressBook/Sources/B10EFCFD-35B8-4050-99D8-F5673D22E108/AddressBook-v22.abcddb.1FDE0709-39FD-49D7-88D4-ABA4D42385C2.unknown
1/5/14 12:18:44.018 PM com.apple.quicklook.satellite[1450]: Could not replace store at file:///Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application%20Support/AddressBook/Sources/B10EFCFD-35B8-4050-99D8-F5673D22E108/AddressBook-v22.abcddb.1FDE0709-39FD-49D7-88D4-ABA4D42385C2.unknown from file:///Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application%20Support/AddressBook/Sources/B10EFCFD-35B8-4050-99D8-F5673D22E108/AddressBook-v22.abcddb: Error Domain=NSSQLiteErrorDomain Code=3 "The operation couldn’t be completed. (NSSQLiteErrorDomain error 3.)" UserInfo=0x7f85cbc17910 {NSFilePath=/Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application Support/AddressBook/Sources/B10EFCFD-35B8-4050-99D8-F5673D22E108/AddressBook-v22.abcddb.1FDE0709-39FD-49D7-88D4-ABA4D42385C2.unknown, reason=Failed to replace destination database} {
    NSFilePath = "/Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application Support/AddressBook/Sources/B10EFCFD-35B8-4050-99D8-F5673D22E108/AddressBook-v22.abcddb.1FDE0709-39FD-49D7-88D4-ABA4D42385C2.unknown";
    reason = "Failed to replace destination database";
}
1/5/14 12:18:44.319 PM com.apple.quicklook.satellite[1450]: CoreData: error: (3) access permission denied
1/5/14 12:18:44.338 PM com.apple.quicklook.satellite[1450]: 0x7f85cbc17180: ManagedObjectContext (ABAddressBook) could not create the store at path: </Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application Support/AddressBook/Sources/B10EFCFD-35B8-4050-99D8-F5673D22E108/AddressBook-v22.abcddb> - creation error: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7f85cbd20d70 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during prepareSQL for SQL string 'pragma auto_vacuum=2' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during prepareSQL for SQL string 'pragma auto_vacuum=2' : access permission denied";
}
1/5/14 12:18:44.346 PM com.apple.quicklook.satellite[1450]: CoreData: error: (3) access permission denied
1/5/14 12:18:44.347 PM com.apple.quicklook.satellite[1450]: Unknown error reading database file, will attempt reimporting: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7f85cbd0ccc0 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during execution of SQL string 'pragma journal_mode=wal' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during execution of SQL string 'pragma journal_mode=wal' : access permission denied";
}
1/5/14 12:18:44.348 PM com.apple.quicklook.satellite[1450]: Move Address Book store at /Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application Support/AddressBook/AddressBook-v22.abcddb to /Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application Support/AddressBook/AddressBook-v22.abcddb.11AC2FB5-569B-4BB5-89B3-25A26F4C4E3F.unknown
1/5/14 12:18:44.363 PM com.apple.quicklook.satellite[1450]: Could not replace store at file:///Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application%20Support/AddressBook/AddressBook-v22.abcddb.11AC2FB5-569B-4BB5-89B3-25A26F4C4E3F.unknown from file:///Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application%20Support/AddressBook/AddressBook-v22.abcddb: Error Domain=NSSQLiteErrorDomain Code=3 "The operation couldn’t be completed. (NSSQLiteErrorDomain error 3.)" UserInfo=0x7f85cbc713a0 {NSFilePath=/Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application Support/AddressBook/AddressBook-v22.abcddb.11AC2FB5-569B-4BB5-89B3-25A26F4C4E3F.unknown, reason=Failed to replace destination database} {
    NSFilePath = "/Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application Support/AddressBook/AddressBook-v22.abcddb.11AC2FB5-569B-4BB5-89B3-25A26F4C4E3F.unknown";
    reason = "Failed to replace destination database";
}
1/5/14 12:18:45.145 PM com.apple.quicklook.satellite[1450]: CoreData: error: (3) access permission denied
1/5/14 12:18:45.148 PM com.apple.quicklook.satellite[1450]: 0x7f85cbc17180: ManagedObjectContext (ABAddressBook) could not create the store at path: </Network/Servers/server.mydomain.com/Volumes/<path-to-user/Library/Application Support/AddressBook/AddressBook-v22.abcddb> - creation error: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7f85cbd22c10 {NSSQLiteErrorDomain=3, NSUnderlyingException=error during prepareSQL for SQL string 'pragma auto_vacuum=2' : access permission denied} {
    NSSQLiteErrorDomain = 3;
    NSUnderlyingException = "error during prepareSQL for SQL string 'pragma auto_vacuum=2' : access permission denied";
}
1/5/14 12:18:45.150 PM com.apple.quicklook.satellite[1450]: *** attempt to post distributed notification 'ABWillRestoreFromMetadataPriv' thwarted by sandboxing.


Date/Time:     Sun Jan  5 12:18:45 2014
OS Version:    13B42
Application:   com.apple.quicklook.satellite


Backtrace:
0   CoreFoundation                      0x00007fff9990a352 __CFGenerateReport + 242
1   CoreFoundation                      0x00007fff9977d482 _CFXNotificationPost + 882
2   Foundation                          0x00007fff8f7ee7b4 -[NSDistributedNotificationCenter postNotificationName:object:userInfo:options:] + 73
3   AddressBook                         0x00007fff91186521 -[ABAddressBook nts_RestoreFromMetaDataIfNeeded] + 164
4   AddressBook                         0x00007fff91186426 -[ABAddressBook nts_DoInitialImports] + 157
5   AddressBook                         0x00007fff9118292f ABRunWithLock + 166
6   AddressBook                         0x00007fff91180181 +[ABAddressBook nts_SharedAddressBook] + 129
7   AddressBook                         0x00007fff9118005b +[ABAddressBook nts_CreateSharedAddressBook] + 49
8   AddressBook                         0x00007fff9117fede +[ABAddressBook sharedAddressBook] + 69
9   AddressBook                         0x00007fff9117fde7 +[ABAddressBook addressBookWithDatabaseDirectory:options:] + 56
10  AddressBook                         0x00007fff9124f646 -[ABVCardParser people] + 41
11  Contact                             0x000000010dff3812 Contact + 6162
12  QuickLook                           0x00007fff9048d85e _QLPreviewRequestCallGenerator + 90
13  QuickLookSatellite                  0x000000010dcde354 main + 6500
14  QuickLookSatellite                  0x000000010dcdf6aa _QLUUIDForRequest + 150
15  QuickLookSatellite                  0x000000010dcddfa4 main + 5556
16  QuickLook                           0x00007fff904b1181 _Z18QLTryCatchAndCrashU13block_pointerFvvE + 17
17  libdispatch.dylib                   0x00007fff8f13a1d7 _dispatch_call_block_and_release + 12
18  libdispatch.dylib                   0x00007fff8f1372ad _dispatch_client_callout + 8
19  libdispatch.dylib                   0x00007fff8f13968f _dispatch_queue_drain + 451
20  libdispatch.dylib                   0x00007fff8f13a9dd _dispatch_queue_invoke + 110
21  libdispatch.dylib                   0x00007fff8f138fa3 _dispatch_root_queue_drain + 75
22  libdispatch.dylib                   0x00007fff8f13a193 _dispatch_worker_thread2 + 40
23  libsystem_pthread.dylib             0x00007fff908d3ef8 _pthread_wqthread + 314
24  libsystem_pthread.dylib             0x00007fff908d6fb9 start_wqthread + 13
1/5/14 12:18:45.161 PM com.apple.quicklook.satellite[1450]: Restoring DB from MetaData
1/5/14 12:18:45.465 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbd57170 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.466 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbe049b0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.467 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbf03940 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.468 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbc6a0d0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.469 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbd5cbc0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.470 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbc18a00 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.471 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbd5e080 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.475 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbd64100 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.476 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbd643e0 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.477 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbd64e40 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
1/5/14 12:18:45.477 PM com.apple.quicklook.satellite[1450]: Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo=0x7f85cbc6bc00 {NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}


Following your advice in the Mail service thread, I did wipe that server and start over. The mail server will run there now.


I would say that most everything in my system is a standard fresh install of OS X except a couple of areas:

1) My user and group data is not on the server's hard drive, instead located on an external RAID.

2) Most of the data has made migrations from previous versions of OS X, and some from other systems (Linux and Windows both).

3) Service data for calendars, contacts and wikis was migrated over from ML by hand. During one of the installs I tried to have the system migrate it but that didn't work.


As we discussed early in the thread, would like to have a clean instantation of the caldav database and then have users import their data as new. However, I need some help with the procedures for that because my initial attempt wasn't right.


Cheers, Tim

Jan 6, 2014 1:10 PM in response to tim_r_66

My user and group data is not on the server's hard drive, instead located on an external RAID.


A good way to trigger all kinds of Server bugs. This comes up again and again. Migrating weird data from other platforms is up there too.


here is a log entry


That doesn't indicate an attempt to modify a file; it indicates an attempt to read one. It looks like something you would see in a network account with a bad OD setup. Moving your user data off the server's boot volume is, as I mentioned, a good way to knock over the OD house of cards.


would like to have a clean instantation of the caldav database and then have users import their data as new


You should be able to wipe those services clean by moving


/Library/Server/Calendar and Contacts


to the Trash and rebooting the server. I doubt that it will solve your problem, though.

Jan 6, 2014 3:53 PM in response to Linc Davis

Thanks, Linc. I have had the data on an external drive for a couple of years now starting with SLS. I skipped Lion but ran with ML for about a year. Admittedly though, I'm pushing my personal use of the server much more now and working through these issues. Other user accounts are generally not experiencing the issues I am though but their use is less taxing than mine. Altough, they are using the contacts services and are not experiencing the issues I am haivng with this account. I supposed I could move the user data for this account to /Users and repoint to that as the home directory and see if things improve? Something to consider. FWIW, this current OD was built with all the user data in the current location and user accounts' home folder settings pointing to that external drive location.


I read "

com.apple.quicklook.satellite[804]: Move Address Book store at...
" as a renaming of the current local addressbook file and therefore a modifcation of the file. Agreed this occurred because it tried to read something it didn't--what, I don't understand, but in my mind I keep going back to the log entries about the store model being used to open not being compatible with that model used to create the store. Whether this is ultimately being caused by a home directory/OD issue, bad data in database, or something else, is not clear. I do know that I've now been running for near 24 hours without a single log entry from quicklook.satellite and I've used Contacts during that period fairly extensively. Too early to say I've Isolated it for sure, but I do believe I can say it is a factor.


Thank you for the tip on /Library/Server/Calendar and Contacts/ I had thought about that approach. It will probably be a few days before I can get around to trying that.


Thanks again,


Tim

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Addressbook service unreliable/sources fail/database corrupts

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.