Jul 22, 2011

AFP failing between OSX Lion machines

I recently upgraded both my MacPro and MacBook to Lion. The upgrades went fine, but I now find that I cannot open a non-guest AFP connection between the two machines. On the client I see 'Connection Failed...' and in the server console I find:

22/07/2011 08:39:20.350 AppleFileServer: _Assert: /SourceCache/afpserver/afpserver-581/afpserver/AFPRequest.cpp, 2005
22/07/2011 08:39:20.354 AppleFileServer: _Assert: /SourceCache/afpserver/afpserver-581/afpserver/AFPRequest.cpp, 2005
22/07/2011 08:39:20.400 AppleFileServer: Calling ReadLock on lock < 0x2a833128 > while holding WriteLock
22/07/2011 08:39:20.524 ReportCrash: DebugSymbols was unable to start a spotlight query: spotlight is not responding or disabled.
22/07/2011 08:39:20.965 com.apple.launchd: (com.apple.AppleFileServer[424]) Job appears to have crashed: Illegal instruction: 4
22/07/2011 08:39:21.062 ReportCrash: Saved crash report for AppleFileServer[424] version ??? (???) to /Library/Logs/DiagnosticReports/AppleFileServer_2011-07-22-083921_localhost.crash
22/07/2011 08:39:22.389 com.apple.launchd: (com.apple.AppleFileServer) Throttling respawn: Will start in 8 seconds

I also have a crash report.

This is fairly annoying as my MacPro acts as the Time Machine backup for my MacBook. Has anyone experienced anything similar and are there any workarounds?

Update: I found a work around: I removed all folders from 'System Preferences/Sharing/File Sharing/Shared folders' and I can now connect. The unfortunate side effect of this workaround is that now the whole file system on the server is shared - subject to the authenticated user's privileges.


  1. Cheers for the workaround, this has been frustrating me all day!

  2. If you previously had your home folder shared, this is the cause of your issue. Can be resolved by simply removing the home folder share. Your home folder is still accessible automatically by hitting 'Connect As' when browsing the share and entering the credentials for the home folder owner.

    More details here: http://ryanarmstrong.net.au/blog/mac-osx-lion-file-sharing-connection-failed.html

  3. I was getting this error as well, and stopping and starting File Sharing in System Preferences > Sharing seemed to clear it up.

  4. Continual messages ..
    Feb 27 09:08:33 echo AppleFileServer[26081]: _Assert: /SourceCache/afpserver/afpserver-585.2/afpserver/FPCarbonVol.cpp, 70 (-35)
    Feb 27 09:08:59: --- last message repeated 2 times ---
    Resolved on OSX 10.7.3 by removing Home folder from share list as suggested at
    http://swish-movement.blogspot.com/2011/07/afp-failing-between-osx-lion-machines.htm (here).