14 Replies Latest reply: Nov 14, 2007 6:48 PM by Jennifer Nolan1
dancin foo Level 1 Level 1 (0 points)
After pulling out my ipod too fast without it being properly ejected my itunes froze and wouldn't force quit, so I restarted my computer but when I try to open iTunes it now says, "The iTunes Library file is locked, on a locked disk, or you do not have write permission for this file."

I tried plugging my iPod back in and it says the same thing and won't open.

Help??

iTunes 7.2, newest version for this computer I'm pretty sure.   Mac OS X (10.3.9)  

   
  • 1. Re: Locked Library
    macmenno Level 6 Level 6 (10,075 points)
    In the Finder, select the iTunes folder (in ./Users/YourUsername/Music)
    Get Info (Command-I).
    You will see a window like this:

    Photo Sharing and Video Hosting at Photobucket

    Expand Ownership & Permissions, if necessary, by clicking on the small triangle.
    You must read: "You can Read & Write"
    At 'Owner:': your username. Access: Read & Write
    Make changes if necessary and click on the 'Apply to enclosed item...' button.

    Also take a look at 'Locked' checkbox. It must not be checked.

    Hope this helps.

    M

    17' iMac 800 MHz, 768 MB RAM, 200 GB HD, DL burner   Mac OS X (10.4.9)   iTunes 7.2
  • 2. Re: Locked Library
    dancin foo Level 1 Level 1 (0 points)
    Under ownership & permissions it already says "You can read and write"

    Is there anything else I can try?
  • 3. Re: Locked Library
    macmenno Level 6 Level 6 (10,075 points)
    Did you also click the 'Apply to enclosed item...' button?
    This action ensures that all items inside the iTunes folder will have the proper ownership and permissions.

    If you have done the above, but despite that action, it does not work, there is one trick left (one that I know of).

    • Open the iTunes folder.
    • Copy the 'iTunes Library' file to the desktop.
    This can be easily done by pressing and holding the Option-key (alt or ⌥) and then clicking and holding down the mouse button. Drag the 'iTunes Library' file to the desktop, then release the mouse button and next release the Option-key. Now a copy is present on the desktop.
    • Delete the 'iTunes Library' file in the iTunes folder (trash it and empty the trash).
    • Drag the 'iTunes Library' file from the desktop to the iTunes folder.

    Run iTunes. Hopefully it does.

    M

    17' iMac 800 MHz, 768 MB RAM, 200 GB HD, DL burner   Mac OS X (10.4.9)   iTunes 7.2
  • 4. Re: Locked Library
    dancin foo Level 1 Level 1 (0 points)
    macmenno I tried all of the above and it's still not working Thank you SO much for your help though, and I'll keep playing around it.

    If anyone else has any suggestions they'd be appreciated!
  • 5. Re: Locked Library
    AmiNTT Level 3 Level 3 (630 points)
    I ran into the same problem. The library was locked after having to Force-Quit iTunes, but nothing seemed to work.

    It occurred to me that there is an iTunes helper application that runs in the background that might be the cause of the problem, so I opened up Activity Monitor (found in Applications/Utilities/) and looked at the running tasks.

    I selected the task called "iTunesHelper", then selected Quit Process.

    When I double-clicked on iTunes, it launched without problem.

    I hope that helps.
  • 6. Re: Locked Library
    Ron- Level 1 Level 1 (0 points)
    HEY!

    I got the exact same problem, after pulling out my ipod too fast and then forced to quit itune

    I tried all of the solution in this disscusion and other discutions but it was still not working

    Finally, I restart my computer . After, Itunes open without error message and everything is fine now.

    thanks to all for your help and solution!

    Imac G5 PowerPC isight   Mac OS X (10.4.10)  
  • 7. Re: Locked Library
    ma(r)c genius Level 1 Level 1 (0 points)
    my itunes locked on me today after attempting to reload the firmware for a friend.
    i
    in your username/Music/iTunes

    right click and select get info

    on the ownership and permissions area, make sure as owner and group your username is selected and that you have "read & write" for both of these sections. for others read only

    Make sure you apply to enclosed items.

    For being extra sure i performed this check and apply to the files and folders inside iTunes (i had about 6 files and folders collectively there)

    next restart in safe mode, by holding down on the shift key when it restarts until the apple and pinwheel grey screen appear.

    the pinwheel spinner will spin for a while and the machine will take a while to startup

    you will be requested to login with your password and make sure you are the admin user for the computer.

    once in safe mode go to disk utility and repair disk permissions for Macintosh HD

    once that is complete restart normally and you should now have access to your itunes library and program

    hope this helps

    marc
  • 8. Re: Locked Library
    Mattmac :o) Level 1 Level 1 (0 points)
    I had the same problem when the battery went flat on my Macbook & just shut down without warning whilst iTunes was running.

    I struggled to find a fix that worked and in the end I just did the following :

    - corrected the read / write access of iTunes library file in the iTunes folder
    - ditto with iTunes Music Library.xml
    - then I just double clicked on the iTunes library file.

    iTunes fired up and started to ask questions as if iTunes had never been run ..... I accepted the settings I wanted and hey presto, iTunes fired up and everything was still there!

    Hope you are as lucky!
  • 9. Re: Locked Library
    Mattmac :o) Level 1 Level 1 (0 points)
    I had the same problem when the battery went flat on my Macbook & just shut down without warning whilst iTunes was running.

    I struggled to find a fix that worked and in the end I just did the following :

    - corrected the read / write access of iTunes library file in the iTunes folder
    - ditto with iTunes Music Library.xml
    - then I just double clicked on the iTunes library file.

    iTunes fired up and started to ask questions as if iTunes had never been run ..... I accepted the settings I wanted and hey presto, iTunes fired up and everything was still there!

    Hope you are as lucky!
  • 10. Re: Locked Library
    Steve Sweitzer Level 1 Level 1 (45 points)
    Thanks, dragging to a different drive, then erasing the original iTunes Library and then dragging back did the trick for me.
    For what it's worth, my library lives on a network drive and I connect to it through an alias or a Symbolic Link (do that the get a program called MusicIP Mixer to work).
  • 11. Re: Locked Library
    ColombianKirby14 Level 1 Level 1 (0 points)
    I Have The Same Problem but it says I can't Access Denied What Can I Do I Was Trying What you put before.
  • 12. Re: Locked Library
    rockergirl164 Level 1 Level 1 (0 points)
    I had a unique situation where I actually had 2 itunes libraries, one from this computer and one from a computer sync when i bought this computer. I couldn't delete them because it insisted that they were both "in use" but after copying the newest library, the one used my itunes, onto my desktop, replacing that folder with the copied folder from the desktop I opened itunes to a completely empty library. I ended up clicking and dragging all of my artist folders into itunes. So now it works even though I lost all my play lists.
  • 13. Another Locked Library
    Jennifer Nolan1 Level 1 Level 1 (0 points)
    I'm having the same problem after my battery unexpectedly went flat and my iBook went to sleep while playing music in iTunes.

    Unfortunately, I keep my iTunes library and music on a network drive, so the connection went kablooey as a result.

    After I came back out of sleep, I was continually getting the "The iTunes Library cannot be saved" error, but I was able to keep playing music. I decided to quit out of iTunes, reconnect to the drive, and see if that would make things better. However now I get the locked library message and iTunes won't open at all.

    When I check permissions, either through the Finder or via a terminal window, I see that I have read and write access (at the command line, the permission of the iTunes directory and all files & subdirectories is set to 700). Thought that maybe I was logged in differently, so I tried to set the permissions manually, which I was unable to do.

    Trying to copy the iTunes Library to another disk (like a couple folks mentioned above) didn't help, as it aborted the copy and said I didn't have permission.

    Trying to copy the iTunes Library via the terminal to another disk gave me the following error: "Resource temporarily unavailable"

    Looks to me like the file's been corrupted somehow, but I'm wondering if there's a way to save it before I trash it and lose all my playlists. Does Disk Utility work on network drives (or is there a utility that does), so I can verify permissions that way, or do you think I'm just grasping at straws at this point?

    Apologies for the long post... just figured I'd try to get as much detail in as possible... thanks in advance for any help!

    Message was edited by: Jennifer Nolan1

    Message was edited by: Jennifer Nolan1
  • 14. Re: Another Locked Library
    Jennifer Nolan1 Level 1 Level 1 (0 points)
    Okay, I fixed my problem last night with a lot of finger-crossing.

    Thru the terminal, I renamed the corrupted library in question with 'mv "iTunes Library" iTL.corrupt', and the ._iTunes Library file renamed itself accordingly after a few seconds.

    Then I restarted iTunes with no library file at all and imported from the iTunes Library.xml file

    It took a while, but I got all my music and playlists back. Hooray!

    Message was edited by: Jennifer Nolan1