Apple Event: May 7th at 7 am PT

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

The iTunes Library file is locked, on a locked disk, or you do not have write permission for this file.

I keep on getting this error when trying to open iTunes. I just reformatted my drive. OS X Lion Server is my OS


"The iTunes Library file is locked, on a locked disk, or you do not have write permission for this file."


Please help. I have tried to repair disk permissions as recommended in other inquires.

Mac OS X (10.7.2)

Posted on Nov 10, 2011 7:50 AM

Reply
Question marked as Best reply

Posted on Jun 3, 2012 11:09 AM

Hi everyone, found this thread via Google Search. Tried what was suggested, but no luck. Did some more seraching and found this tip, which did the trick. Hope it helps. 🙂


http://www.iphonestuffs4u.com/how-to-fix-itunes-library-file-is-locked-error/

49 replies

Feb 7, 2013 2:14 PM in response to luba petrusha

For me it did not help to change permission recursively. I created a new copy of the library file in Terminal:


$ cd ~/Music/iTunes

$ ls -l iTunes\ Library.itl*

-rw-r--r--@ 1 soren staff 22817000 7 Feb 19:34 iTunes Library.itl

$ cat iTunes\ Library.itl >iTunes\ Library.itl.new

$ mv iTunes\ Library.itl iTunes\ Library.itl.old

$ mv iTunes\ Library.new iTunes\ Library.itl

$ ls -l iTunes\ Library.itl*

-rw-r--r-- 1 soren staff 22817000 7 Feb 22:35 iTunes Library.itl

-rw-r--r--@ 2 soren staff 22817000 7 Feb 19:34 iTunes Library.itl.old


After that I was able to start up iTunes again.

May 26, 2013 9:42 AM in response to NAS65

iTunes 11.0.3 just gave a very long beach ball out of the blue, mid-operation while applying some album artwork on fresh cd imports. It was clear iTunes needed to be Force-Quit, after which it gave me the finger with the locked library thing, whenever I tried to reopen iTunes.


Rather than fiddle with permissions on the itl and possibly other files, I tried the suggestion from Luba (use Finder to navigate to user > music > itunes folder; get info, unlock, apply permissions to all content) , figuring something else might be locked somewhere in a sub-folder. Gave it a go. A few minutes later, iTunes is back and seemingly normal.


Thank you Luba !


luba petrusha



Try this--it seems to have worked for me: http://www.mac-forums.com/forums/os-x-apps-games/245774-itunes-folder-locked.htm l


From the site:


You can actually just fix those permissions.

  1. Go to: Macintosh HD > Users
  2. Right-click on your user name (home folder) and select Get Info.
  3. Click the lock at the bottom and enter your password.
  4. Your permissions at the moment for that folder should be Read & Write for you,Read only for staff and everyone.
  5. Click the gear icon at the bottom, and select Apply to enclosed items.

The last step will take a few minutes to complete, but once done, everything in your home folder should now have their proper permissions.


I got the "locked library" message and spinning beachball twice, and had to force quit both iTunes and do a forced restart. Now everything seems to be running well.



Aug 11, 2013 2:18 PM in response to SandAndSea

I have been in this situation, and while different solutions worked at different times, I accidentally found out that by double-clicking the iTunes Library.itl file, launches iTunes and unlocks the files.

Have tried it several times and has worked at all times up till now. My iTunes library is on an external drive.

Hope this helps somebody.

Sep 7, 2013 3:10 PM in response to NAS65

THIS WORKED FOR ME:


In the disk utility, select your hard drive, then select verify disk permissions. The process will take a few minutes to complete.

Then select repair disk permissions, and wait till it completes just like before. Then restart your mac. All your permissions will now have been verified and repaired. It's almost like defrag on pc, just much faster. .

Sep 12, 2013 6:07 PM in response to NAS65

I was having the same problem and I finally figured out why and worked out a fix. If you house your iTunes Library on an external drive, read on.


I use a Time Capsule set up as an AirPort Base Station for wireless network & Internet access. I have an external drive connected to the Time Capsule's USB port. My iTunes folder and all it's contents are located on this external drive.


In a seperate but now related issue, when I upgraded from Snow Leopard to Lion, I started having Adobe Illustrator trouble, whereby every time I tried to Save a file to the network, Illustrator would hang mid-save then freeze my whole system. This thread in Apple Support Communities led me to the only found solution, which involves connecting to the Time Capsule using the SMB sharing protocol (LAN address smb://10.0.1.1) as opposed to Apple's default AFP sharing protocol.


So, I began connecting via SMB (smb://10.0.1.1 in my Connect to Server menu) to curb the Illustrator Saving Issue. Meanwhile, I set up my iTunes library, directing my iTunes Media Folder Location in Preferences to a folder on the external drive. All was going well until one day I connected to the Time Capsule Sharepoint using the Time Capsule icon that showed up under "Shared" in my Finder sidebar, which by default uses the AFP sharing protocol (afp://Time_Capsule._afpovertcp._tcp.local OR afp://10.0.1.1). It was on this day that I received the error message that titles this discussion.


What I THINK I realized, is that if you house your iTunes Media Folder on an external HD, the sharing protocol used to connect to the Volume must remain consistent. Once I mounted the volume using the SMB address, the error message went away.


I now have the volume in my Login Items BOTH ways, which seems redundant, but everything works. If someone has a reason why this is a bad idea, let me know. I'm not sure of the advantages/disadvantages of AFP over SMB, but I guess I'm stuck connecting via SMB thanks to the Illustrator issue, and my iTunes setup.

The iTunes Library file is locked, on a locked disk, or you do not have write permission for this file.

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