Unable to add Gmail Account

I had some issues after first installing Mail, so I took off all of the accounts. I could add most of them back just fine, but for the life of me can't get my Gmail accounts added back. In both Mail and the system prefers, it just hangs after you check which services you'd like (mail, contacts, calendar). It just sits at that sheet, and nothing happens. I've tried to add it both by selecing Google, and by adding it as an IMAP account. Any help would be appreciated!

Replies

To identify the problem you'll need to open the Console app and be looking at the system.log as you check the service that's causing the hang.

7/23/15 8:02:36.290 AM accountsd[3993]: [Warning] Services all disappeared, removing all accounts

7/23/15 8:02:36.290 AM accountsd[3993]: [Warning] Services all disappeared, removing all enabled accounts

7/23/15 8:02:36.290 AM accountsd[3993]: [Warning] Services all disappeared, removing all dependent devices


As far as I can tell, this is the only thing that jumps out at me...

It also gives this:


7/23/15 8:06:54.513 AM com.apple.preferences.internetaccounts.remoteservice[3617]: __56-[ACUIViewController persistVerifiedAccountWithActions:]_block_invoke_3:87 -- *** Failed: Error Domain=com.apple.accounts Code=10000 "The operation couldn’t be completed. (com.apple.accounts error 10000.)" UserInfo=0x7fddc8fe9ce0 {exception_reason=data parameter is nil, exception_name=NSInvalidArgumentException}

7/23/15 8:06:59.446 AM accountsd[4001]: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'

*** First throw call stack:

(

0 CoreFoundation 0x00007fff94569b35 __exceptionPreprocess + 165

1 libobjc.A.dylib 0x00007fff92eb146a objc_exception_throw + 48

2 CoreFoundation 0x00007fff945699e5 +[NSException raise:format:] + 213

3 Foundation 0x00007fff842c63f3 +[NSPropertyListSerialization propertyListWithData:options:format:error:] + 67

4 AccountsDaemon 0x00007fff901872c5 +[ACDKeychainManager keychainAccounts] + 529

5 AccountsDaemon 0x00007fff901cc1b8 -[ACDAccountSync remoteAccounts] + 58

6 AccountsDaemon 0x00007fff901cb4a0 -[ACDAccountSync processAdds] + 61

7 AccountsDaemon 0x00007fff901cb022 -[ACDAccountSync sync] + 67

8 libdispatch.dylib 0x00007fff86442426 _dispatch_call_block_and_release + 12

9 libdispatch.dylib 0x00007fff8643e383 _dispatch_client_callout + 8

10 libdispatch.dylib 0x00007fff86441db8 _dispatch_queue_drain + 754

11 libdispatch.dylib 0x00007fff86441975 _dispatch_queue_invoke + 200

12 libdispatch.dylib 0x00007fff86441185 _dispatch_root_queue_drain + 530

13 libdispatch.dylib 0x00007fff86440f71 _dispatch_worker_thread3 + 91

14 libsystem_pthread.dylib 0x00007fff8867573f _pthread_wqthread + 1129

15 libsystem_pthread.dylib 0x00007fff88672d95 start_wqthread + 13

)

Hmmm... You may have to reinstall again with that.


Before you go that far though, you can try moving the following .plist files to the desktop. Do this one at a time (except the last two - do these together) and then try adding your Gmail account again before moving on to the next. If you don't replace them (and possibly even if you do), this will reset your other accounts that have been added successfully, so you may prefer to leave well enough alone.

~/Library/Preferences/com.apple.accountsd.plist

~/Library/Preferences/com.apple.internetaccounts.plist

~/Library/Preferences/com.apple.icbaccountsd.plist

~/Library/SyncedPreferences/icbaccountsd.plist

Thanks so much for your help!


Unfortunately, deleting the files didn't help. I'll re-install quick and see if that helps...


Update:


Didn't help. I think at this time I will just wait it out for the next beta update and use either a different client or the web browser...

This is occurring for me as well. I have done a fresh reinstall and every dev beta starting with 1 thourgh dev beta 3 can't add accounts. I'm updating to dev beta 4 now. BTW, this is for Google Apps access. Haven't tried basic gmail access.

Hmm... beta 4 seems to be working for me. It synced all my accounts and I just had to enable them. Not sure if I delete the account if I can readd but don't want to try my luck at this point

i have this issue. had challenges migrating to el capitan, but once there i can add linkedin, exchange, etc. but not gmail. for my gmail account that is two step verification enabled i even get the codes to enter and then do. but the app hangs exactly as described by OP

I had EXACTLY the same issue.

I tried so many times, very frustrating.
I resolved it completely by following the instructions at:


https://miapple.me/fixing-os-x-10-11-el-capitan-gmail-bug-in-mail-app/#comment-11809


Let me know if this also resolves it for you.
Dr Trevor J. Hutley