• On BNET: Apple Nixes Nudes in Playboy iPad
advertisement
July 25, 2008 12:20 PM PDT

iTunes cannot locate music files, fixes

by CNET staff

Some iTunes users have found that the application loses track of songs. When the issue manifests, any attempts to play some songs are met with error messages indicating that iTunes cannot find a specified file.

As described by Apple Discussions poster mariner9mike:

"It appears all my songs have lost the path to their music files. The error message says "cannot find the original file do you want to locate it?" When I look in the Music folder they appear in the artist's folder but still will not play."

When this happens, iTunes may display an exclamation point next to the song in the iTunes window. This problem can occur for a variety of reasons, including corrupt iTunes libraries and relocated song files.

Fixes

Ensure iTunes' directory structure is properly set up In the iTunes folder there should be several folders and files:

  • Folder: "iTunes Music"
  • Folder: "Album Artwork"
  • Folder: "Previous iTunes Libraries"
  • File: "iTunes Library"
  • File: "iTunes Music Library.xml"

Ensure these files and folders exist, and are appropriately named. Ensure the iTunes library is properly located by going to the "Advanced" section of the iTunes preferences and selecting the "Importing" tab. Then select "change" and locate your "iTunes Music" folder in the resulting window. If the iTunes Music folder should be in the default location in the user's "Music" directory, clicking the "Reset" button should correct any path errors for the library.

Manually reimport the "lost" files In the Finder, locate the songs that will not play and manually drag them into the iTunes window to reimport them. If there are any warning signs about duplicate files, click "OK" to go forward with the import and the file should play. Alternatively, before doing the import users can remove the song in iTunes to ensure there are no duplicate entries to mess around with afterwards.

Rebuild the entire iTunes library Depending on the extent of the problem, it may be easier to remove all songs from the library and reimport them. To do this, select all of the songs in iTunes and press the delete key. Then choose the option to keep all the song files themselves, and when the iTunes window is empty open the "iTunes Music" directory and select all items in that directory. Drag them to the iTunes window and confirm the import. The process can be fairly lengthy.

Prevention Song accessibility problems are more likely to occur if songs are scattered throughout the system. This can be resolved by having iTunes copy all files to the iTunes library and keep them organized there.

In the iTunes preferences go to the "Advanced" section and click the "Importing" tab. Then ensure the option to "copy files to iTunes music folder..." is checked. This will help keep files from inadvertently being moved or having their paths renamed in other locations on the drive, which could result in this problem. In Addition, after importing all files, go to the "Advanced" menu and select "Consolidate Library", which will copy all files to the iTunes Music folder, ensuring they are in the same location on the drive.

Feedback? Late-breakers@macfixit.com.

Resources

  • mariner9mike
  • Late-breakers@macfixit.com
  • More from Late-Breakers
  • Recent posts from MacFixIt
    iTunes 10 user interface sees some minor changes
    Apple seeds iOS 4.1 Gold Master to developers
    Possible fix for Harman Kardon iSub problems with PowerPC Macs
    Precautions to take before installing iTunes 10
    A reminder on how to reset your Mac's system password
    Mail messages appearing blank
    Adobe Lightroom update brings direct Facebook publishing; Camera Raw 6.2 released
    Weekly troubleshooting utilities update
    Add a Comment (Log in or register) (6 Comments)
    • prev
    • next
    by macmikey2 July 27, 2008 4:59 AM PDT
    Just a correction, it is the Advanced - GENERAL tab, not Importing for checking and correcting iTunes library location.

    Mike
    Reply to this comment
    by video indir July 27, 2008 11:42 AM PDT
    <a href="http://www.jupla.com/">video indir</a>
    <a href="http://www.jupla.com/">komik videolar</a>
    <a href="http://www.jupla.com/">izle</a>
    <a href="http://www.jupla.com/">video izle</a>
    Reply to this comment
    by macprs July 27, 2008 3:47 PM PDT
    I've had a similar problem - the files aren't exactly lost, the file name in iTunes has become associated with a data file or application on the computer's main drive (all of my encoded music is stored on an external firewire drive). The problem shows up when I attempt to sync a playlist with an iPod. A dialog box appears at the end of syncing listing tracks that cannot be synced for some reason. Playlists that had previously synced without problem will begin reporting track problems. The only solution so far is to delete the bad track and add it back to the playlist. Has anyone else been experiencing this type of problem?
    Reply to this comment
    by mike67--2008 July 27, 2008 3:47 PM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by macprs</i></div></class><br />
    Yup, had exactly the same problem and had to reimport everything before it would work

    Luckily I had the storage space, would have had a massive jpb to do re-linking the files otherwise
    Reply to this comment
    by MacFixItUser July 29, 2008 9:25 PM PDT
    Have had this prob for a week; in addition, iTunes wouldn't let me add to my shopping cart (or buy).

    A possibly related bug: Software Update refused to dl files.

    FIX: ran Disk Warrior. Whatever it's doing*, it's brilliant, and has saved my bacon many times.

    * Industrial-strength directory repair/rebuilding.
    Reply to this comment
    by Theatre250 November 18, 2009 2:22 AM PST
    I have duplicates in itunes with different "date added." Which one shall i delete..the oldest or new?
    Reply to this comment
    (6 Comments)
    • prev
    • next
    advertisement

    About MacFixIt

    MacFixIt is CNET's troubleshooting resource for all things Mac. The information here helps you navigate the ins-and-outs of Mac ownership with how-tos, troubleshooting information, news, reviews, and more.

    Add this feed to your online news reader