Bug 704 - getting many reports of the Rescan button failing to find new music
: getting many reports of the Rescan button failing to find new music
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 5.x or older
: All All
: P2 major with 1 vote (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-12-02 16:09 UTC by Kevin Pearsall
Modified: 2008-12-18 11:50 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Pearsall 2004-12-02 16:09:07 UTC
Getting many many reports of this.  Have been suggesting the wipe cache button
be used instead of rescan, however, I had not filed a bug yet since I still have
not been able to reproduce this problem.
Comment 1 KDF 2004-12-02 16:21:02 UTC
I've seen claims of this too, and to my mind it seems to be windows machines
that suffer from it (can't quite say which flavour).  I've never noticed
anything myself on any os, but then I'm not adding music at any incredible rate,
nor do I go very long between cache wipes thanks to so much code testing :)
Comment 2 Blackketter Dean 2004-12-03 12:06:33 UTC
I'd like to understand this for 5.4.1
Comment 3 Vidur Apparao 2004-12-04 16:35:48 UTC
Does anyone have a notion of whether this is with or without iTunes? I'm unable
to recreate the specific problem without iTunes on Windows XP SP 2. With iTunes,
the updates don't propagate until iTunes itself is made aware of the addition
(which, from what I know, needs to be done explicitly). Once the new
files/folders are added to iTunes, a rescan does seem to bring it into our database.

Another thought, in cases where the rescan doesn't work, are people using
Windows shortcuts?
Comment 4 Steve Bernard 2004-12-07 08:09:35 UTC
My setup is WinXP Pro SP2.  All of my music is on a single drive (F:\), and is
organized with individual albums in their own folder.  I do not organize the
albums under artist folders.  No iTunes and no shortcuts.

If I use the rescan button, the server goes through the motions like it's
recanning but never turns up the new files.  The other suggestion for adding new
files without a complete cache wipe is to browse the music folder.  This also
doesn't work for me.  Could the problems be related?
Comment 5 Vidur Apparao 2004-12-07 08:33:19 UTC
They could definitely be related. Some questions:
1) Are the new files within a new directory or an existing directory?
2) What type of files are they? What format? Do they have Digital Rights
Management associated with them?
3) Would it be possible for you to do a rescan with the --d_scan debug flag
turned on? If so, could you see if the scan gets to the containing directory and
post the relevant section of the debug output as an attachment to the bug?

Thanks.
Comment 6 Steve Bernard 2004-12-07 09:03:40 UTC
Okay, all of the songs in my collection are Ogg Vorbis files, so no DRM  I have
CDEX encode them and put them in a new folder on f:\.  The new folder bears the
name of the album, so the f:\ drive is never more than one directory deep.  New
files never go to an existing directory.

I'll a test rescan as soon as I get some time.
Comment 7 Steve Bernard 2004-12-07 18:16:45 UTC
Well, I'm afraid I don't have anything interesting to report from the recan.  
The log doesn't even mention the new folder.  It goes from the previous folder 
(F:\Boy Child. The Best Of) to the next folder (F:\Brian Eno's Taking Tiger 
Mountain By Strategy) while ignoring the folder in-between them (F:\Boys Don't 
Cry)

A full wipe and rescan did turn up the folder as expected.
Comment 8 Don Lagosz-Sinclair 2004-12-07 18:24:28 UTC
I have similar problems; running Win98SE, Slimserver 5.4.1.  I have about 30
albums ripped as 256KB MP3, one or two as FLAC, 80 or so as WAV.  I haven't had
a problem finding new music if I wipe cache, but Browse Music Folder doesn't
work before I've done so.

I thought Browse Music Folder once worked to find new music; come to think of
it,  that could have been before I began ripping to WAV.  Could that be a clue?

Unfortunately, I can't do any more testing because the C: drive on my server is
toast, and I may not stay with Win98 when I put things back together.
Comment 9 Steve Bernard 2004-12-08 08:42:47 UTC
This message came across the mailing list today:
http://article.gmane.org/gmane.music.equipment.slimdevices.general/19174/

I tested the criteria that the poster mentioned in his post and he's right on. 
First, I put an Ogg in "f:\zzzzzz" and did a rebuild and a Browse Music Folder
and it turned up nothing.  I put the 'zzzzzz' folder inside an already-indexed
folder (making it "F:\#1 Record\zzzzzz") and did a Browse Music Folder and there
it was.  After I browsed to the file and looked at its info, it appeared under
the regular Browse Artists view.

As a second test, I made a new "f:\zzzzzz" and put a file in that.  Browsing
didn't turn up anything so I altered the URL to browse to the file directly
(http://localhost:9000/browse.html?&dir=zzzzzz) and that turned up my new file
and folder.  However, even after browsing the file and having the song show up
in Browse Artists, I still couldn't see it under Browse Music Folder.

So, from what I'm looking at, rescan and browse won't pick up new folder that is
placed just inside the root of the music folder unless you force the HTML
interface to look there.
Comment 10 KDF 2004-12-08 12:42:52 UTC
I'm guessing you cant get a "last modified" number for a root directory.
To test this theory, you'd need to do Steve's test again using f:\music (or
similar) as the music folder (thus add f:\music\zzzzz, etc). If there is no
'last modified' tag on a root folder, then the server would have to always check
the audiodir directly.  This would get ugly in cases where users store a large
number of files/folders at the top level.
Comment 11 miguel.bugzilla 2004-12-14 11:41:57 UTC
Just in case it helps, I am seeing the same issue with a somewhat different 
setup.  I run a W2K server and the music folder is located at \\server\share.  
Included in the share is a shortcut to another \\server\share entry.  
Apparently, this problem exists with shared network folders as well as local.  
Manual Rescan never find new music.  Only Wipe Cache or Scheduled Rescans.
Comment 12 KDF 2004-12-14 12:41:09 UTC
I expect network shares are influenced by some level of caching.  We have that
problem at work where the particular server we use, in combination with win2k
caching settings causes us to have files locked from access for no reason.  I
expect win2k is stuck reporting the same modification date so that the server
has no way of knowing anything has changed.
Comment 13 Don Lagosz-Sinclair 2005-01-23 10:15:54 UTC
Regarding the distinction between adding a new folder under the main music
folder (e.g. new artist) as opposed to adding to an existing folder (e.g. a new
album for an existing artist), I must report that "Browse Music Folder" failed
to find an album for me in the latter case.  I previously had two Adrian Belew
albums; when I added a third, "Browse Music Folder" didn't find it, nor did the
scheduled nightly scan, which surprised me since I thought the scheduled scans
wiped the cache first.

This is Win98SE, though I had the same problem when I had SlimServer running on
my WinXP Home laptop (same music library).
Comment 14 Don Lagosz-Sinclair 2005-01-23 10:34:16 UTC
I just used the tip in Steve Barnard's comment #9 (entered the URL to browse the
new album directly) and sure enough, it found it and added the album to the list
under Browse Artists - but it's still not there under Browse Music Folder!  Even
more peculiar, the timestamp for slimserver.db hasn't changed (although the
server seems to save it every hour or so).
Comment 15 Don Lagosz-Sinclair 2005-01-25 06:19:38 UTC
I needed to wipe cache the other day, and as SlimServer was rescanning, I was
able to browse the music folder and find new items.  (Of course, since I'd like
to be able to browse to new items to *avoid* rescanning, this doesn't help
much.)  The performance was more than acceptable; I'm wondering why it was
deemed necessary to use the directory information stored in slimserver.db unless
a folder timestamp has changed (or so I've been told).  I suppose if I had a
thousand artists or so, this might be more of a problem, but one I'd be happy to
live with if it enabled Browse Music Folder to work as advertised.  Perhaps a
"Behavior" setting could be provided that determines whether Browse Music Folder
uses cached data?
Comment 16 Dan Sully 2005-03-01 15:17:28 UTC
Don, et al - have you had a chance to try the recent 6.0 nightlies?

The rescan logic has been improved quite a bit, and this bug should be fixed.
Comment 17 KDF 2005-03-02 00:25:51 UTC
*** Bug 585 has been marked as a duplicate of this bug. ***
Comment 18 KDF 2005-03-02 10:49:36 UTC
I just tried this out on Win2k.  create a dir and refresh music folder, the dir
shows up immediately. descending into it scanned the file I placed inside.
confirmed with d_info.
Comment 19 Dan Sully 2005-03-02 13:13:48 UTC
This has been fixed for 6.0
Comment 20 Chris Owens 2008-12-18 11:50:15 UTC
Routine bug db maintenance; removing old versions which cause confusion.  I apologize for the inconvenience.