An unknown error has occurred app store

An unknown error has occurred


This message An unknown error has occurred when i try login to APPSTORE in my MacBookAir.'

MacBook Air, OS X Mountain Lion (10.8.1), Problem to log in to app store

Posted on Aug 31, 2012 3:45 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 4, 2012 10:25 AM

wagaya wrote:


Really bizarre. Hearing some people suggest that it's a problem on Apple's end is discouraging, as it suggests anything else I try may automatically fail. Yet if I can use the App Store from another user account, that suggests there has to be something lurking in my main account's Library (probably) that's causing the problem...


After running around in circles trying to get this resolved for me I finally found a (fairly easy) solution - the key point here is that the AppStore works just fine form another user account on the same computer (using the same AppleID) so it has to be something in ~/Library rather than /Library (thus ruling out the NetworkInterfaces.plist fix - which I tried and which didn't work for me).


Here is a step-by-step of what worked for me:


  1. Create a new user account - let's name it "Test" - I did not make this an administrator account
  2. Log into that new user account (skipping the AppleID/iCloud screen)
  3. Select "Software Update…" from the Apple menu - you will be asked to enter an administrator name and password in or to check for system updates - just provide your normal (admin-enabled) user name and password
  4. If you have any updates available, click "Update All" and log into the AppStore with your normal AppleID/password (this should work since you are in a new user account)
    (If you don't have any updates available, I assume that you can also log in using the menu item in the Store menu of the AppStore application though I have not tried that)
  5. As soon as the download starts, you can quite the AppStore application
  6. Log out of your test account and back into your normal account
  7. Open /Applications/Utilies/Terminal
  8. Type the following command:
    sudo cp /Users/test/Library/Cookies/com.apple.appstore.plist Library/Cookies/
  9. Open the AppStore again and you should be able to log back in


What does this do? It seems that the com.apple.appstore.plist file in your normal user account has become corrupted - we use a new account and create a new one (which is interchangebale since we use the same AppleID) and move that one back to the main account with the corrupt file.


AndreasUser uploaded file

198 replies

May 9, 2017 7:12 AM in response to mycarehealth

HELPFUL, Idk why I can't rate it anymore but this worked for me.


I got a handed down Macbook Pro from my older brother, and it kept bugging me why I can't update OS X to MacOS. It kept on asking me to sign in, but it just kept on giving me errors like "Unknown Error (4)" or something. Turns out my brother's account was still signed in to appstore and I kept on logging in mine. so there, signed him out and logged on to mine. Done! THANK YOU SO MUCH!!!

Sep 15, 2012 5:26 PM in response to Dave Simple

My network interfaces are ok. I tried to track down the App Store login process and discovered, that the following error message is written into my /var/log/system.log


Sep 16 01:52:13 MacBookPro.local App Store[40652]: [IMKInputSession deactivate] exception caught.

IMKInputSession:<IMKInputSession: 0x7f83392c0870> --

NSInvalidSendPortException : [NSMachPort sendBeforeDate:] destination port invalid


The NSMachPort class is used for distributed object connections on the local machine. Seems the login process has problem with interprocess communication.

Sep 17, 2014 7:32 PM in response to Andreas Amann

I have tried many of above solutions, but it's not work for me, i try to close all other app using internet and it's works. Keep your eye on Skype or similar app using port 80 & 443.

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 unknown error has occurred app store

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