Portable Home Directory no longer works on Lion bound to Active DirectoryAD

Hi, All,
I look after about 30 MacBook Air/Pro connected to a predominantly Windows corporate network.
A few months back, I installed a MacOS Server running OpenDirectory and Software Update Services for managing the MacBooks - they are configured in the standard "magic triangle" configuration, bound both to the Active Directory (running on a handfull of Windows 2003-R2 servers) and OpenDirectory; they are configured to use the Mac Server for Software Updates, and with Portable Home Directories replicated on a network share point (through AFP) to keep a backup of the user's data.
When all the MacBooks were running Snow Leopard, everything was running fine... but the last couple of laptops purchased came with Lion and they cannot synchronise their PHD's anymore :-(
I have spent a lot of time trying to pin-point the problem, including replicating a whole test-network with its own AD/OD and client Snow-Leopard/Lion laptops to try various configurations... my conclusions so far are that:
1- using Snow Leopard clients, it just works
2- using a Lion client, when the network user account is configured in the default Users O.U. on Active Directory, it just works
3- using a Lion client, when the network user account is configured in another O.U. than Users (e.g. Company-Name or External-Contractors), then the PHD syncinc doesn't work at all
4- the failure symptoms are a popup window when trying to do a manual sync saying that "your network home at (null) does not allow writing" - if automatic syncing is configured through MCX, it just fails silently
5- when PHD syncing fails, I can log on using the network account, manually mount the share point used for the network home in the Finder and read and write to it without a problem; so it' not a permission problem, but the fact that the network home directory is (null)
6- I have traced the root cause to the FileSyncAgent process which raises an exception at startup - here's what I see as the salient lines from the logfile (i've edited out the username):
0:: [12/02/07 12:45:00.512] ******************************************************************************
0:: [12/02/07 12:45:00.512] FileSyncAgent-502.2 (r?, BUILT:?, PID:385, OS:11D50b, ARCH:x86_64-64) starting
0:: [12/02/07 12:45:00.512] LA: FileSyncAgent -launchedByLaunchd -iDiskPlist
0:: [12/02/07 12:45:00.512] ******************************************************************************
0:: [12/02/07 12:45:00.512] Engineering log verbosity level = 1
1:: [12/02/07 12:45:00.512] Registered isRunning port with name 'com.apple.FileSyncAgent.iDisk.isRunning'
1:: [12/02/07 12:45:00.846] Temporary disk storage at "/Users/[USERNAME]/Library/Caches/Cleanup At Startup/FileSyncAgent-1727909307".
1:: [12/02/07 12:45:00.846] UserAgentString = "DotMacKit-like, File-Sync-Direct/502.2.? (11D50b x86_64-64)"
1:: [12/02/07 12:45:03.249] +[SSyncSet_PHD createPHDSyncSetForLocalPath:remoteHomeSpec:mountSuffixPath:name:]: Creating Sync Set with name "HomeSync_Mirror".
1:: [12/02/07 12:45:03.249] -[SSyncSet_PHD _setupNewPHDSyncSetWithLocalPath:homeSpec:mountSuffixPath:]: We've been given local home path '/Users/[USERNAME]'.
1:: [12/02/07 12:45:03.249] -[SSyncSet_PHD _setupNewPHDSyncSetWithLocalPath:homeSpec:mountSuffixPath:]: local home at "/Users/[USERNAME]"
<PHD> 1:: [12/02/07 12:45:06.458] Added new sync set "HomeSync_Mirror".
<PHD> 1:: [12/02/07 12:45:06.465] _incomingIPC: SFCreatePHDSyncSetMsgId (17) took 3.217627 seconds.
<PHD> 1:: [12/02/07 12:45:06.526] Scheduling next sync of "HomeSync_Mirror" at 2012-02-07 12:45:16 +0000
<PHD> 1:: [12/02/07 12:45:18.122] ==========================================================
<PHD> 0:: [12/02/07 12:45:18.123] Starting automatic sync of "HomeSync_Mirror".
<PHD> 1:: [12/02/07 12:45:18.126] Peer "local" reports changes since last sync.
<PHD> 0:: [12/02/07 12:45:18.128] EXCEPTION: NilPtr <-[SPeer_FS_PHD mountPeerVolume] (Peer-FS-PHD.m:142): "'((homePath))' is nil">
<PHD> 0:: [12/02/07 12:45:18.128] BACKTRACE: {
<PHD> 0:: [12/02/07 12:45:18.128] ? | 0x105003493  
<PHD> 0:: [12/02/07 12:45:18.128] ? | 0x104f70866  
<PHD> 0:: [12/02/07 12:45:18.128] ? | 0x104f6fabd  
<PHD> 0:: [12/02/07 12:45:18.128] ? | 0x104f6ecb4  
<PHD> 0:: [12/02/07 12:45:18.128] ? | 0x7fff924bb74e
<PHD> 0:: [12/02/07 12:45:18.128] ? | 0x7fff924bb6c6
<PHD> 0:: [12/02/07 12:45:18.128] ? | 0x7fff901998bf
<PHD> 0:: [12/02/07 12:45:18.128] ? | 0x7fff9019cb75
<PHD> 0:: [12/02/07 12:45:18.128] }
7- if I use the same user account from a Snow-Leopard client, the mountPeerVolume finds the remote home_dir, mounts it and happilly trawls through the two directories to figure out what needs to be copied; I get something along the lines of:
0:: [12/02/08 18:44:15.344] Starting manual sync of "HomeSync_Mirror".
1:: [12/02/08 18:44:15.363] -[SPeer_FS_PHD mountPeerVolume]: We've been given remote home path "/Volumes/[USERNAME]".
1:: [12/02/08 18:44:15.363] -[SPeer_FS_PHD mountPeerVolume]: Remote home path exists.
1:: [12/02/08 18:44:15.363] -[SPeer_FS_PHD mountPeerVolume]: Final path to PHD remote home root = "/Volumes[USERNAME]"
8- if I use a Lion client and a user account configured in the Users O.U. on Active Directory, it works similarly well
9- in the failing use-case, if I run a "dscl xxx -read /Users/xxx" to verify that the DirectoryServices deamon returns some information, all looks good: I get all my A.D. user details, including email config and network home_directory, the MCX payload, etc
10- the only difference that I can see when running dscl between the "working use-case" and the "failing use-case" is that the Attribute for the network home directory is called HomeDirectory (working) or OriginalHomeDirectory (failing) - but the actual value is present and correct in both cases
11- I have enabled SMB as well as AFP file sharing to ensure that it's not a protocol problem rather than the share point itself that causes problem - no difference
12- I have upgraded the MacOS Server to 10.7.3 (from 10.7.2) - no difference
13- I have upgraded the Lion client from 10.7.2 to 10.7.3 - no difference
14- I have tried to manually configure the Directory Search path on the Lion client to map HomeDirectory to OriginalHomeDirectory - either the mapping didn't work or it's not the real cause of the problem, as again: no difference.
15- I have contacted AppleCare, raised a case with all the details above, been escalated from level 1 to 2 and 3 - and basically have been told that customers have reported very similar problems & that no more detail is available to me as it is a Directory Services related problem - if I want to take it further with Apple, I need Enterprise OS Support (and hence $1000s per year - and no real guarantee of result)
[thanks to anyone who's read until now]...
So my questions are (as I can't believe that I'm the only one using "proper O.U.'s" for managing users in Active Directory):
- has anyone experienced this before?
- does someone know of a workaround (other than "stick to SnowLeo" or "redesign your whole A.D."!)?
- can someone help me figure out where the FileSyncAgent process tries to get its remote home directory from - as this might point to a solution?
Many thanks

I was able to fix the issue here. Steps Taken:  From the comand line I ran
dscl /Search read /Users/jdoe HomeDirectory
It returned # No such key: HomeDirectory
This was the big clue.... it should have returned
HomeDirectory: <home_dir><url>afp://files.hihllc.lan/Users/jdoe</url><path>/</path></home_dir>
I unbound the Mac from AD and ran the following command in terminal.
dscacheutil -flushcache
I then went into OS X sharing preferences and renamed the computer slightly, so it would create a new computer record in AD. I rebound the machine to AD making sure in Directory Utility Advanced, under User Experience that Force local home directory on start up disk was unchecked and Network protocol to be used was AFP.
I then ran
dscl /Search read /Users/jdoe HomeDirectory
and it returned
HomeDirectory: <home_dir><url>afp://files.hihllc.lan/Users/jdoe</url><path>/</path></home_dir>
I had the user reboot... which was necessary. When he logged in HomeSync fired up. He had quite a few conflicts, so I told him to select use files on this computer for all conflicts.
I checked the FileSyncAgent.logs and it was good.
Let me know if this fixes your issue.
Thanks,
Ray

Similar Messages

  • ITunes Home Sharing No Longer Working Under Lion

    Home Sharing is no longer working between Lion and my Apple TV or iPhone. I am able to watch Netflix through my Apple TV (2nd Gen) so I do have connectivity. I have restarted both devices, and updated iTunes to 10.4. Under "Advanced" in iTunes, Home Sharing is turned on. In Preferences in iTunes under Sharing, it says Status: On, no users connected, even though my Apple TV is connected to the network.
    Is this problem isolated, or are others experiencing the same issue?

    I'm up and running. Spoke with Apple and they had me go to : preferences, network and create a new location. That seems to have reset something. I had to reset all my devices back to my main network that had stopped working. The guest network will not let Home Sharing work, only the main network.
    Others have been able to use Home Sharing without clicking "Done" after typing in their password. After you click "Done" the Shared disappears in iTunes.
    Apple help people were GREAT!

  • HT3775 AVI Home Video no Longer Works with Lion

    Hi Everybody,
    I have quite a few hours of AVI files (family footage dating back to early 70's transfered to avi from Super-8). This worked before I updated to Lion. Now I get the message "The document xxxxxxxx.avi” could not be opened. A required codec isn't available."
    I don't understand why this now doesn't work. When I click on "Tell Me More" option avi is one of the files listed for Quicktime so...
    Can anyone help with this?
    Cheers

    As Ogelthorpe above mentioned, the Free VLC Player works fine for that:
          http://vlc-media-player.en.softonic.com/mac

  • 'Applications' in Home directory no longer works

    Strangest thing happened - when I open finder, I have two options for 'Applications'. The bar on the left has no problem taking me to the normal folder, but the icon in the normal window (ie, part of the /jtadler/ directory) does not go where is is supposed to go. Any thoughts as to why this might be?

    Double click on your Macintosh HD icon and put the resulting window into Column view. You should now have two columns: the first is the Sidebar, the second shows the folders Applications, Library, System and Users. Click Users and you get an additional column with Shared and your home folder. Click the home folder and you get a fourth column with the contents of your home folder. Click the Applications folder there. Is there anything in it? If not you can trash it.
    If you want an alias to your main Applications folder there instead, press and hold down the Option and Command keys and click, hold and drag the Applications folder into your home folder. You'll see a little curly arrow on the cursor as you do this, letting you know that you aren't moving the Applications folder, but creating an alias to it. You will then have an Applications folder in the usual place, and in your home folder an alias named Applications with an arrow on the corner of the folder icon. If you click on it you will see the contents of the Applications folder.
    Since you already have an alias to the Applications folder in your Sidebar, I don't know why you would want another. Far handier is to drag the Applications folder onto the Dock, where you can access it at any time.
    Francine
    Francine
    Schwieder

  • Acrobat Pro 9.0 and 9.1 crash using Portable Home Directory

    Installed 9.0 as part of CS4 Design Suite, and updated to 9.1. Runs OK for user on local machine but crashes when used by a portable home directory user on same machine, accessing user on OSX Server on local network. Safari also crashes when accessing pdf document. Can anyone help please?

    Thanks, the workaround in message 34 worked for me (so far!). Much more helpful than this reply from Adobe: "I am afraid we are unable to troubleshoot errors with customized user accounts. If the program works locally, we advice to use the program locally."
    Thanks again.

  • Never - Create a portable home directory on this computer now?

    I have kinda the opposite problem from normal. I have Home Directories and PHD's working fine. I think it is working as expected, with one exception...
    My Daughter has an iMac at my office. I set up her account as PHD so she could also use the account from home. (We SOMETIMES go home <g>) But when I log on as her from one of the other desktops at the office, I get the dialog: "Create a portable home directory on this computer now?". I answer never. And it keeps coming up. Does Never not mean Never?
    Panther Server, Tiger Clients. TIA
    PB G4 Al (2), MDD G4 Dual (3), AGP, Cube, W2K Server, B&W G3 Server & others (includes SE30)    

    Hello,
    I started a thread concerning the opposite phenomenon, when you once click "Never" it seems you cannot change your mind and get the question asked again ... maybe you could contribute to answer the question ?
    http://discussions.apple.com/thread.jspa?messageID=1375953&#1375953
    Brett_X said: Most of the PHD stuff happens at the client level anyway
    I guess the settings preventing the dialog from coming up are stored on the client machine ?
    Thank You.

  • Give up on Portable Home Directory?

    I'm wondering if anyone is actually having success with Portable Home Directory functionality in Leopard. I have mostly all Intel Macs... 3 iMacs, MacBook Pro, 2 MacPros... and 3 PPC G5's. The server is one of the PPC G5's. The server and all clients are 10.5.3.
    I've just had no luck over the course of this week getting PHD to function as advertised. It seems simple enough... and everything appears to go off without a hitch until you actually attempt to go mobile. Even then, on the surface it seems to be working then you quickly realize that it's not actually syncing. It only successfully syncs when the local home directory is initially created (first user login). After that, any changes you make go to the server... but they don't come down when you move to another computer.
    I have everything set as explained in the manual and on this forum. What I want is everything in the user folder to sync at login, once an hour while logged in, and at logout. What I'm getting is no sync at login, upsync everyhour, and upsync at logout. I just don't get it. The server home essentially has the correct combination of what is created on each computer... but each computer only has what was created/modified on that computer.
    I just recently attempted to delete the .filesync folders in both local and server user folder root... and nothing changed except that now it upsyncs EVERYTHING every time at log out.
    The client machines are obviously correctly bound as all the server managed preferences seem to be honored. As far as mobility, I've tried setting this individually for each user, and also on a group... and the only thing that works either way is the initial home folder creation and upsyncs at logout. It doesn't even try at login.
    If anyone has achieved any success, I would love an account of the steps taken and the order performed. I'm at the point now where I'm ready to backup the user information and delete all user accounts and homes and start over. Really exhausting trying to figure this out.

    Well I've found some consistency in the dysfunction, but I don't understand it. Still no sync at login, even if I turn off management server side and set it user side. It does sync at logout, although it has stopped re-upsyncing everything all over again each time (don't know why that suddenly stopped, but I'm glad it did).
    So here's the test. Logout of users normal computer, it syncs on logout. Go to another computer with a scansnap... Login, no sync, do a manual sync... it goes thru the motions... checking, but doesn't actually sync anything. Scan document, logout, it syncs. Go back to normal computer, login... no sync, do a manual sync... goes thru the motions... checking, doesn't sync (scanned document still not there). Check home folder on server, scanned document is, in fact, there. Logout, it syncs and actually does something. Immediately log back in, no sync, but document is there.
    So the consistency is that the home folder sync workflow seems to be working. However, for some reason, it won't sync at login or manually while logged in. I'm at a loss.

  • Using Portable Home Directory a a backup tool ?

    Hi all,
    we're still figuring out if a server will be a delight or too much of a bother for our environment (5 people, Powerbooks and MacbookPro only, Airport Extreme only, lots of work being done outside the office).
    Anyway, of many resolved questions, one still remains to be answered:
    Could we setup a Portable Home Directory to mirror the home folder automatically and in the background ?
    In other words: I come back to my table, flip open the computer and don't even realize the sync being done in the background.
    The idea is to have a kind of safety net (the mirrored home folder) as a kind of up-to-date backup.
    Or would it defeat the purpose of the Portable Home Directory (meaning we have no idea what it really is ... ?
    Thanks a lot in advance,
    chris
    Macbook Pro 17" 2.33 C2D Glossy + Various Powerbooks   Mac OS X (10.4.8)   Software always current (exept for AE Base station Firmware 5.5.1)

    Ah, OK, I somehow suspected that.
    So in our case (Desktop computer = Mobile computer =
    One and the same machine) it wouldn't make it any
    more convienient to have the home folder sync'ed to
    the server and have a backup run on that mirror than
    setting up a "normal" backup routine on the mobile
    computer itself ?
    Actually there can still be a fairly significant benefit, and it's the primary reason I use PHDs at my law office. (Like yours, ours is a small network of fewer than 10 machines, and they're all desktop Macs.)
    Having any machine go down is a major wrench in the works. So, we have a "spare" Mac that I keep up to date with our basic configuration and an administrator account. If one of my staff machines goes down, I quickly swap in the spare Mac, have the affected user log in to it, and confirm that we want to create a PHD on the spare. A few minutes later the sync is complete and, other than having to reset a few things like dock, sidebar and login items, my user is back in business. That user can happily use the spare Mac with her full home environment until the affected Mac can either be repaired or replaced. When we're ready to put the spare Mac back into its standby mode, I simply delete the staff member's PHD from it and it's ready to be pressed into service again.
    I've been through this process twice since we migrated to Tiger server, and have found it to be a much faster path back to productivity than having to restore from a backup. (Although, as I said earlier, PHDs are not a backup solution and we use several Retrospect routines for that purpose.)

  • Portable Home Directory - no prompt to create

    Not excactly sure how to explain this since I am new to MAC. We are using Kanaka 1.2 on our Macbooks and getting our user settings from Workgroup manager on our Xserve. Everything looks correct but I am not getting the prompt to create the portable home directory when 2 of my users login. These 2 users had previously logged in and when they got the "create portable home directory" message, NEVER was selected. I have deleted their accounts in \library\managed preferences. I'm not sure where else to look.
    Any help is appreciated.

    I had a similar problem and found this article helpful.
    http://www.macosxhints.com/article.php?story=20060103033920526
    It worked like a charm and I had the tech guy call me later and ask how I fixed it!

  • Portable Home Directory Syncing Problem

    Portable home directory syncing sometimes cannot complete, and stuck at "Checking "~/"". Looking at Console message shows the following:
    1:: 09/09/03 21:01:12.562 -SSHIPCClient handleStderrLineOrEOF:: 2009-09-03 21:01:12 -0700 'Pseudo-terminal will not be allocated because stdin is not a terminal.
    1:: 09/09/03 21:01:12.562 '
    1:: 09/09/03 21:01:12.657 -SSHIPCClient handleStderrLineOrEOF:: 2009-09-03 21:01:12 -0700 'Warning: Permanently added '\[server.domain.com\]:2336' (RSA) to the list of known hosts.
    1:: 09/09/03 21:01:12.657 '
    and that's it. it'll go forever unless I force quit loginwindow. Because if I try to logout, it will get stuck on logout syncing, presumably at the same point. Afterward, I can login and sync normal... for a while.
    Under "All Messages" and "Console Message" nothing shows around that time.
    When it does sync correctly, the the following messages go after what I had above:
    1:: [09/09/10 18:52:30.663] Remote peer greeting: 'com.apple.FileSync-2.0.0 FileSyncAgent-359 r? OKAY pid=1188'
    1:: [09/09/10 18:52:30.663] okayBusy = 'OKAY'
    Also, on the server's console message, the corresponding greeting does show up even when the client doesn't receive it. The clients forward/reverse DNS works fine on server and client.
    The problem happens to ALL the clients, which lead me to think it must be a setting error on my end rather than a bug. But I can't figure out what.
    Please help..

    I finally figured it out. The trouble was that it was syncing ~/Library/FileSync from the mini, where syncing was failing. The solution was to exclude this folder from the list of folders I was syncing.

  • HT2188 home button no longer working after upgrade to io6 on my iphone4...any ideas to fix this problem

    home button no longer working after upgrade to ios6 software on my iphone4..anything i can do to frix this or apple send me a new device.  phone no good without a home button

    The button's broken.  S**t happens.  Apple will replace your phone.  If in waranty it will be free of charge.  If not, you will pay $149. 
    You can elect to have it repaired at a 3rd party shop near you if you choose, but this will void all warranty if there's any left.

  • My ipod touch 4th generation keeps lagging, all the apps crash, nothing will update and my home button no longer works?

    my ipod touch will not stop crashing, its pretty much un usable now, is it worth resetting to default settings and clearing everything. Its about two years old and the screens been smashed twice and replaced, the home button no longer works, and now its slow and basically nothing even opens or updates. is it the end of my ipods life now ahah.

    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears. You can't do it
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
      - Restore to factory settings/new iOS device.

  • Home sharing no longer works in latest update. Please fix

    Home sharing no longer works in latest update. Apple Please fix.

    well, try if anything in the following support articles (unless already consulted) helps:
    _*iTunes: Troubleshooting Home Sharing*_
    [_*Troubleshooting security software issues*_|http://support.apple.com/kb/TS3125]
    [_*Troubleshooting Home Sharing with Apple TV (2nd generation)*_|http://support.apple.com/kb/TS3509]
    good luck !
    JGG

  • Internet sharing no longer works after Lion 10.7.4 update

    Internet sharing no longer works after Lion 10.7.4 update. Hopefully Apple will fix this shortly. Little excuse for this kind of screw-up.

    so here is da answer
    1. go to finder>(computer name)>macintosh HD>library>preferences
    2. copy the entire systemconfiguration folder and systemconfiguration.old folder to your desktop
    3. restart mac and device which you share intenet to
    then you have internet that is about 3x slower than the da 10.7.3 intenet sharing, but works
    then, just wait for apple to release da 10.7.4 fixed
    please use da steps!

  • The "Quit all applications" key combination no longer works in Lion

    The standard Mac OS key combination to "quit all applications" no longer works in Lion. It only quits some of them some of the time - not all of them all of the time. Could this have something to do with the other "no Save-As" problem?
    Either way, it's yet another backwards step - one of several in Lion that are cumulatively slowing down and intefering with my workflow.
    I fear someone may jump in here and explain that this is one of the great new features and that it's my fault for being too dumb to appreciate it.....

    Your workflow is valuable to us; your opinions help us solve problems.

Maybe you are looking for