I've run iTunes for years with a remote iTunes Media folder and a local iTunes Library file. While I can still play my media, I can no longer add files to the repository; iTunes can delete media files. Here are the steps to reproduce the problem with a new user account and new media library:
On my NAS, I created the user
itunes, and I created a new file share named
iTunesLibrary. I set the file share's owner to
itunesand set its permissions to be 777.
On my Mac, I used the Users & Groups Control Panel to create a new user, Test1. Logging in as Test1, I used the finder to mount the
iTunesLibraryshare on my NAS, connecting as the user
itunes. Launching iTunes for the first time, I went to Preferences -> Advanced and selected the
iTunesLibraryshare on the NAS; the resultant path in iTunes became
Dragging an mp3 file from the desktop into iTunes, I got the following popup error message:
Attempting to copy to the disk "iTunesLibrary" failed. An unknown error occurred (-54).
Note that iTunes was able to successfully create this folder inside
drwxrwsr-x 4 itunes jewab 42 Apr 3 20:54 Automatically Add to iTunes.localized, which seems to indicate that it can create files on the NAS.
This doesn't seem to be an obvious permissions problem, which other references to error -54 indicate. How else might I get iTunes to store files on the NAS again?
The Mac's syslog file is silent during this process; the NAS's /var/log/messages file has 1 line added to it:
Apr 10 17:53:31 Jupiter daemon.err afpd: deletecurdir: error deleting .AppleDouble in "@"
[Using Mac OS X 10.8.3; iTunes 11.0.2; WD My World Book NAS firmware 01.02.14 with 1.6TB free]