Skip navigation

The iTunes Library.itl file is locked

26664 Views 10 Replies Latest reply: Aug 30, 2013 2:48 AM by havinabubble RSS
kinnybee Calculating status...
Currently Being Moderated
Dec 9, 2010 4:58 PM
I have read many, many postings on this issue, but can't seem to find a resolution that works for me.

The problem occurs whenever iTunes is forced to close unexpectedly. Upon attempting to reopen iTunes, I get the following error message:

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

However, when I browse to the library.itl file and select "get info", it does NOT show as locked. In fact, if I attempt to check the "lock" selection, it immediately unchecks itself. Also on the "get info" page, the Sharing & Permissions area says "You can read and write".

I do not know of any other way to change permissions in OSX. I do not know how to use the terminal and view the chmod permissions on a networked drive.

However, since I do store my music library on a NAS device, I have browsed to the library.itl file via PC and viewed the properties. Again, it is not checked as "read only", and the permissions clearly allow read and write by everyone. I have even changed the permissions to "full control" for everyone. But that doesn't resolve the problem. As far as I can tell, there is not a permissions problem at all.

I have tried to copy the library.itl file to my mac desktop, in order to rename the original file and replace it with the copy, to try and reset the permissions that way. But OSX tells me "The operation can’t be completed because you don’t have permission to access “iTunes Library.itl”. So I cannot move the file. Interestingly, I CAN rename the file in the iTunes folder. But this does not help me. I find it funny that I can rename it, but I can't move it...

I am running OSX 10.6.5 with all the latest updates, and the latest version of iTunes as well. 10.1 I think? But I can't check because I can't get iTunes to open right now.

I have had this problem many times in the past. And I have gone as far as creating a whole new library, which takes FOREVER as I have nearly 120GB of music. And I lose all sorts of info... playlists, album art, etc. This is a real pain which I hope to avoid.

What gives me hope is that the last time this happened iTunes just spontaneously started working again. As if there were some sort of "timeout" issue. I have restarted multiple times of course, but still have not got a resolution this time. It would be nice if there were a simple "iTunes Library.itl.LOCK" file that I could delete.

Apple, would you please institute a crash recovery protocol for this issue? In all my reading and research, it seems like people are just sort of guessing at what is causing this problem, and coming up with a variety of different fixes that they think might work, or that occasionally work in given situations. But there seems to be no official word from anyone at Apple as far as a direct response to these library file locks caused by crashes.

Additionally, I feel that this may fall along the same lines as the lack of Time Machine support for networked drives. There is something sub optimal about Apple's networking. I don't know what it is. But there seems to be very little support for Apple users who use networked storage. Just to put my iTunes library on a NAS took a whole lot of reading and understanding to get done right, with no official help from Apple to be found anywhere. Not all mac users are dummies who need the simplest and most limited configuration options in order to avoid "problems". Networked storage is the future of home media and data backup. Please pay more attention to those of us who are trying to pave the way here.

Thanks for any help I might find here.
Macbook Pro, 2.4 Core 2 Duo, 8GB ram, Mac OS X (10.5.6), iTunes 10.1, network attached storage, NAS
  • ScuseMe Calculating status...
    Currently Being Moderated
    Dec 9, 2010 6:11 PM (in response to kinnybee)
    The only way I've been able to fix these locked iTunes library files (and I've had iTunes do this to me 3 times) was to boot with the SL DVD and run Disk Utility on the internal HD and repair it. I guarantee you'll have errors. But every time, DU fixed them for me without problems.

    Then boot back into OS X and open up iTunes. iTunes will say something about validating the library. But when it's done, you should be fine.
    24" iMac 3.06 GHz Core 2 Duo/1 TB/8 GB; MBP 17" Core 2 Duo/Santa Rosa, Mac OS X (10.6.5), Parallels v6 with Win7 x64; iPod Touch 2G; iPhone 3GS (4.2.1); iPhone 4 (4.2.1)
  • Diane Wordsmith Level 5 Level 5 (5,990 points)
    Currently Being Moderated
    Dec 9, 2010 6:30 PM (in response to kinnybee)
    Check permissions on the outermost iTunes folder and Apply to all Enclosed Items.
    MacBook Pro, Mac OS X (10.6.4), iTunes 9, iPod Touch 3g, iPod Video 5g (and an old iMac running OS 9)
  • cockbongo Calculating status...
    Currently Being Moderated
    Dec 21, 2010 1:15 AM (in response to kinnybee)
    I had exactly the same problem, but appear to have solved it

    Not sure what make/model NAS you have, but if it has an iTunes Server type service on it, turn it off. This won't delete your music folder, don't worry, but it will stop your NAS thinking it deserves exclusive access to the library files. Then reboot your NAS and voila, you can do what you like with the files.

    You can turn the iTunes service back on whenever you've finished doing what you need to do.

    Hope that helps.
    iMac 2009, Mac Mini 2010, Mac OS X (10.6.5)
  • ivanlee1957 Calculating status...
    Currently Being Moderated
    Jan 29, 2011 2:36 PM (in response to cockbongo)
    To OP.... yes I am exactly like you. Two computers, one library on a Time Capsule. Kernal panic on mac mini while itunes was running gave me your exact problem. Although I repaired permissions and made sure all files in all of itunes were the same permissions no go..... found this thread, made a minor tweak in airport utility so that NAS would restart and voila .... fixed.....

    -Lee
    MacPro and mac mini, Mac OS X (10.6.5), time capsule
  • Joshua McKinnon Calculating status...
    Currently Being Moderated
    Aug 25, 2011 6:33 PM (in response to ivanlee1957)

    The above solution also worked for me - that is - make a change in Airport Utiltity that forces the Airport Extreme (or Time Capsule) to restart. After that, iTunes starts up and can access my iTunes library fine.

  • Carl Hajduk Calculating status...
    Currently Being Moderated
    Nov 2, 2011 9:43 PM (in response to ivanlee1957)

    Had this same problem and your solution did the trick. Nice work!

  • TonyPee Calculating status...
    Currently Being Moderated
    Jan 22, 2012 6:26 AM (in response to kinnybee)

    Seems like re-starting does the trick whatever NAS is used, I use an Iomega IX-200. Thanks!

  • Temporizer Calculating status...
    Currently Being Moderated
    Nov 11, 2012 3:32 AM (in response to Joshua McKinnon)

    Worked perfectly! thanks!

  • ivanlee1957 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Dec 27, 2012 5:27 PM (in response to kinnybee)

    And now 18 months later it happened again and I didn't remember how to fix it...

     

    find this post ....

     

    And it is me telling me how to fix it :-) LOL...

     

    Worked with a Synology NAS too!

  • havinabubble Level 1 Level 1 (135 points)
    Currently Being Moderated
    Aug 30, 2013 2:48 AM (in response to cockbongo)

    CB many thanks!

     

    woke up today with the exact same problem... iMac locked up while playing a video podcast off my NAS

    (it was happily playing the audio even though the mouse was frozen)

     

    couldnt get permission control of my Library.itl so found your post,

    turned off the iTunes Server in my Synology (dont use it like that anyway) and rebooted the NAS.

     

    iTunes immediatley launched WITHOUT the lock, performed its repair check and up it came!

     

    THANK-YOU

     

    ...oddly I notice that I dont have permissions to ANY of my directorys/files,

    guess 'cause they are set in the Synology Shared Folder permissions?

     

    All are listed in the finder as:

    (unknown) R&W

    everyone NO ACCESS


     

    cockbongo wrote:

     

    I had exactly the same problem, but appear to have solved it

    Not sure what make/model NAS you have, but if it has an iTunes Server type service on it, turn it off. This won't delete your music folder, don't worry, but it will stop your NAS thinking it deserves exclusive access to the library files. Then reboot your NAS and voila, you can do what you like with the files.

    You can turn the iTunes service back on whenever you've finished doing what you need to do.

    Hope that helps.

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.