Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

contacts on client machine suffer from disk I/O errors

Contacts are running slow if not at all on my client machines. I check the logs and it is having trouble with accessing the files and or writing the files. all other programs seem to work fine. Mail hangs but I think it is because of the contacts issue. It seems to have trouble reading the contacts list and dumps the list and attempts to rebuild from iCloud and the server. there are many .unknown files in the library. The logs state that there is a disk I/O error while accessing /Network/myserver/Volumes/MyBook/Users/username/Library/Address Book (this is from memory but it is close). The contacts work perfectly (as expected) if the user is logged into the server.


I am running 10.8 server and clients with shared home folders. the user folders are on an external drive. the drive does have permissions turned on. I have wiped out the contacts directory in the Library folder and it proceeds to rebuild but the problem is still there.


would rebuilding the clients from scratch help?


David Urban

Mac mini (Mid 2011), OS X Server

Posted on Jul 29, 2012 5:57 AM

Reply
71 replies

Jul 29, 2012 1:01 PM in response to David Urban

Here is what the logs say on the client machine when it tries to update.


7/29/12 2:55:37.577 PM AddressBookManager[796]: Unknown error reading database file, will attempt reimporting: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7fd6caca5970 {NSSQLiteErrorDomain=2058, NSUnderlyingException=I/O error for database at /Network/Servers/server/Volumes/MyBook/Users/davidurban/Library/Application Support/AddressBook/Sources/0DC4F8E4-5F33-4ADE-B182-A697AE503D68/AddressBook-v2 2.abcddb. SQLite error code:2058, 'disk I/O error'} {

NSSQLiteErrorDomain = 2058;

NSUnderlyingException = "I/O error for database at /Network/Servers/server/Volumes/MyBook/Users/davidurban/Library/Application Support/AddressBook/Sources/0DC4F8E4-5F33-4ADE-B182-A697AE503D68/AddressBook-v2 2.abcddb. SQLite error code:2058, 'disk I/O error'";

}

7/29/12 2:55:37.579 PM AddressBookManager[796]: Move Address Book store at /Network/Servers/server/Volumes/MyBook/Users/davidurban/Library/Application Support/AddressBook/Sources/0DC4F8E4-5F33-4ADE-B182-A697AE503D68/AddressBook-v2 2.abcddb to /Network/Servers/server/Volumes/MyBook/Users/davidurban/Library/Application Support/AddressBook/Sources/0DC4F8E4-5F33-4ADE-B182-A697AE503D68/AddressBook-v2 2.abcddb.C0E8102D-FECE-47EB-A5A5-15E83BDFBE8B.unknown

7/29/12 2:55:37.751 PM Contacts[777]: CoreData: error: (1) I/O error for database at /Network/Servers/server/Volumes/MyBook/Users/davidurban/Library/Application Support/AddressBook/Sources/0DC4F8E4-5F33-4ADE-B182-A697AE503D68/AddressBook-v2 2.abcddb. SQLite error code:1, 'no such table: ZABCDRECORD'

7/29/12 2:55:37.752 PM Contacts[777]: Core Data: annotation: -executeRequest: encountered exception = I/O error for database at /Network/Servers/server/Volumes/MyBook/Users/davidurban/Library/Application Support/AddressBook/Sources/0DC4F8E4-5F33-4ADE-B182-A697AE503D68/AddressBook-v2 2.abcddb. SQLite error code:1, 'no such table: ZABCDRECORD' with userInfo = {

NSFilePath = "/Network/Servers/server.urbanfamily.us/Volumes/MyBook/Users/davidurban/Library /Application Support/AddressBook/Sources/0DC4F8E4-5F33-4ADE-B182-A697AE503D68/AddressBook-v2 2.abcddb";

NSSQLiteErrorDomain = 1;

}


Over and over again

Jul 31, 2012 2:06 PM in response to David Urban

Hello


I have exactly the same problem (its taken me ages to figure where the issue is).


Currently running 10.8 Server on Mac Mini Server


10.8 Clients include another Mac Mini, 2x MBAs



31/07/2012 21:47:45.068 Contacts[340]: Unknown error reading database file, will attempt reimporting: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7f8e7da52520 {NSSQLiteErrorDomain=2058, NSUnderlyingException=I/O error for database at /Network/Servers/mountainserver/Users/test123/Library/Application Support/AddressBook/Sources/804A0C27-5BDC-42ED-B64B-0B4A48BB0C72/AddressBook-v2 2.abcddb. SQLite error code:2058, 'disk I/O error'} {

NSSQLiteErrorDomain = 2058;

NSUnderlyingException = "I/O error for database at /Network/Servers/mountainserver/Users/test123/Library/Application Support/AddressBook/Sources/804A0C27-5BDC-42ED-B64B-0B4A48BB0C72/AddressBook-v2 2.abcddb. SQLite error code:2058, 'disk I/O error'";

}


And so on:


31/07/2012 21:47:45.069 Contacts[340]: Move Address Book store at /Network/Servers/mountainserver/Users/test123/Library/Application Support/AddressBook/Sources/804A0C27-5BDC-42ED-B64B-0B4A48BB0C72/AddressBook-v2 2.abcddb to /Network/Servers/mountainserver/Users/test123/Library/Application Support/AddressBook/Sources/804A0C27-5BDC-42ED-B64B-0B4A48BB0C72/AddressBook-v2 2.abcddb.3DE2BE43-E068-4AED-A635-AE1988E6118F.unknown

31/07/2012 21:47:58.145 Contacts[340]: CoreData: error: (2058) I/O error for database at /Network/Servers/mountainserver/Users/test123/Library/Application Support/AddressBook/AddressBook-v22.abcddb. SQLite error code:2058, 'disk I/O error'

31/07/2012 21:47:58.146 Contacts[340]: Unknown error reading database file, will attempt reimporting: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7f8e7bcb5b40 {NSSQLiteErrorDomain=2058, NSUnderlyingException=I/O error for database at /Network/Servers/mountainserver/Users/test123/Library/Application Support/AddressBook/AddressBook-v22.abcddb. SQLite error code:2058, 'disk I/O error'} {

NSSQLiteErrorDomain = 2058;

NSUnderlyingException = "I/O error for database at /Network/Servers/mountainserver/Users/test123/Library/Application Support/AddressBook/AddressBook-v22.abcddb. SQLite error code:2058, 'disk I/O error'";

}

31/07/2012 21:47:58.147 Contacts[340]: Move Address Book store at /Network/Servers/mountainserver/Users/test123/Library/Application Support/AddressBook/AddressBook-v22.abcddb to /Network/Servers/mountainserver/Users/test123/Library/Application Support/AddressBook/AddressBook-v22.abcddb.F13475A4-E1FC-4427-91FF-7FE935E2F40C .unknown

31/07/2012 21:47:58.890 Mail[333]: CoreData: error: (522) I/O error for database at /Network/Servers/mountainserver/Users/test123/Library/Containers/com.apple.mail /Data/Library/Application Support/AddressBook/AddressBook-v22.abcddb. SQLite error code:522, 'disk I/O error'

31/07/2012 21:47:58.891 Mail[333]: Core Data: annotation: -executeRequest: encountered exception = I/O error for database at /Network/Servers/mountainserver/Users/test123/Library/Containers/com.apple.mail /Data/Library/Application Support/AddressBook/AddressBook-v22.abcddb. SQLite error code:522, 'disk I/O error' with userInfo = {

NSFilePath = "/Network/Servers/mountainserver/Users/test123/Library/Containers/com.apple.mai l/Data/Library/Application Support/AddressBook/AddressBook-v22.abcddb";

NSSQLiteErrorDomain = 522;

}


At first I thought it may be related to upgraded 10.8 clients and server i.e. went throught the normal install option without re-installing OSX.


So I completely rebuild (i.e. erased and then installed Mountain Lion from USB stick) the server and the client machines...but I still get the same issue, so clearly this is NOT the solution.


I have also observed (upon reading others' issues with Contacts/mail) apple forums - so I followed the the same action (trashed the Address Book folder in ~Library/Application Support/ ) after unchecking everything in iCloud in system prefs/restarting etc.) but this doesn't so solve the problem either


I also observed teh following behaviours:

Login into iCloud for the first time - appears to be ok

Run Contacts - appears to be ok

Wait the addresses to sync from iCloud - appears to be ok

Quit

Run Contacts - still appears to be ok

(i.e. the errors above are not displayed in log)

Run Mail (which takes a long time)

Contacts sudden looses all address and effectively both Mail and Contacts freeeze. It is at this point I start seeing the above errors

I get a further odd error in Contacts (in a triange with '!' warning)


Basically Contacts and mail don't seem to want to work together - they appear ok in isolation - obviously this isn't acceptable.


I've noted that if I create a local logon on any one of the client macs, the issue with contacts/mail does not occur and runs perfectly smoothly. So in my eyes it appears to be a problem in Mountain Lion Server/Client Combo Only (I did not have this issue under Lion Server/Client Combo)


H - E - L - P !!


😠

Jul 31, 2012 2:13 PM in response to iDash

when I go back into Contacts (say after quitting Mail - sometimes it needs to be forced quit), all the address disappear (get the errors above as mentioned) and spends a while looking for contacts). When it finishes, I get the warning triange with '!' in it and the following error:


[NSUnknownKeyException] [<ABCDGroup 0x7ffdde81f9e0> setValue:forUndefinedKey:]: the entity ABCDGroup is not key value coding-compliant for the key "com.apple.addlInfo".


its all linked to the above errors that David (the original poster) and I getting!


Thanks

Rob

Jul 31, 2012 2:15 PM in response to iDash

I don't know if this is the issue or part of the issue. I have my home directories on an external firewire drive. If I login to my account on the server then everything runs fast and works great. As soon as I login to a client manchine then mail takes for ever and usually hangs, contacts starts a continual refresh. The whole machine is slow. I plan to to some checking into the external HD. I have noticed that it seems that the response time from the client machine to fetch the list of the shares on the server takes a while and am wondering if it is related to this delay.


David Urban

Jul 31, 2012 2:30 PM in response to iDash

I did try and rebuild both the client and the server from scratch and nothing changed. I did get rid of IPv6 and that did nothing. it is not a DNS issue. It seems to be a handshake issue between the server and the client over the afp and only seems to affect the contacts and anything that wants to interact with contacts. My mail may hang, system prefrences where the accounts are stored will hang. Safari is immune. Calendar may hang. It seems to be related to the accounts.


David

Jul 31, 2012 2:46 PM in response to David Urban

Yes agreed.


Also like you say, it's not limited to one account - it appears to be any account, that by definition, is accessing iCloud.


One other piece of information that I just recalled:


I saw the same behaviors after upgrading client machines to 10.8 (whilst the server was still on 10.7). Without realising it, I assumed it was something to do with the server so I upgraded that to 10.8 (initial install and then erase and install) in either case it did not resolve the problem.


Therefore it's logical to conclude that the issue appears to be on the client 10.8 rather than the server (although as you said it appears to be some kind error when server and client perform a handshake)


Hope that bit of info is usual to apple


A further step to prove me theory is to downgrade one of the clients to 10.7 to see if that helps (whilst maintaining 10.8 on the server)


Thanks

Rob

Jul 31, 2012 7:03 PM in response to iDash

Doing a little research on the client side and the console reported the following errors


7/31/12 8:55:38.107 PM Contacts[554]: [CardDAVPlugin-ERROR] -50 <Unknown error -50> from KRBAcquireTicket <HTTP/server.urbanfamily.us@SERVER.URBANFAMILY.USurbanfamily@SERVER.URBANFAMILY.US>

7/31/12 8:55:38.107 PM Contacts[554]: [CardDAVPlugin-ERROR] -[CDXAccount getKerberosTicketWithConnection:]:<NSURLConnection: 0x7fbb64be1be0> returning NO because can't get Kerberos ticket acquired for host: server.urbanfamily.us user: urbanfamily

7/31/12 8:56:24.651 PM AddressBookManager[559]: Validate metadata timed out, cancelling


sounds like it could be a kerberos error. With this new Server app I don't know how to control or check the Kerberos settings.


David

Aug 1, 2012 11:20 AM in response to iDash

I though I do another experiment - just to make sure it wasn't data on iCloud that was some how screwing ML Client/Server.


So I created a new Apple ID with a separate email address (with no address data) and logged on with that onto iCloud


Then I created a couple of test addresses in contacts. Kicked off Mail and boom - same thing


01/08/2012 19:16:21.605 Mail[691]: CoreData: error: (2058) I/O error for database at /Network/Servers/mountainserver/Users/test123/Library/Containers/com.apple.mail /Data/Library/Application Support/AddressBook/Sources/522EBA59-D2EE-4F65-8861-1BB58DE5E894/AddressBook-v2 2.abcddb. SQLite error code:2058, 'disk I/O error'

01/08/2012 19:16:21.608 Mail[691]: Unknown error reading database file, will attempt reimporting: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo=0x7f8e7bc967d0 {NSSQLiteErrorDomain=2058, NSUnderlyingException=I/O error for database at /Network/Servers/mountainserver/Users/test123/Library/Containers/com.apple.mail /Data/Library/Application Support/AddressBook/Sources/522EBA59-D2EE-4F65-8861-1BB58DE5E894/AddressBook-v2 2.abcddb. SQLite error code:2058, 'disk I/O error'} {

NSSQLiteErrorDomain = 2058;

NSUnderlyingException = "I/O error for database at /Network/Servers/mountainserver/Users/test123/Library/Containers/com.apple.mail /Data/Library/Application Support/AddressBook/Sources/522EBA59-D2EE-4F65-8861-1BB58DE5E894/AddressBook-v2 2.abcddb. SQLite error code:2058, 'disk I/O error'";

}

01/08/2012 19:16:21.609 Mail[691]: Move Address Book store at /Network/Servers/mountainserver/Users/test123/Library/Containers/com.apple.mail /Data/Library/Application Support/AddressBook/Sources/522EBA59-D2EE-4F65-8861-1BB58DE5E894/AddressBook-v2 2.abcddb to /Network/Servers/mountainserver/Users/test123/Library/Containers/com.apple.mail /Data/Library/Application Support/AddressBook/Sources/522EBA59-D2EE-4F65-8861-1BB58DE5E894/AddressBook-v2 2.abcddb.AC4E387E-55FB-4E61-BFE7-0F0272DC5064.unknown


So 100% its not my data - its MOUNTAIN LION !!!


😠


Apple - we have a problem here.


Thanks

Rob

Aug 1, 2012 5:39 PM in response to Kevin Neal

Sounds like it is a bug with contacts when the client is using a home folder on a server share. If the contacts data base is located on the local machine there is no lag or hang of the contacts program or any program that is trying to access the contacts database.


I hope apple can fix this quickly. This has spoiled my view of mountain lion.


David Urban

Aug 1, 2012 5:43 PM in response to David Urban

looking at the logs the issue seems to be arount the folder ~/Library/Containers/apple.mail.com

the logs say that it is not a valid location.


I had no intention of moving any users to Mountain Lion so early, but one users iMac literally exploded last week so we've had to use a mac with Mountain Lion, I guess we can live with mobile home for this one user, but I agree this needs fixing urgently, I've sent feedback

contacts on client machine suffer from disk I/O errors

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