Skip navigation
This discussion is archived

Locked Library

4124 Views 14 Replies Latest reply: Nov 14, 2007 6:48 PM by Jennifer Nolan1 RSS
dancin foo Calculating status...
Currently Being Moderated
Jun 13, 2007 9:55 PM
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)  

   
  • macmenno Level 6 Level 6 (10,075 points)
    Currently Being Moderated
    Jun 14, 2007 1:32 AM (in response to dancin foo)
    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
  • macmenno Level 6 Level 6 (10,075 points)
    Currently Being Moderated
    Jun 14, 2007 7:37 AM (in response to dancin foo)
    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
  • AmiNTT Calculating status...
    Currently Being Moderated
    Jun 26, 2007 8:46 PM (in response to dancin foo)
    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.
    G5 1.8 Ghz Single, 15" MBP & Mac Mini 1.42 Ghz, Mac OS X (10.4.9), ~2.5 TB hd, 3 GB ram, Canon GL2, Digital Rebel, Black 2G Nano
  • Ron- Calculating status...
    Currently Being Moderated
    Jul 16, 2007 8:23 AM (in response to dancin foo)
    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)  
  • ma(r)c genius Calculating status...
    Currently Being Moderated
    Aug 11, 2007 10:43 PM (in response to dancin foo)
    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
    Macbook Pro, Mac OS X (10.4.10), MBP 2.4GHz 2Gig Ram 160 HD
  • Mattmac :o) Calculating status...
    Currently Being Moderated
    Aug 13, 2007 12:51 PM (in response to dancin foo)
    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!
    Macbook, Mac OS X (10.4.10)
  • Mattmac :o) Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 13, 2007 12:52 PM (in response to dancin foo)
    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!
    Macbook, Mac OS X (10.4.10)
  • Steve Sweitzer Calculating status...
    Currently Being Moderated
    Aug 22, 2007 5:37 AM (in response to macmenno)
    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).
    Dual Processor G4 & G5 MacBook Pro, Mac OS X (10.4.6)
  • ColombianKirby14 Calculating status...
    Currently Being Moderated
    Sep 17, 2007 6:41 PM (in response to dancin foo)
    I Have The Same Problem but it says I can't Access Denied What Can I Do I Was Trying What you put before.
    GateWay, Windows XP
  • rockergirl164 Calculating status...
    Currently Being Moderated
    Oct 14, 2007 12:22 PM (in response to dancin foo)
    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.
    Mac OS X (10.3.9), latest itunes software
  • Jennifer Nolan1 Calculating status...
    Currently Being Moderated
    Nov 13, 2007 7:59 PM (in response to dancin foo)
    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
    iBook G4, Mac OS X (10.5)
  • Jennifer Nolan1 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Nov 14, 2007 6:48 PM (in response to Jennifer Nolan1)
    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
    iBook G4, Mini (pre-Intel), G4 350MHz (now bequeathed to my kid), Mac OS X (10.5)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.