A few days ago I had to change some file permissions on my freenas server to allow ssh to work. In doing so I could no longer login to the AFP share from my desktop. The strange thing was I could not login from bonjour ‘Shared’ panel on the left of the Finder window but I could connect through Finder in the Go–>Connect. After some investigation I deleted the following files from the root of the share folder on the Freenas.
- Network Trash Folder
- Temporary Items
Restarting the AFP service on the Freenas restored the files and everything was back to normal.
After further investigation I realized by looking at the logs that Error Code -5014 refers to a corrupt .AppleDB file. I only needed to delete the .AppleDB file and resart the AFP service to rebuild the database.