Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Problem syncing Mobile account home folder

I'm trying to get mobile accounts working correctly so that i can support users (including myself) having laptops and iMacs with files all in sync. My initial tests seem to go well, but when I started moving the first user account over (mine) I noticed a number of errors appear. Here is an example of what I'm currently working on (I've trimmed it down to just before the error message):

<hr>
Client ~/Library/Logs/FileSyncAgent/FileSyncAgent-verbose.log:
<Logout> 1:: \[10/06/16 15:22:57.357] <OK> network: MODIFY "Library/Preferences/com.apple.recentitems.plist" {(Priority=1, EXECUTING)}
<Logout> 1:: \[10/06/16 15:22:57.387] <OK> network: MODIFY "Library/Preferences/com.apple.systemuiserver.plist" {(Priority=1, EXECUTING)}
<Logout> 1:: \[10/06/16 15:22:57.417] <OK> network: MODIFY "Library/Preferences/com.apple.Terminal.plist" {(Priority=1, EXECUTING)}
<Logout> 0:: \[10/06/16 15:22:57.435] EXCEPTION: \[data writeToFile:'/Volumes/Users/synctest/.FileSync/PHD-R-wO-0oQq9MqC-synctest.FileS yncHistory' options:0 error:&error] (Cocoa error 512) <-\[SStoreFileOperator_FS writeFileData:] (StoreFileOperator-FS.m:1091): "(Error Domain=NSCocoaErrorDomain Code=512 UserInfo=0x102fdd8c0 "The file “PHD-R-wO-0oQq9MqC-synctest.FileSyncHistory” couldn’t be saved in the folder “.FileSync”." Underlying Error=(Error Domain=NSPOSIXErrorDomain Code=35 "The operation couldn’t be completed. Resource temporarily unavailable"))">
<Logout> 0:: \[10/06/16 15:22:57.435] USERINFO: {
<Logout> 0:: \[10/06/16 15:22:57.435] NSFilePath = "/Volumes/Users/synctest/.FileSync/PHD-R-wO-0oQq9MqC-synctest.FileSyncHistory";
<Logout> 0:: \[10/06/16 15:22:57.435] NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=35 \"The operation couldn\U2019t be completed. Resource temporarily unavailable\"";
<Logout> 0:: \[10/06/16 15:22:57.435] }
<Logout> 0:: \[10/06/16 15:22:57.435] BACKTRACE: {
<Logout> 0:: \[10/06/16 15:22:57.435] ? | 0x1000bc73c
<Logout> 0:: \[10/06/16 15:22:57.435] ? | 0x1000b9eec
<Logout> 0:: \[10/06/16 15:22:57.435] ? | 0x100066a00
<Logout> 0:: \[10/06/16 15:22:57.435] ? | 0x100065fe6
<Logout> 0:: \[10/06/16 15:22:57.435] ? | 0x1000c8f1a
<Logout> 0:: \[10/06/16 15:22:57.435] ? | 0x7fff800cbe8d
<Logout> 0:: \[10/06/16 15:22:57.435] ? | 0x7fff820a3456
<Logout> 0:: \[10/06/16 15:22:57.435] ? | 0x7fff820a3309
<Logout> 0:: \[10/06/16 15:22:57.435] }
<Logout> 1:: \[10/06/16 15:22:57.544] -\[SStore(protected) cleanupTree]: PHD-L-iI.arrVC0G4-synctest: required 0.0 seconds to execute
<Logout> 1:: \[10/06/16 15:22:57.557] Store "PHD-L-iI.arrVC0G4-synctest" finished syncing with root version PHD-L-iI.arrVC0G4-synctest1276714848PHD-R-wO-0oQq9MqC-synctest1276714849\[]
<Logout> 1:: \[10/06/16 15:22:57.558] -\[SStore_FS deleteStateTreeTurdFile] (Store-FS.m:481): unlink('/Users/synctest/.FileSync/store.filesyncstatetree.statetree_dirty')
<Logout> 1:: \[10/06/16 15:22:57.737] Store "PHD-R-wO-0oQq9MqC-synctest" finished syncing with root version PHD-L-iI.arrVC0G4-synctest1276714848PHD-R-wO-0oQq9MqC-synctest1276714849\[]
<Logout> 1:: \[10/06/16 15:22:59.041] Compress/upload of "/Volumes/Users/synctest/.FileSync/Store-FS-PHD-network-home.filesyncstatetree. bz2" took 1.30 seconds
<Logout> 1:: \[10/06/16 15:22:59.041] -\[SStore_FS deleteStateTreeTurdFile] (Store-FS.m:481): unlink('/Volumes/Users/synctest/.FileSync/Store-FS-PHD-network-home.filesyncsta tetree.bz2.statetree_dirty')
<Logout> 1:: \[10/06/16 15:22:59.043] 1-pass sync of "HomeSync_Mirror" took 4.75 seconds
<Logout> 0:: \[10/06/16 15:22:59.374] Finished sync of "HomeSync_Mirror".
1:: \[10/06/16 15:22:59.914] -\[MainObj shutdownAgent]
0:: \[10/06/16 15:22:59.949] EXCEPTION: User Cancelled <_incomingIPC (ipc.m:210): "'((userCanceledErr))' error -128">
0:: \[10/06/16 15:22:59.949] USERINFO: {
0:: \[10/06/16 15:22:59.949] NSLocalizedDescription = "User Cancelled";
0:: \[10/06/16 15:22:59.949] }
0:: \[10/06/16 15:22:59.949] BACKTRACE: {
0:: \[10/06/16 15:22:59.949] ? | 0x10000e2a8
0:: \[10/06/16 15:22:59.949] ? | 0x7fff82d74af1
0:: \[10/06/16 15:22:59.949] ? | 0x7fff82d0f171
0:: \[10/06/16 15:22:59.949] ? | 0x7fff82d0d84f
0:: \[10/06/16 15:22:59.949] ? | 0x1000049d9
0:: \[10/06/16 15:22:59.949] ? | 0x7fff820a3456
0:: \[10/06/16 15:22:59.949] ? | 0x7fff820a3309
0:: \[10/06/16 15:22:59.949] }
1:: \[10/06/16 15:22:59.949] _incomingIPC: caught exception _incomingIPC (ipc.m:210): "'((userCanceledErr))' error -128"
0:: \[10/06/16 15:23:00.669] Bye (PID:2246)


<hr>

Server ~/Library/Logs/FileSync-server/FileSync-server-verbose.log:
1:: \[10/06/16 15:22:54.616] PHD-R-wO-0oQq9MqC-synctest Scanning flagged directory "Library/"
1:: \[10/06/16 15:22:54.625] PHD-R-wO-0oQq9MqC-synctest Scanning flagged directory "Library/Preferences/"
1:: \[10/06/16 15:22:54.644] PHD-R-wO-0oQq9MqC-synctest Scanning flagged directory "Library/Preferences/ByHost/"
1:: \[10/06/16 15:22:54.665] Store "PHD-R-wO-0oQq9MqC-synctest" finished prepareForSync with root version PHD-L-iI.arrVC0G4-synctest1276714845PHD-R-wO-0oQq9MqC-synctest1276714849\[]
1:: \[10/06/16 15:22:54.671] -\[SStore_FS deleteStateTreeTurdFile] (Store-FS.m:481): unlink('/Users/synctest/.FileSync/Store-FS-PHD-network-home.filesyncstatetree.s tatetree_dirty')
1:: \[10/06/16 15:22:56.113] -\[SPeer_FS zip] (Peer-FS.m:361): unlink('/Users/synctest/.FileSync/Store-FS-PHD-network-home.filesyncstatetree')
0:: \[10/06/16 15:22:59.705] EXCEPTION: Unknown error 2002 <-\[SNetworkReachabilityMonitor init] (NetworkReachabilityMonitor.m:72): "(Error Domain=com.apple.SystemConfiguration Code=2002 UserInfo=0x100243d20 "The operation couldn<E2><80><99>t be completed. (com.apple.SystemConfiguration error 2002 - Configuration daemon not (no longer) available)")">
0:: \[10/06/16 15:22:59.705] USERINFO: {
0:: \[10/06/16 15:22:59.705] NSDescription = "Configuration daemon not (no longer) available";
0:: \[10/06/16 15:22:59.705] }
0:: \[10/06/16 15:22:59.705] BACKTRACE: {
0:: \[10/06/16 15:22:59.705] ?<C2><A0>|<C2><A0>0x100014831
0:: \[10/06/16 15:22:59.705] ?<C2><A0>|<C2><A0>0x100014688
0:: \[10/06/16 15:22:59.705] ?<C2><A0>|<C2><A0>0x7fff82ffb535
0:: \[10/06/16 15:22:59.705] ?<C2><A0>|<C2><A0>0x7fff8300963e
0:: \[10/06/16 15:22:59.705] ?<C2><A0>|<C2><A0>0x7fff83001eaa
0:: \[10/06/16 15:22:59.705] ?<C2><A0>|<C2><A0>0x7fff82ffa1ba
0:: \[10/06/16 15:22:59.705] ?<C2><A0>|<C2><A0>0x1000036c3
0:: \[10/06/16 15:22:59.705] ?<C2><A0>|<C2><A0>0x10007f4e0
0:: \[10/06/16 15:22:59.705] ?<C2><A0>|<C2><A0>0x2
0:: \[10/06/16 15:22:59.705] }
0:: \[10/06/16 15:22:59.705] Bye (PID:9460)


<hr>

Now I've not done much with OS X programming, but I've done quite a bit of Unix systems work. The client appears to be getting an EAGAIN error (essentially that the syscall didn't complete, but not that it failed). Ideally, it should try again, and perhaps there is something I can set that will have it do a couple of retry attempts before giving up?

However, the error on the server side is the likely culprit. I don't know what the error message regarding com.apple.SystemConfiguration means, but my googling for hints implies that it is some sort of error connecting over the network. To try and debug that, I had both machines connected to the same switch with firewalls turned off and the error continues. The previous lines imply that it is trying to delete a file that it created from the local disk. What bothers me about that is that in the WGM I set the home directory to be "afp://servername/Users" and it shows that it should be either "afp://servername/Users/synctest" or "/Network/Servers/servername/Users/synctest" but the server is accessing the home folder directly, so why an issue with network reachability?

Can anyone offer any hints as to what I should be looking for? I had hoped that PHDs would solve the whole multiple computer issue, but they don't seem to be working reliably for me. Since I get this issue consistently I'm guessing that there is something misconfigured on my end.

MacBook Pro 2GHz, Mac Mini Server, etc., Mac OS X (10.6.4)

Posted on Jun 22, 2010 6:55 AM

Reply
4 replies

Jun 28, 2010 6:40 AM in response to Benjamin Kuperman

Heh there Benjamin,.. Have you made any progress on this, since May?

Despite a practically virgin account, we too are getting a similar error (in FileSyncAgent.log):

+FileSyncAgent-369 (r?, BUILT:?, PID:27215, OS:10F569, ARCH:i386) starting+
+LA: FileSyncAgent -launchedByLaunchd+
+Starting manual sync of "HomeSync_Mirror".+
+EXCEPTION: [data writeToFile:'/Volumes/users/user1/.FileSync/PHD-R-HYb4qAnhE6-user1.FileSyncHist ory' options:0 error:&error] (Cocoa error 512)+
+Finished sync of "HomeSync_Mirror".+

Somewhat similar discussion is here:

Topic : Client not syncing (Feb.2008)
http://discussions.apple.com/thread.jspa?threadID=1310412

Jul 8, 2010 8:44 AM in response to DrKdev

Sadly no. I've figured out one setting I could change to increase the amount of logging on the client side, but still haven't figured out how to get more information from the server.

I was going to try out a fresh install on the client side side, unfortunately my old laptop encountered some hardware errors during the wipe and install so I'm waiting to get that back and then I'll test things again.

One hypothesis I have is that things worked fine until I entered my account which subscribes to MobileMe. I'm wondering if that changed a number of the sync settings someplace. Is the account you were syncing using MobileMe (or any account on the client)?

Jul 14, 2010 6:22 AM in response to Benjamin Kuperman

@Benjamin,
Try deleting the folders ~/.FileSync ~/Library/FileSync on both the server side (where the home folder is served) and on the client machine (where the mobile home is mobily/phd-installed) and then try home-syncing again.

Keep your eye on the logs.. particularly ~/Library/Logs/FileSyncAgent/FileSyncAgent-verbose.log during the sync process and FileSyncUI.log one folder higher.

shawn

Jul 31, 2010 10:50 AM in response to DrKdev

Shawn,

I've done the deletion of those folders a number of times, with no luck.

The most recent attempt to get this to work was:

1. Delete ~/.FileSync and ~/Library/FileSync from the server machine.

2. With a brand-new install of OS X on a laptop, create a local administrator, join the server, then login as the user account that wants a mobile account

3. Look at logs

I still get an exception on the server

-----
0:: \[10/07/31 13:39:47.791\] EXCEPTION: Unknown error 2002 <-\[SNetworkReachabilityMonitor init\] (NetworkReachabilityMonitor.m:72): "(Error Domain=com.apple.SystemConfiguration Code=2002 UserInfo=0x10027adc0 "The operation couldn<E2><80><99>t be completed. (com.apple.SystemConfiguration error 2002 - Configuration daemon not (no longer) available)")">
0:: \[10/07/31 13:39:47.791\] USERINFO: {
0:: \[10/07/31 13:39:47.791\] NSDescription = "Configuration daemon not (no longer) available";
0:: \[10/07/31 13:39:47.791\] }
0:: \[10/07/31 13:39:47.791\] BACKTRACE: {
0:: \[10/07/31 13:39:47.791\] ?<C2><A0>|<C2><A0>0x100014831
0:: \[10/07/31 13:39:47.791\] ?<C2><A0>|<C2><A0>0x100014688
0:: \[10/07/31 13:39:47.791\] ?<C2><A0>|<C2><A0>0x7fff82ffb535
0:: \[10/07/31 13:39:47.791\] ?<C2><A0>|<C2><A0>0x7fff8300963e
0:: \[10/07/31 13:39:47.791\] ?<C2><A0>|<C2><A0>0x7fff83001eaa
0:: \[10/07/31 13:39:47.791\] ?<C2><A0>|<C2><A0>0x7fff82ffa1ba
0:: \[10/07/31 13:39:47.791\] ?<C2><A0>|<C2><A0>0x1000036c3
0:: \[10/07/31 13:39:47.791\] ?<C2><A0>|<C2><A0>0x10007f4e0
0:: \[10/07/31 13:39:47.791\] ?<C2><A0>|<C2><A0>0x2
0:: \[10/07/31 13:39:47.791\] }
0:: \[10/07/31 13:39:47.792\] Bye (PID:38660)
-----

as well as the corresponding error on the client.

I'm quite frustrated with the whole situation at this point. I'm sure some folks have gotten it to work, but since it has exceptions like this silently, it slowly corrupts the data in an account. I still want to get it to work, but am skeptical that it will.

Message was edited by: Benjamin Kuperman

Problem syncing Mobile account home folder

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