Bug 3402 - When Use iTunes is enabled, often no (or limited) content is seen
: When Use iTunes is enabled, often no (or limited) content is seen
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: iTunes
: 6.2.2
: All Other
: P1 blocker (vote)
: ---
Assigned To: Chris Owens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-08 16:52 UTC by Kevin Pearsall
Modified: 2009-09-08 09:11 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments
XML pref and db from TMID:3516 (3.18 MB, application/zip)
2006-05-11 12:05 UTC, Kevin Pearsall
Details
log from Dr. Archambault (160.70 KB, application/zip)
2006-05-16 12:33 UTC, Kevin Pearsall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Pearsall 2006-05-08 16:52:02 UTC
Known facts:
- I have never been able to reproduce this issue
- Most often occurs when library has been moved or is in multiple locations
- Sometimes SOME of the content shows up but not all of it
- Another symptom is that playlists sometimes come up blank
- Does not seem related to whether or not a Music Folder is specified in server settings
Comment 1 Kevin Pearsall 2006-05-08 16:53:19 UTC
Engineering:  Please provide a list of information for the support and/or QA team to gather.  Keep in mind that customers experiencing this problem are often irate and just want it to work, "not help us fix our product."
Comment 2 Dan Sully 2006-05-09 08:23:07 UTC
A copy of:

slimserversql.db
slimserver.pref
iTunes Music Library.xml

Examples of the content that isn't seen.
Comment 3 Kevin Pearsall 2006-05-11 12:05:57 UTC
Created attachment 1233 [details]
XML pref and db from TMID:3516
Comment 4 Kevin Pearsall 2006-05-11 12:07:00 UTC
Also, Reginald mentioned that specifically the playlist he was unable to see any content in was a playlist called "May 10".  (Re: TMID:3516)
Comment 5 Dan Evans 2006-05-11 12:53:12 UTC
from ticket 3444 ...

user upgraded to 6.2.2 and iTunes stopped seeing his entire library.  Tried:

* rescan.  no luck.
* removed db.  rescan.  no luck.

user added, "I forgot to say that my iTunes library is located in a separate Lacie hard disk with a firewire connection. iTunes, so far, read it very well."  So, tried:

* removed prefs.  specify XML location and music folder.  rescan.  FIXED!
Comment 6 Andy Grundman 2006-05-11 13:43:56 UTC
I don't see why Reginald's playlists are being ignored.  His XML file looks fine but his playlist_track table is completely empty.  A full --d_itunes output would be helpful but I guess someone will need to reproduce first.
Comment 7 Kevin Pearsall 2006-05-11 14:31:32 UTC
Subject: Re:  When Use iTunes is enabled, often no (or limited) content is seen

Getting output like that from Reginald would be very, very  
difficult.  Is it that important?

On May 11, 2006, at 1:43 PM, Slim Devices Bugzilla wrote:

> https://bugs-archive.lyrion.org/show_bug.cgi?id=3402
>
>
> andy@slimdevices.com changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------- 
> ------
>                  CC|                            |dan@slimdevices.com
>
>
>
>
> ------- Comment #6 from andy@slimdevices.com  2006-05-11 13:43 -------
> I don't see why Reginald's playlists are being ignored.  His XML  
> file looks
> fine but his playlist_track table is completely empty.  A full -- 
> d_itunes
> output would be helpful but I guess someone will need to reproduce  
> first.
>
>
>
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.

Comment 8 Kevin Pearsall 2006-05-16 12:33:59 UTC
Created attachment 1244 [details]
log from Dr. Archambault
Comment 9 Kevin Pearsall 2006-05-16 12:35:17 UTC
Got a log from him.  It was difficult.  Lots of file not found errors...  But he is seeing his files, with no music folder set AFAIK...
Comment 10 Andy Grundman 2006-05-16 13:14:29 UTC
Here's where I think the problem is:

if itunes_library_music_path is set, the file paths in the iTunes XML file are ignored and replaced with that value.  In Reginald's case, this led to an invalid path, since his music was in My Music\iTunes\iTunes Music\ not simply My Music\

The win32 installer seems to set an incorrect default value for this preference, which should actually probably be left blank.  Most users have iTunes on the same PC so it's not necessary to set the music_path pref.  I'll leave it for Dan to decide whether to change the installer or not.

To handle the problem another way, I'm going to change the iTunes plugin to fall back to not using the music_path pref if a file is not found there.  This way it will still try the full path from the XML file.
Comment 11 Andy Grundman 2006-05-16 13:58:47 UTC
Checked in a fix.  To test, enter a bogus path in itunes_library_music_path and verify all files and playlists are still present after a rescan.

http://svn.slimdevices.com/branches/BRANCH_6_3_x/server/Plugins/iTunes.pm?rev=7443&r1=7337&r2=7443
Comment 12 Chris Owens 2006-06-12 13:53:58 UTC
Andy, what is itunes_library_music_path?  Surely it's not an environment variable on a Windows system is it?
Comment 13 Andy Grundman 2006-06-12 14:02:38 UTC
No it's a pref in the prefs file, and corresponds to the Server Settings -> iTunes -> iTunes Music Folder setting.
Comment 14 Chris Owens 2006-06-14 17:01:40 UTC
Verified fixed in SlimServer Version: 6.3.0 - 7962 - Windows XP - EN - cp1252
Comment 15 Chris Owens 2006-06-27 14:21:03 UTC
This bug fix is now part of a released version, and so has been marked closed. If you are still experiencing this problem, please reopen the bug.