Missing iTunes Music Library.xml

Discussion in 'Mac Basics and Help' started by mersea, Dec 26, 2006.

  1. mersea macrumors regular

    Joined:
    Mar 28, 2005
    #1
    Its actually lost. I have no idea how my iTunes library is working, because I cannot find this file.

    I was trying to set up Corripio (a nice little app that downloads album art from the iTMS for those of us without a credit card and therefore account) and it asked me to locate my iTune Music Library.xml file, since it couldn't find it in the default Music/iTunes folder.

    I can't find it anywhere! I've changed my iTunes Music folder (the one with all the songs) to a shared folder, but I tried poking around in there to no avail. I even did a Spotlight search and the only .xml files that popped up where the 'iTunes 4 Library' found in the Previous iTunes Librarys folder...

    I can export a file, which I have done in means of a backup, because I'm wondering just how my iTunes is remembering all my playlists, etc. And yes, I've quit iTunes and restarted and it works normally.

    Thanks in advance for any help.
     
  2. PYR0M310N macrumors 6502a

    PYR0M310N

    Joined:
    Aug 29, 2006
    #2
    i had a quick look through the library to see if there are any files like that in there but i couldn't see any.
     
  3. mersea thread starter macrumors regular

    Joined:
    Mar 28, 2005
    #4
    Its not there!
     

    Attached Files:

  4. Lixivial macrumors 6502a

    Lixivial

    Joined:
    Jan 13, 2005
    Location:
    Between cats, dogs and wanderlust.
    #5
    I see that your iTunes Music folder is a shortcut, perhaps the original folder is residing in the same directory as your iTunes Music Library.xml.

    Find out where that iTunes Music Folder is residing and you may find your .xml file. You should be able to do this by right clicking on 'iTunes Music' and clicking 'Show original.' Also, you may be able to find it by opening Terminal.app and typing in

    Code:
    find / -name "iTunes Music Library.xml"
    You may have to preface it with a sudo, but it shouldn't be in a location where you have no permissions to access it. By the way, love the iBook icon. :)
     
  5. mersea thread starter macrumors regular

    Joined:
    Mar 28, 2005
    #6
    I know where the source to my library is, I placed it in a shared folder so other users could access it, and I've tried looking for it there...

    I just tried the Terminal command and all it came up with was a bunch of file paths with "permission denied", along with the backup I made.

    I tried typing it in with sudo, but.. all I got was another users iTunes file and again, my backup..

    This is really wierd...
     
  6. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #7
    With iTunes running, try

    lsof|grep 'iTunes Library'

    This will point you to the main library file, and with any luck the xml version will be right beside it in the same folder.
     
  7. mersea thread starter macrumors regular

    Joined:
    Mar 28, 2005
    #8
    It doesn't return any results :S It just thinks for a bit and then returns a new command line. I tried restarting iTunes but it didn't help.
     
  8. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #9
    That is odd.

    There is one other supported default location for the database files, and that is in the folder ~/Documents/iTunes/ Barring that spot, something plain old freaky is going on :D
     
  9. Lixivial macrumors 6502a

    Lixivial

    Joined:
    Jan 13, 2005
    Location:
    Between cats, dogs and wanderlust.
    #10
    The last thing I can contemplate it being, if it's not in ~/Documents/iTunes, is that when mersea made a backup, s/he moved it instead of copying it. Applications can be notified that a file's been moved and react accordingly (I just tested it with the file in question by moving it to my desktop, and iTunes launched without incident).

    It's easy to figure out, really, just copy it [the backup] to a flash disk or somewhere off the filesystem, delete the backup and see if iTunes comes up blank. Then, if it does, just restore it from the flash disk.

    Otherwise... quite odd.

    EDIT: Errr, I take that back, actually. It seems that, upon close, iTunes does recreate the xml file and I didn't actually move my iTunes Library file. Nevermind. :)
     
  10. mersea thread starter macrumors regular

    Joined:
    Mar 28, 2005
    #11
    Yah, plus I made the backup after I realized the file was missing because I was scared I'd lose all my playlists. I tried selected the backup I made in Corripio (the only reason I went looking for my .xml file) and it said that "The iTunes Library has been modified blah blah", so it wasn't really the .xml file used by iTunes.

    And yes, I did check ~/Documents/iTunes, it was one of the first locations recommended by the official Apple support docs...
     

Share This Page