Apple Event: May 7th at 7 am PT

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

"An internal Messages error occurred" Problem

My MacBook Pro unexpectedly shut down while I was using it, taking a long time to start back up. Since then, every time I try to open the Messages app an error message appears saying: "An internal Messages error occurred. There was a problem with Messages. You need to quit and open Messages again". Except when I quit and try again, the message still appears. I've tried resetting it, putting it in safe mode, so far that I've seen it only works in the guest account.


Does anyone have an idea how to fix it?

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

Posted on Mar 14, 2016 3:07 PM

Reply
Question marked as Best reply

Posted on Mar 14, 2016 5:02 PM

Might be a corrupt .plist.


Do a backup, preferably 2 backups on 2 separate drives.


Quit the application.


Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J. When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Select Library. Then go to Preferences/com.apple.iChat.plist. Move the .plist to your desktop.


Restart the computer, open the application and test. If it works okay, delete the plist from the desktop.

If the application is the same, return the .plist to where you got it from, overwriting the newer one.


If that doesn’t work, repeat the above but delete the com.apple.imagent.plist


Thanks to leonie and Ralph Johns (UK)for some information contained in this.

3 replies
Question marked as Best reply

Mar 14, 2016 5:02 PM in response to asem95

Might be a corrupt .plist.


Do a backup, preferably 2 backups on 2 separate drives.


Quit the application.


Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J. When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Select Library. Then go to Preferences/com.apple.iChat.plist. Move the .plist to your desktop.


Restart the computer, open the application and test. If it works okay, delete the plist from the desktop.

If the application is the same, return the .plist to where you got it from, overwriting the newer one.


If that doesn’t work, repeat the above but delete the com.apple.imagent.plist


Thanks to leonie and Ralph Johns (UK)for some information contained in this.

Apr 3, 2016 6:50 PM in response to asem95

Please back up all data.

Quit Messages if it’s running. Force quit if necessary. After each of the following steps, restart the computer and test. If the problem isn't resolved, quit again and go on to the next step.

Step 1

If you sync Contacts with a service such as iCloud or Google, disable the synchronization in the iCloud or Internet Accounts pane of System Preferences. When prompted to confirm, choose to delete the contacts from the Mac. They'll still be on the servers and on your other devices. Leave the preference pane open.

If Messages works now, re-enable Contacts synchronization, wait for the network contacts to reappear, and see what happens.

Step 2

Launch the Keychain Access 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 and start typing the name.

From the menu bar, select

Keychain Access Keychain First Aid

from the menu bar and repair the keychain.

Make sure you know the ID and password you use with iMessage.

From the Category list in the lower left corner of the window, select

All Items

Select the entire line below on this page and copy it to the Clipboard (command-C):

com.apple.idms

Paste (command-V) into the search box in the upper right corner of the Keychain Access window. Delete any items that appear in the search results.

Repeat with each of these lines:

iMessage ids:

Select

Keychain Access Preferences... Certificates

There are three menus in the window. Change the selection in the top two to Best attempt, and in the bottom one to CRL.

Quit Keychain Access. Log out and log back in.

Step 3

Hold down the option key and select

Go Library

from the Finder menu bar. Move the following items from the Library folder to the Trash (some may not exist):

Containers/com.apple.corerecents.recentsd

Caches/com.apple.Messages

Caches/com.apple.imfoundation.IMRemoteURLConnectionAgent

Containers/com.apple.iChat/Data/Library/Caches

Containers/com.apple.soagent

IdentityServices

Leave the Library folder open.

Step 4

Go back to the Finder and move the following item from the open Library folder to the Desktop:

Messages

Note: you are not moving the Messages application. You’re moving a folder named “Messages.”

If Messages now works, delete the Messages folder on the Desktop. Otherwise, quit Messages again. Put back the folder you moved, overwriting the newer one that may have been created in its place.

Step 5

In the Preferences subfolder, there may be several files having names that begin with any of the following strings:

com.apple.iChat

com.apple.ids

com.apple.imdsmsrecordstore

com.apple.imessage

com.apple.imservice

Move them all to the Desktop. There may also be a file with the name "com.apple.imagent.plist". Move that to the Trash.

Also in the Preferences folder, there's a subfolder named "ByHost". Open it and do the same thing.

Log out and log back in. Test again. This time Messages should perform normally, but your settings will be lost. You may be able to put back some of the files you moved to the Desktop in this step. Relaunch and test after each one. Eventually you should find one or more that causes Messages to malfunction. Delete those files and recreate whatever settings they contained.

If the issue is still not resolved, quit Messages again and put all the items you moved to the Desktop back where they were. You don’t need to replace the items you moved to the Trash. Stop here and post your results.

If you later decide that you don’t like the results of Steps 3, 4, and 5, you can undo them completely by quitting Messages and restoring the items you deleted in those steps from your backup.

"An internal Messages error occurred" Problem

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