OS X need to repair your library

tron_jones
Release Candidate Programs Tester

Having errors with imaged 10.9.2 machines. It seems to be random for which users it does this do. One user will log in and get no errors at all. Next user will be prompted with the "OS X needs to repair your library folder". On those accounts if you go to "Go" hold option and click "Library" it takes you to /var/empty/Library. If you navigate to /Users/affectedUser/Library/ you see a bunch of the folders that are actually files. Any ideas?

Already had a look at this from https://jamfnation.jamfsoftware.com/discussion.html?id=10168 and ran the

sudo update_dyld_shared_cache -root /

I'm thinking it was a bad .dmg w/ FUT but if thats the case why the randomness of it.

11 REPLIES 11

bentoms
Release Candidate Programs Tester

We use FSTAB to mount a partition called /Users HD to /Users.

When this mounting has failed, due to renaming a drive wrongly before imaging, I've seen the same error.

I guess the OS cannot write to /Users.

Does any of this correlate with your setup @tron_jones?

tron_jones
Release Candidate Programs Tester

No.

It seems it is related to a bad .dmg that is using FUT. I am going through today and looking at the all the permissions and re-making some of the packages that FUT and FET. Hopefully that solves it.

CSHGreenwich
New Contributor III

We were quickly upgrading and imaging over spring break and we had the same error. I noticed that only the test domain users that were logging on without adding a mobile account had the errors. the local account and domain users with mobile accounts had no errors. We set the account to never ask.. just to create a mobile account and have had no issues since then.

Chriskmpruitt
Contributor

Let us know what you find @tron_jones. I went through mine, but maybe I need to go through it again.

tron_jones
Release Candidate Programs Tester

@Chriskmpruitt
This was fixed by going through and fixing permissions and rouge files that were using FUT and FET. After cleaning up the .dmg's we found a few that had keychain and system files left in the composer image. Cleaning those up and re-imaging 20 machines we haven't seen the error for repairing the library or keychain come back yet.

tron_jones
Release Candidate Programs Tester

@Chriskmpruitt
Well after posting this we still experienced the issues with network users logging in and getting the revolving "Fix OSX library....". Just read the release notes of 10.9.3 and it looks like they might have addressed this.
http://support.apple.com/kb/HT6228

Improves reliability of network home directories

Hope this is the answer.

Chriskmpruitt
Contributor

Holy Shark Repellent Batman! so far so good! We will be testing this for the next few days, I will let you know how it goes. But it looks like 10.9.3 might be the answer.

jake_snyder
New Contributor III

Is anyone else still seeing this problem? I just joined a brand new imac with 10.9.4 to our AD domain with a brand new user account and we still are getting the "OS X needs to repair your library to run applications" error message. Any suggestions?

philcebutv
New Contributor III

This is weird.

I had setup 1 Yosemite iMac 10.10.5 and I got the error once wanted to know the fix before I deploy the iMac. Our users are logging in as their network accounts. It is completely random as the OP mentioned.

donmontalvo
Esteemed Contributor III

Possible fix here.

--
https://donmontalvo.com

mhinsz
New Contributor III

I ran into this issue today using Migration Assistant to move an AD user to another machine.

Once I set AD user permissions to the user folder, it worked for me.

sudo chown -R username:"DOMAINDomain Users" /Users/username