robertk1

Q: Fix for El Capitan stuck at login

Last month I updated to 10.11.1 and my system would no longer log in.  I would enter my password correctly and then the cursor would change to the spinning pinwheel and just sit there forever.  The only way out was a power off reboot.  I later found that when it was in this state I could SSH into it from another machine, and the system log revealed that /usr/libexec/lsd (the Launch Services Daemon) was crashing repeatedly.  I searched these forums and others and found lots of ideas, none of which helped. 

 

No problem, though, I've got hourly time machine backups, right?  Well, no.  Apparently El Capitan had not been doing the hourly backups so my most recent backup was from sometime in October, which was a month old at the time.  Not good.

 

Fortunately, I had an older boot drive that I put in an external enclosure and was able to boot from that to experiment.  The drive I normally boot from was fine -- permission checks and disk repair and all that all came back good, and I could read and write files to it just fine.

 

After lots of experimentation and frustration I was just about to give up and add another drive to do a clean install and start moving everything over -- a process that I *really* hate doing.  But one last web search and a bit of luck gave my one last shot at fixing it.

 

To do this, you'll either need to be in a recovery console, or ssh into the machine, or boot from an external drive, or otherwise somehow get to a command prompt.  Once you are there, do this:

 

find /private/var/folders/ | grep com.apple.LaunchServices | grep csstore

 

Note that if you boot from an external drive, you need to run that command against the boot drive you are trying to fix.  Just add the /Volumes/Whatever_Your_Boot_Drive_is to the path, like so:

 

find /Volumes/YourBootDriveHere/private/var/folders/ | grep com.apple.LaunchServices | grep csstore

 

That will find the cache databases that Launch Services is using.  They will have long and random-looking names that end in csstor.  Make a note of every file shown, then delete them, by a command like this (obviously using whatever paths the above command found instead of this example):

 

rm  /private/var/folders/cd/someLongRandomNameHere/someFolderNumberHere/com.apple.L aunchService-whatever.csstore

 

If you're more cautious, you can rename them instead of deleting them, so you can put them back if necessary.  That would look like this:

 

mv  /full/path/like/shown/above/to/whatever.cssstore /full/path/like/shown/above/to/whatever.csstore.backup

 

After removing or renaming those files, restart your Mac.  You should now be able to log in.  Or at least, that's what finally worked for me.  The login did take longer than normal -- a few minutes -- to rebuild those files, but the desktop finally appeared, and now I'm back to running on my normal boot drive. 

 

Hopefully this helps someone.

Mac Pro, OS X El Capitan (10.11.2)

Posted on Dec 13, 2015 3:47 AM

Close

Q: Fix for El Capitan stuck at login

  • All replies
  • Helpful answers

first Previous Page 5 of 6 last Next
  • by Paul Sondervan.Mac,

    Paul Sondervan.Mac Paul Sondervan.Mac Jul 31, 2016 8:22 AM in response to robertk1
    Level 1 (9 points)
    Jul 31, 2016 8:22 AM in response to robertk1

    Thank you robertk1!

    After updating my MacBook Pro t 10.11.6, the screen went black after login.

    I rebooted from an external drive and removed the csstore files, the use of sudo was required.

    Afer that I was able to login on my MacBook Pro.

    You really saved my day.

  • by zoominmike,

    zoominmike zoominmike Jul 31, 2016 2:32 PM in response to Paul Sondervan.Mac
    Level 1 (4 points)
    Jul 31, 2016 2:32 PM in response to Paul Sondervan.Mac

    ok so if this happens again we know what to do, but as for my limited knowledge of how to do this and needing my files for work, THANKS APPLE i had to pay someone £100 for 4 hours work to fix this for me.

  • by JaguarLes,

    JaguarLes JaguarLes Jul 31, 2016 10:05 PM in response to robertk1
    Level 1 (4 points)
    Jul 31, 2016 10:05 PM in response to robertk1

    Great work.   Thank you.  This saved me a lot of time.  Wish I had found it 24 hours earlier.

  • by jaapfrommaarssen,

    jaapfrommaarssen jaapfrommaarssen Aug 1, 2016 12:58 AM in response to robertk1
    Level 1 (4 points)
    Mac OS X
    Aug 1, 2016 12:58 AM in response to robertk1

    The following procedure solved the same problem and is a combination of stuff I found in all the replies:

    Startup Easyfind (Free in app store) enable hidden files and folders, search for .csstore files, show them in finder via Easyfind and delete them all. Restart.

  • by ketanfromlilburn,

    ketanfromlilburn ketanfromlilburn Aug 1, 2016 10:53 AM in response to robertk1
    Level 1 (4 points)
    Aug 1, 2016 10:53 AM in response to robertk1

    Thank you for your fix. Apple support was telling me to go to the store and what not!!!!

     

    First of all I activated my root account using "resetpassword", which I probably didn't have to.

    Initially I thought I looking for com.apple.... under "folder" folder, but then reading other post in this thread I copy/paste the line starting from find.

     

    Here is my work for the benefit of others;

    bash-3.2$ sudo find /private/var/folders/ | grep com.apple.LaunchServices | grep csstore

     

    WARNING: Improper use of the sudo command could lead to data loss

    or the deletion of important system files. Please double-check your

    typing when using sudo. Type "man sudo" for more information.

     

    To proceed, enter your password, or type Ctrl-C to abort.

     

    Password:

    /private/var/folders//45/c540fyhn083gxn8yp9zdvmdr0000gn/0/com.apple.LaunchServic es-103501.csstore

    /private/var/folders//45/c540fyhn083gxn8yp9zdvmdr0000gn/0/com.apple.LaunchServic es-107501.csstore

    /private/var/folders//45/c540fyhn083gxn8yp9zdvmdr0000gn/0/com.apple.LaunchServic es-134501.csstore

    /private/var/folders//45/c540fyhn083gxn8yp9zdvmdr0000gn/C/com.apple.LaunchServic es-044501.csstore

    /private/var/folders//zz/zyxvpxvq6csfxvn_n0000000000000/0/com.apple.LaunchServic es-1340.csstore

    bash-3.2$

    bash-3.2$

    bash-3.2$

    bash-3.2$ sudo rm /private/var/folders//45/c540fyhn083gxn8yp9zdvmdr0000gn/0/com.apple.LaunchServi ces-103501.csstore

    bash-3.2$ sudo rm /private/var/folders//45/c540fyhn083gxn8yp9zdvmdr0000gn/0/com.apple.LaunchServi ces-107501.csstore

    bash-3.2$

    bash-3.2$

    bash-3.2$

    bash-3.2$ sudo rm /private/var/folders//45/c540fyhn083gxn8yp9zdvmdr0000gn/0/com.apple.LaunchServi ces-134501.csstore

    bash-3.2$ sudo rm /private/var/folders//45/c540fyhn083gxn8yp9zdvmdr0000gn/0/com.apple.LaunchServi ces-044501.csstore

    rm: /private/var/folders//45/c540fyhn083gxn8yp9zdvmdr0000gn/0/com.apple.LaunchServi ces-044501.csstore: No such file or directory

    bash-3.2$ sudo rm /private/var/folders//45/c540fyhn083gxn8yp9zdvmdr0000gn/C/com.apple.LaunchServi ces-044501.csstore

    bash-3.2$

    bash-3.2$

    bash-3.2$ sudo rm /private/var/folders//zz/zyxvpxvq6csfxvn_n0000000000000/0/com.apple.LaunchServi ces-1340.csstore

    bash-3.2$

    bash-3.2$ sudo find /private/var/folders/ | grep com.apple.LaunchServices | grep csstore

    bash-3.2$

  • by Franco.Dalessandro,

    Franco.Dalessandro Franco.Dalessandro Aug 2, 2016 9:03 AM in response to robertk1
    Level 1 (4 points)
    Aug 2, 2016 9:03 AM in response to robertk1

    I experience the same problem on my iMac Mid-2011. OS X El Capitan 10.11.6 most recent update from apple. After the update the login for my primary user would show a spinning wheel and would never proceed beyond that no matter how long it was left to work our what it was trying to do. After finding your post I did try it as described and didn't work for me until this morning after looking up the procedure for kernel extension incompatibility (which is a boot issue post not really what was happening here). Turns out I wasn't following your instructions properly It required the following;

     

    find "/Volumes/Macintosh HD/private/var/folders/" etc. After that I found 4 occurrences, used mv to make them .backup for each of the four files (not the same location so done individually) and booted to safe mode without issue.

     

    Prior to that i had simply changed to the root with a cd / and used the first find command. The " did the trick.

     

    Thank you for your post. I thought I would just add my experience with it in case it didn't work for anyone else on the first go.

     

    Frank.

  • by bellusc,

    bellusc bellusc Aug 3, 2016 8:23 AM in response to robertk1
    Level 1 (4 points)
    Aug 3, 2016 8:23 AM in response to robertk1

    Awesome, thanks!

  • by coderager,

    coderager coderager Aug 6, 2016 8:08 AM in response to robertk1
    Level 1 (4 points)
    Aug 6, 2016 8:08 AM in response to robertk1

    Just wanted to chime and say thanks! I have spent nearly 5 hours before finding this solution. Great debugging on your part!

  • by coderager,

    coderager coderager Aug 6, 2016 8:26 AM in response to coderager
    Level 1 (4 points)
    Aug 6, 2016 8:26 AM in response to coderager

    One small issue I noticed, when I go to the App Store to see the history of my updates, I don't see the OS X Updates anymore. Not a big deal though because I can run this command to see them in Terminal: sudo cat /Library/Receipts/InstallHistory.plist

     

    Thanks again

  • by piotr58,

    piotr58 piotr58 Aug 8, 2016 10:42 AM in response to robertk1
    Level 1 (4 points)
    Aug 8, 2016 10:42 AM in response to robertk1

    Hi,

     

    I had the same problem with the upgrade 10.11.5 to 10.11.6. Thanks for this solution. Bad note for Apple!

     

    Just a suggestion with the find command. This one work on one line to display files:

    % sudo find /private/var/folders/ -name "com.apple.LaunchServices*.csstore"

     

    And this one to erase files:

    % sudo find /private/var/folders/ -name "com.apple.LaunchServices*.csstore" -exec /bin/rm -f {} \;

     

    Bye

  • by Maff K,

    Maff K Maff K Aug 11, 2016 8:15 AM in response to robertk1
    Level 1 (9 points)
    Mac OS X
    Aug 11, 2016 8:15 AM in response to robertk1

    I tried doing this in recovery mode, but kept getting "no such file or directory". Am I missing something? In Terminal I enter the following:

     

    find /Volumes/Macintosh_HD/private/var/folders/ | grep com.apple.LaunchServices | grep csstore

  • by ketanfromlilburn,

    ketanfromlilburn ketanfromlilburn Aug 11, 2016 8:39 AM in response to Maff K
    Level 1 (4 points)
    Aug 11, 2016 8:39 AM in response to Maff K

    It seems you don't have sudo in front. Do copy/paste the lines, it may help.

  • by coderager,

    coderager coderager Aug 11, 2016 9:37 AM in response to Maff K
    Level 1 (4 points)
    Aug 11, 2016 9:37 AM in response to Maff K

    Yes, I had the same issue and it took a while to resolve. I am using SoftRaid and my volume was not discovered in recovery mode. Fortunately I had a USB boot of MacOs, I booted into the install and then terminal. I was able to find my volume and run these commands after that.

  • by Maff K,

    Maff K Maff K Aug 11, 2016 1:48 PM in response to ketanfromlilburn
    Level 1 (9 points)
    Mac OS X
    Aug 11, 2016 1:48 PM in response to ketanfromlilburn

    Thanks, I logged in as Guest user and added "sudo" and manage to removed the LaunchServices castore files.

     

    Unfortunately, it hasn't solved my issue with the spinning beach ball, which I now think is app related, possibly Acrobat.

  • by C. Alan,

    C. Alan C. Alan Aug 13, 2016 7:47 PM in response to robertk1
    Level 1 (4 points)
    Aug 13, 2016 7:47 PM in response to robertk1

    I am running 10.11.6.  I had a single user on my Mac Pro that was hanging at login as described.  Just a spinning gear after inputting the password.  I cleared the LSD cashe as described in this excellent write up, and it cleared up the issue.

    Thanks for the help!

first Previous Page 5 of 6 last Next