An internal Messages error occurred. (tried everything)

This occurred when I upgraded to Mojave. Given that I have not seen similar Mojave-related complaints, but have also seen complaints about this with previous OSs I am gonna assume this isn't a problem specific to Mojave, but not sure.

Nearly every time I open Messages I get the error pictured below "An internal Messages error occurred. There was a problem with Messages. You need to quit and open Messages again."

I can usually get it to open if I go through this a couple times. But once I'm in messages, my conversations (which are synced to iCloud Messages) are not shown the same as on the phone. Commonly I will receive a message on my phone along with a notification on my Mac, but when I click it on the Mac, the conversation doesn't open in Messages, and I can't find it in the list.

I have deleted every iMessage preference file indicated on other forums, deleted library/messages, signed out of messages completely, disabled and re-enabled messages in the cloud on both my iPhone and Mac, and cleared my PRam for the heck of it.

Please send a (working) iMessage from the heavens and tell me what to do!!

2017 MacBook Pro 13" w Touch Bar, Mac OS Mojave 10.14.

User uploaded file

MacBook Pro TouchBar and Touch ID, macOS Mojave (10.14)

Posted on Sep 26, 2018 9:42 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 13, 2019 1:35 PM

I had (what seems to be) the exact same issue, where after upgrading to Mojave, my iMessages would not display correctly, and would get the "An internal messages error occurred" after attempting to sync. I tried everything, including the extensive troubleshooting instruction found in this thread (https://discussions.apple.com/thread/7493929?answerId=29919807022#29919807022). Each time I restored to High Sierra (thank you time machine!)


While attempting to get iMessages to work properly on a clean install, I noticed that the data would download completely, just not display correctly. I also saw many errors in the console related to "invalid URL's", and referencing links I'd been sent in iMessages (specifically legitimate invitations to join "Band.us").


I deleted* the threads containing those links, as well as all the other unimportant or spam threads with sketchy links that I had ignored.


After testing with a virtual machine, I've upgraded to Mojave again and everything seems to be working properly. YMMV, but it seems iMessages being unable to parse certain URL's was causing it to ignore certain messages/threads. Hopefully this won't pop up again in the future, but cleaning them out fixed it for me.


* It seems that clicking the "x" when hovering over a thread only hides (or "closes") the thread, but doesn't delete it. Right clicking, selecting delete, and confirming the deletion, or swiping on an iPhone and clicking delete, are the only ways to actually get rid of them. Incidentally, anyone know how to unhide a thread if the "x" was clicked?


109 replies
Question marked as Top-ranking reply

Jan 13, 2019 1:35 PM in response to dantaylr

I had (what seems to be) the exact same issue, where after upgrading to Mojave, my iMessages would not display correctly, and would get the "An internal messages error occurred" after attempting to sync. I tried everything, including the extensive troubleshooting instruction found in this thread (https://discussions.apple.com/thread/7493929?answerId=29919807022#29919807022). Each time I restored to High Sierra (thank you time machine!)


While attempting to get iMessages to work properly on a clean install, I noticed that the data would download completely, just not display correctly. I also saw many errors in the console related to "invalid URL's", and referencing links I'd been sent in iMessages (specifically legitimate invitations to join "Band.us").


I deleted* the threads containing those links, as well as all the other unimportant or spam threads with sketchy links that I had ignored.


After testing with a virtual machine, I've upgraded to Mojave again and everything seems to be working properly. YMMV, but it seems iMessages being unable to parse certain URL's was causing it to ignore certain messages/threads. Hopefully this won't pop up again in the future, but cleaning them out fixed it for me.


* It seems that clicking the "x" when hovering over a thread only hides (or "closes") the thread, but doesn't delete it. Right clicking, selecting delete, and confirming the deletion, or swiping on an iPhone and clicking delete, are the only ways to actually get rid of them. Incidentally, anyone know how to unhide a thread if the "x" was clicked?


Aug 2, 2019 7:07 AM in response to dantaylr

Here's how to get Messages working without reboots, safe mode, etc in macOS Mojave (I have 10.14.5)


  • Close Messages app (one with error dialog..)
  • Open Finder.
  • Select your Home folder (the "House") [must be Home folder]
    • (If you don't see a house icon on the left side of Finder, select "Go --> Go to Folder", then enter "~/Library".
    • Danger.. If you go /Library that is admin territory (and affects all users)
  • At top (Finder is in focus) select View --> View Options
    • (a "tall" dialog pops up with your username at top and and a long list of check boxes)
  • Look for "Show Library Folder" and select.
    • (The Library directory appears but is dimmed (to indicate it is a system file not to be messed with)
    • If you aren't in your home directory you won't see that option.
  • Open Library/Caches
  • Select linphone_chats.db and drag to Trash
  • Restart Messages
  • Problem Gone.


You might want to turn off Show Library Folder (check box under View -->View Options).

Aug 24, 2019 4:37 AM in response to dantaylr

I was having this problem as well (10.14.6, MacBook pro mid2015).


I had deleted caches, plists, the whole nine yards. Still Messages would not start giving the internal messages error.


I signed out of iCloud on my machine and rebooted. Messages started up again, though of course it was blank. After signing back into iCloud it looks like Messages is working again, though of course I've lost all history.


If I had it to do all over again, I would have signed out of iCloud first, but experience is the thing you get just after you really needed it.


Hope this helps.

Feb 26, 2019 6:56 PM in response to Shompa

Hi All.


After my post a little over a month ago, I'm happy to say Mojave and iCloud iMessages are still (fingers crossed) working perfectly for me after having similar symptoms since its release. I believe that it is a bug in Mojave that prevents it from displaying the message database correctly if it contains material it can't handle. In my case, it was a text message containing a link it considered "invalid".


I wish I took better notes of what I did to diagnose the problem, but I encourage anyone with more experience than I to try setting up iMessage on a clean profile or install, and watch the console (filtering for the "messages" process) and see if any content is flagged as errors. I noticed a few during the initial download, after hitting the sync button, or when it gave the error message on startup (I don't quite remember). After deleting the specific messages that were referenced, and a few more for good measure, it's been working ever since.


Now, this is definitely a bug that should have been fixed before Mojave was even released, and my circumstances may be unique, but it worked for me.

Jun 1, 2019 11:41 AM in response to Shompa

I tried everything under the sun, except deleting most of my messages. Recently I got fed up enough to try this tactic. At some point, things started working and syncing correctly again. I had to delete probably 90% of my message threads - I did this from my phone. It wasn't a straightforward process, and lots of errors occurred while doing it. It seemed like some message threads just failed to delete. Some synced right away to my computer, some did not. I was even fed up enough to disable messages in the cloud on my computer just to avoid that internal error message. I then tried turning it back on, had to click "Sync Now" in the Messages preferences on my computer. This gave me a random failure error when I tried at first, and then was greyed out for a while. I rebooted, waited a while, and finally I don't get the "internal messages error occurred" anymore. So, I'm guessing there are some message threads stored in messages in the cloud that contribute to causing this error. Good luck finding them.

Sep 22, 2019 5:03 AM in response to Authormama

Interestingly enough, I have found a temporary fix. It’s not the greatest and it’s not the best but it is a fix. First I always keep my messages open and have it on my dock. If for some reason my computer restarts or I quit messages, I go to <TOOLS> and then <GO TO> LIBRARIES and I look for my container file and messages file. I pull them to my desktop and then empty them into trash. I start up my computer again and “voila” messages works again. I believe it’s a toss up of whether you want to be able to reply to messages on your computer or if you want to keep messages from way back when and never lose them. If something it really important I store it in NOTES.


Hopefully this method will be helpful to some folks. Although not ideal and certainly not what I would ever expect to have to do with an Apple product, apparently the ones that experience this have a literal bad Apple. 😉 Ridiculous, but it’s life.

Jun 9, 2019 2:54 AM in response to dantaylr

Okay guys. Few days ago I did a clean install of MacOS 10.15 Catalina Developer Beta and I can 100% say that everything is working as it's supposed to work now.


All my messages from iCloud are there and the sync between devices work fine. I no longer have the "An internal Messages error occurred." and the Messages app no longer quit unexpectedly either. All good like on High Sierra previously.


Now we just need to wait for the public release of 10.15 and we should be good!


Cheers.

Sep 22, 2019 4:10 PM in response to dantaylr

Try the instructions on this website:


⌘ Permalink


I tried EVERYTHING short of blowing the whole system away and this fixed it.


I noticed that while I received the same error you were getting, another error was flashing up quickly and then disappearing. I recorded the screen and slowed the video to see this error:


Basically, the Messages Database has an issue when it's trying to update.



A search on the database crashing led me to the link above, which worked in my case.


I hope this helps!

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.

An internal Messages error occurred. (tried everything)

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