iTunes can read library but cannot locate files.

Greetings,


Seeking to continue this thread:


iTunes can't locate my music files - Apple Community


but it's locked and I cannot reply there.


I've been battling to get iTunes back up and running from a backup drive ever since my primary external harddrive died. I'm to the point where iTunes seems to have my "library," that is, when I open iTunes, all of my podcasts and songs are there. However, when try to I play one, I get the "cannot locate" message. After I manually locate the file, iTunes recognizes it. However, telling iTunes to use that file's location to locate other files is not working. I've set the default folder in Preferences, but it's not working.


Following the specifications that TuringTest2 laid out in his reply on the previous thread (linked above), here's an example file:


  1. Default folder in Preferences:

H:\iTunes\iTunes Media

2. Example of missing file location based on "Song Info":

file://localhost/J:/iTunes Media Main/Music/Far Beyond Frail/A Girl, Almost.._/04 Ever Since You 1.m4a

3. True path of the file above:

H:\iTunes\iTunes Media\Music\Far Beyond Frail\A Girl, Almost.._


Any insight would be much appreciated. The prospect of manually locating thousands of files one at a time is not appealing.


Thank you for your time.


-J

Windows, Windows 10

Posted on Jan 21, 2024 3:50 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 22, 2024 5:28 AM

jcyr2016 wrote:

1. Default folder in Preferences:
H:\iTunes\iTunes Media
2. Example of missing file location based on "Song Info":
file://localhost/J:/iTunes Media Main/Music/Far Beyond Frail/A Girl, Almost.._/04 Ever Since You 1.m4a
3. True path of the file above:
H:\iTunes\iTunes Media\Music\Far Beyond Frail\A Girl, Almost.._


Hi there,


Reassign the drive letters so that drive H: becomes drive J:

Move and then rename the folder J:\iTunes\iTunes Media to J:\iTunes Media Main


If you now start iTunes it should be able to locate media on the stored paths. Ideally you would then rearrange things into the more normal ...\iTunes\iTunes Media layout, but lets do one thing at a time. Assuming the advice I've given so far has done the trick the next detail I need would be the location of your active .itl file.


tt2

Similar questions

11 replies
Question marked as Top-ranking reply

Jan 22, 2024 5:28 AM in response to jcyr2016

jcyr2016 wrote:

1. Default folder in Preferences:
H:\iTunes\iTunes Media
2. Example of missing file location based on "Song Info":
file://localhost/J:/iTunes Media Main/Music/Far Beyond Frail/A Girl, Almost.._/04 Ever Since You 1.m4a
3. True path of the file above:
H:\iTunes\iTunes Media\Music\Far Beyond Frail\A Girl, Almost.._


Hi there,


Reassign the drive letters so that drive H: becomes drive J:

Move and then rename the folder J:\iTunes\iTunes Media to J:\iTunes Media Main


If you now start iTunes it should be able to locate media on the stored paths. Ideally you would then rearrange things into the more normal ...\iTunes\iTunes Media layout, but lets do one thing at a time. Assuming the advice I've given so far has done the trick the next detail I need would be the location of your active .itl file.


tt2

Jan 26, 2024 7:30 AM in response to jcyr2016

Well given that things now seem to be in the right location it may be time to try this section of the original post...


...as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works. It might need some tweaking if your media is in a non-standard layout.


tt2

Jan 22, 2024 1:07 AM in response to jcyr2016

The "use that file's location" option only finds files in the same folder. For example, if a complete album is missing, once you tell iTunes to use a specific folder for one track on the album, the option to use that file's location does just that: it uses that folder and will find the remaining tracks for that album (assuming that is where they are, which it should be). Therefore, it won't find any files for other songs, that are in other folders.


The Preferences setting tells iTunes where to put files ripped from a CD. It will not solve your current issue.


In the discussion that you looked at, turingtest2's associated tip helps locate the complete library by using the .itl file that iTunes uses to remember where each file is located. So ideally, what you need to do is look for the .itl file for your library. Here's a screenshot, showing the .itl file for my Library, which is on my D\drive:



Note the location: it's probably in the iTunes\Previous iTunes Libraries\... folder. There may be more than one copy, so look at the Date modified (mine is in UK format, so 20/01/2024 is the 20th January 2024) and use the most recent one. Ignore the date shown in the filename (iTunes Library 2011-11-16, look instead for the Date modified).


Hopefully, your backup not only has your most recent additions and changes, but also the .itl file.


Once you know the location of that .itl file, open iTunes while holding down the SHIFT key on you PC. Hold the key down until iTunes shows you a message panel, with an option to Choose Library...:

Take the Choose Library option and navigate to the .itl file that you are going to use.



Jan 22, 2024 6:23 PM in response to turingtest2

Thank you both for the responses.


I started with the renaming the drive approach. The drive is now named J: and the folder that was J:\iTunes\iTunes Media is now located at J:\iTunes Media Main.


However, the "could not be found" error message persists.


Here is my .itl file location: J:\iTunes. Note that this is the drive that was H: a few minutes ago. I have not moved the .itl file, i.e. the library was in H:\iTunes, and the media folder was at H:\iTunes\Tunes Media until a few minutes ago.


Thoughts?


Thank you again.


-J

Jan 23, 2024 5:53 PM in response to turingtest2

Thank you for your response. Three details:


1. Default folder in Preferences:

J:\iTunes\iTunes Media

Note: I keep setting this to J:\iTunes Media Main, but it keeps reverting.


2. Example of missing file location based on "Song Info":

file://localhost/J:/iTunes/iTunes Media/Music/Adele/25/04 When We Were Young 1.m4a


3. True path of the file above:

J:\iTunes Media Main\Music\ADELE\25


Thank you.


-J

Jan 25, 2024 7:20 PM in response to turingtest2

Moved and renamed.


The three details--default folder, "song info" location, and actual location--all seem to align now. They all go J:/iTunes/iTunes Media... (although the song info one starts with file://localhost/ of course).


Aaaaand...the problem persists. I've tried restarting iTunes multiple times, manually locating a couple songs, restarting again, restarting the computer, hoping iTunes catches on. Still no go. It remembers those few songs I've manually located, but everything else in the library returns "could not be found" until I manually find it.

Jan 26, 2024 6:26 PM in response to turingtest2

Thank you very much!


The interface for the version of your program that you linked to is quite different from the diagrams in the other post (Any software that can rebuild iTunes song… - Apple Community). However, it seemed to work on a few songs. May I presume to try and run it on "automatic" and hope it recovers the rest?


(Sidenote: does it do podcast files, or only songs?)


Thanks again.


-J


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iTunes can read library but cannot locate files.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.