Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

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

com.apple.AddressBook.InternetAccountsBridge[2010]: dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:4 Err:-1 Errno:1 Operation not permitted

Hi,


I have MacMini Server running on 10.10.5 which hosts all my contacts using the Server App (Carddav). This setup is running for a while now without any issue.


But after the update of my Clients (iMac, Macbook Pro) to El Capitan 10.11.2 I see a lot of errors on the client in /var/log/system. Also if I try to edit one contact the beachball appears and it takes a while until I can edit something.


What can I do to solve it? This seems to be a El Capitan bug.


Dec 14 00:08:14 MacBook-Pro com.apple.AddressBook.InternetAccountsBridge[2010]: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1

Dec 14 00:08:14 MacBook-Pro sandboxd[129] ([2010]): com.apple.Addres(2010) deny network-outbound /private/var/run/mDNSResponder

Dec 14 00:08:15 MacBook-Pro com.apple.AddressBook.InternetAccountsBridge[2010]: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2

Dec 14 00:08:15 MacBook-Pro sandboxd[129] ([2010]): com.apple.Addres(2010) deny network-outbound /private/var/run/mDNSResponder

Dec 14 00:08:16 MacBook-Pro kernel[0]: Sandbox: com.apple.Addres(2010) deny(1) network-outbound /private/var/run/mDNSResponder

Dec 14 00:08:16 MacBook-Pro com.apple.AddressBook.InternetAccountsBridge[2010]: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3

Dec 14 00:08:17 MacBook-Pro kernel[0]: Sandbox: com.apple.Addres(2010) deny(1) network-outbound /private/var/run/mDNSResponder

Dec 14 00:08:17 MacBook-Pro com.apple.AddressBook.InternetAccountsBridge[2010]: dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:4 Err:-1 Errno:1 Operation not permitted

MacBook Pro with Retina display, OS X El Capitan (10.11.2), null

Posted on Dec 13, 2015 3:26 PM

Reply
47 replies

Jan 27, 2016 9:15 AM in response to mfehr

This seems to be a sandboxing issue, likely updated rules but the cache of the container not being removed/refreshed properly.


I destroyed my container for com.apple.AddressBook.InternetAccountsBridge and that seems to have resolved this issue.

Note the word DESTROY, there might be random data in there that you like. I did not notice any missing data afterwards, but be warned.

Possibly better to move the dir to a backup location or whatever. YMMV.


Open a Terminal, then go to the container directory:


$ cd ~/Library/Containers


and there remove the container:

$ rm -rf com.apple.AddressBook.InternetAccountsBridge/


Open Activity Monitor (or use kill -9 😉), and kill com.apple.AddressBook.InternetAccountsBridge, close/reopen Calendar.app and it should be soon there again and no more flooding log messages...


Feb 3, 2016 2:20 AM in response to Zorkslamararc

We are using Apple Server for contacts, What is see when i add the CardDAV account manually, the given port says 8443, if i check the port on the Contacts server its listens on port 8843. If i change it to 8843 in de Contacts App on the mac client it will not Save ! if i go to tab again the poort 8443 is back.

The strange this is, that the contacts are loaded form the CardDAV server, so there is a connection. But editing and adding Contacts works very slow, (Beach Ball) and some situations (very often actually) the changes are lost.


if i try to add the account with the Advanced option (where you give the server port), i get a authentication error, if i switch back to manual, i get a authentication error (with the same way i added the account before) if i restart the Contacts App i will be able to add it again with the manual option :S.

The contacts client looks very bugged.,,

Feb 3, 2016 10:55 AM in response to p4th

This worked for me, closed address book, removed the .com folder in finder (not terminal), reopened the addressbook and manually entered the carddav (from OSX server) info. Had to give it some time to show up.






p4th

This seems to be a sandboxing issue, likely updated rules but the cache of the container not being removed/refreshed properly.


I destroyed my container for com.apple.AddressBook.InternetAccountsBridge and that seems to have resolved this issue.

Note the word DESTROY, there might be random data in there that you like. I did not notice any missing data afterwards, but be warned.

Possibly better to move the dir to a backup location or whatever. YMMV.


Open a Terminal, then go to the container directory:


$ cd ~/Library/Containers


and there remove the container:

$ rm -rf com.apple.AddressBook.InternetAccountsBridge/


Open Activity Monitor (or use kill -9 😉), and kill com.apple.AddressBook.InternetAccountsBridge, close/reopen Calendar.app and it should be soon there again and no more flooding log messages...

Feb 14, 2016 9:51 AM in response to l.aluffi

A Macrumors user suggested a workaround that... works 🙂

  1. Go to System Preferences>Internet Accounts
  2. Uncheck "Contacts" for the Google account
  3. Click the "+" to add a new account
  4. Select "CardDAV"
  5. Set Account Type to "Manual"
  6. User Name is Gmail address
  7. Password is password, or a new app-specific password if 2-factor authorization is "ON" for Google
  8. Server Address is "google.com"


I will try to reactivate the old way on the next OS X update.

Mar 26, 2016 5:24 AM in response to Madman1234

I've found a solution updating default app sandbox profile. But it require to disable SIP:

In

/System/Library/Sandbox/Profiles/application.sb
:

(unless (or (entitlement "com.apple.security.network.client") (entitlement "com.apple.security.network.server") (entitlement "com.apple.security.print") (equal? (param "application_bundle_id") "com.apple.AddressBook.InternetAccountsBridge"))
(deny network-outbound (literal "/private/var/run/mDNSResponder")))

com.apple.AddressBook.InternetAccountsBridge[2010]: dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:4 Err:-1 Errno:1 Operation not permitted

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