Bug 9704 - Scan status sometimes not updated
: Scan status sometimes not updated
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 7.3.0
: PC Windows XP
: -- normal with 5 votes (vote)
: Investigating
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-13 09:08 UTC by Jim McAtee
Modified: 2011-08-28 22:20 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments
this message? (64.52 KB, image/jpeg)
2008-11-05 15:36 UTC, James Richardson
Details
update more often, cache less aggressively (23.47 KB, application/x-javascript)
2008-11-18 05:33 UTC, Michael Herger
Details
firebug screen capture (61.80 KB, image/jpeg)
2008-12-14 03:37 UTC, Jim McAtee
Details
image (118.76 KB, image/jpeg)
2011-08-20 11:28 UTC, jan.mortensen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim McAtee 2008-10-13 09:08:30 UTC
I've noticed that the line in the main window showing "Scan in progress..." (or whatever the exact wording) often isn't updated following a scan and requires refreshing the entire page to clear the message.  It appears to update progress during the scan fairly well, but never shows completion of the scan.

Firefox 3.0x on Windows XP Pro.
Comment 1 Chris Owens 2008-10-13 10:02:15 UTC
QA to check this out.  Michael notes that at the end of the scan the message should disappear, but that's the only indication the scan is completed.
Comment 2 Jim McAtee 2008-10-13 16:24:37 UTC
Ok.  I wasn't sure if it displayed a 'completed' message or just cleared itself.  In that case, the bug is that it's not always cleared.  Today I came back to my work PC and found the "scanning..." message in a browser window that was left open.  The scan must have run some time over the weekend.
Comment 3 Michael Herger 2008-10-14 03:42:12 UTC
Does the scanner finish the scan, or did it crash? Also: if you have a chance to install Firebug, I'd be interested to know what the "serverstatus" query returns when the message is still displayed.
Comment 4 Jim McAtee 2008-10-14 10:00:21 UTC
I've never checked the logs, but I'm pretty certain that the scans always complete.  No evidence suggests otherwise - the library is complete and all artwork appears correctly.
Comment 5 James Richardson 2008-11-05 12:16:36 UTC
Jim: what browser were you using?  I have seen this on IE 6 because it doesn't auto-refresh.
Comment 6 Jim McAtee 2008-11-05 12:25:29 UTC
Firefox 3.0.  I'm still seeing this in the latest 7.3 revs.  I schedule a scan to run every night and if I leave a browser tab open to the SC web interface it always shows the "scanning..." message in the morning.

I haven't checked "serverstatus" yet.
Comment 7 James Richardson 2008-11-05 15:36:39 UTC
Created attachment 4202 [details]
this message?

your talking about the 'scanning..' message at the bottom of the browser window, right?  see attached image
Comment 8 Jim McAtee 2008-11-05 15:44:47 UTC
> the 'scanning..' message at the bottom of the browser window, right?

Yes
Comment 9 James Richardson 2008-11-05 15:48:16 UTC
Michael: your comments?
Comment 10 Michael Herger 2008-11-05 23:55:24 UTC
James - what's that "Error on page" about (bottom left)? 

Jim - could you please (temporarily) install Firebug and see what error you get?
Comment 11 James Richardson 2008-11-11 11:02:30 UTC
Michael: this was with IE 7, not firefox.  IE shows the following for the error on page:

Line: 33
Char: 3080
Error: Number expected
Code: 0
URL: http://127.0.0.1:9000
Comment 12 Michael Herger 2008-11-11 14:28:23 UTC
James - if you can reliably reproduce this issue, could you please try the following:

- open HTML/Default/cmdwrapper_Default in a text editor (somethin better than Notepad)
- set the [% debug = 0 %] value to [% debug = 1 %]
- fully reload SC
- do whatever you need to do to see the error
- what's the error message now?

I'm asking for this as the "line 33 char 3080" won't help an awful lot. That's obfuscated JS code, and looking at position 3080 is painful. Setting debug to 1 will load the uncompressed files which will give much more readable data. Thanks!

Comment 13 Michael Herger 2008-11-12 02:10:54 UTC
Still can't reproduce this issue here. Won't be able to fix this in 7.3 unless somebody comes up with some idiot proof way to reproduce.
Comment 14 Michael Herger 2008-11-18 05:33:43 UTC
Created attachment 4290 [details]
update more often, cache less aggressively

Could you please replace HTML/EN/html/SqueezeJS/Base.js with this file, clear all caches and try again? Do you still see the missed update?
Comment 15 Michael Herger 2008-12-12 01:43:55 UTC
Jim - did you test this change?
Comment 16 Jim McAtee 2008-12-13 18:07:56 UTC
Sorry, Michael.  I haven't.  I am still seeing the problem occasionally in recent revs of 7.3 Trunk.

Also, I don't think I'll be able to provide any help from within Firebug.  Although I have it installed, I can't leave it enabled for SqueezeCenter browsing or it slows the interface to a crawl.  If I happen to notice the message and then try to enable Firebug, it reloads the page and the message disappears.

The other day for the first time I was also seeing the similar message that appears at the top of the browse pane, where it says "Note: SqueezeCenter is still scanning your music library, so some items may not appear in this area yet."  While the "Rescanning Music Library..." message at the bottom of the pane always clears as soon as I either refresh or navigate to another page in the browse pane, this message at the top remained while I browsed a few pages, then finally went away.  This occurred some 8-10 hours after my scheduled nightly scan had completed.
Comment 17 Jim McAtee 2008-12-14 03:37:11 UTC
Created attachment 4442 [details]
firebug screen capture

I managed to catch it with Firebug running.  Michael, is this what you were looking for - a watch of the expression 'serverstatus'?  There were no JS errors that I could tell.
Comment 18 Michael Herger 2008-12-15 02:06:16 UTC
Jim - if you haven't applied the patch, I'd expect you to still see the issue, as nothing has changed. Did you try the patch?
Comment 19 Jim McAtee 2008-12-15 06:20:44 UTC
I'm running with it now.  See what happens...

Comment 20 jan.mortensen 2011-08-20 11:13:57 UTC
I am now seeing this on both my home server(win32) and at work(win64);
In both places I use IE9.


The main web page states: "Rescanning Music Library... Gem coverbilleder i cachelager (1 of 708)"

Hmm btw SBS is setup to English, but the artwork part above is in Danish!?

Not sure if the following is an error, as I normally go to the Information page after starting a scan:
The Basic settings page remains on "Scanning - View progress" and disabled combobox. But is updated if going to Information page and back.
Comment 21 jan.mortensen 2011-08-20 11:28:17 UTC
Created attachment 7411 [details]
image

screenshot of main web after a Clear and scan.
Besides not updating after scan completed, the information showned is part English , part Danish.
SBS setting is English
Comment 22 Michael Herger 2011-08-22 01:06:43 UTC
Jan - are you seeing bug 17478 too?
Comment 23 jan.mortensen 2011-08-22 04:20:52 UTC
(In reply to comment #22)
> Jan - are you seeing bug 17478 too?

No I have not seen 17478 yet ;-)
Comment 24 Mike Walsh 2011-08-22 11:07:18 UTC
just fyi, this issue seems similar to an old issue that at the time was fixed, so maybe there is some useful info there:

bug 9037
Comment 25 Michael Herger 2011-08-24 00:52:40 UTC
Are you still seeing this with the latest 7.6.2 nightlies?
Comment 26 jan.mortensen 2011-08-24 01:15:16 UTC
Running 33148

Main web page is updating now

The other issues that I mentioned in comment 20 is still there.

Most importantly the part about the scanning messages being mixed languages e.g. "Rescanning Music Library... Gem coverbilleder i cachelager (1 of 708)"

Through all the scanning phases the first half in English, the second half in Danish
SBS is setup for English and my Windows locale is Danish

Win 32/64 IE9
Comment 27 Michael Herger 2011-08-25 07:49:56 UTC
Jan - could you please open a new bug for the language issue? Thanks!
Comment 28 Michael Herger 2011-08-28 22:20:46 UTC
*** Bug 17508 has been marked as a duplicate of this bug. ***