Bug 10341 - "New Music" times out in browser
: "New Music" times out in browser
Status: CLOSED WORKSFORME
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 7.3.1
: PC Windows XP
: -- normal (vote)
: 7.3.3
Assigned To: Spies Steven
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-15 13:27 UTC by Jordan Hirsch
Modified: 2012-06-03 12:19 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
Snippet of server.log starting with when I clicked "new music" in the browser. (74.52 KB, text/plain)
2008-12-15 13:27 UTC, Jordan Hirsch
Details
server.log with recommended debug options (218.89 KB, text/plain)
2008-12-18 07:53 UTC, Jordan Hirsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan Hirsch 2008-12-15 13:27:56 UTC
Created attachment 4447 [details]
Snippet of server.log starting with when I clicked "new music" in the browser.

I am using version 7.3.1 rev 24298 on a Windows XP (SP 2) box.  When I click on "New Music" in the web interface, the browser eventually times out.  If I navigate to "New Music" via the Squeezebox, it takes a very long (2-3 minutes) and then finally shows me the list correctly.
Comment 1 James Richardson 2008-12-15 13:57:53 UTC

*** This bug has been marked as a duplicate of bug 10340 ***
Comment 2 Jordan Hirsch 2008-12-15 14:02:26 UTC
Please see my comment in Bug 10340 - I don't think these are actually duplicate bugs, as the behavior and log files are different.
Comment 3 James Richardson 2008-12-16 08:05:11 UTC
I'm not able to reproduce this error

What browser are you using
do you have cookies enabled or blocked
Comment 4 Jordan Hirsch 2008-12-16 08:28:47 UTC
I have seen the timeout with Google Chrome 1, Firefox 3, and Internet Explorer 7 with cookies enabled on all three.  In Google Chrome, the page returns a timeout error.  In Firefox, the "new music" page eventually loads, but it is blank - just the background, no text.  In IE, the menu simply loads again, and I am never taken to the "new music" page at all.

The underlying error is the length of time it's taking to construct the list - it still takes a very long time through the Squeezebox itself, but that time is just exceeding the browser's limit to wait for a page to load.  I did not experience this problem with 7.2.1.
Comment 5 Jordan Hirsch 2008-12-16 08:37:38 UTC
EDIT:  IE does eventually return a timeout page error after reloading the menu page several times.
Comment 6 James Richardson 2008-12-16 09:21:15 UTC
Is the music directory is on the same XP Box running SC or a remote location?
Comment 7 Jordan Hirsch 2008-12-16 09:28:21 UTC
My music folder is on an Infrant Readynas NV box - both the NAS and the XP machine are wired to the router (the Squeezebox is wireless).  Don't know if this is helpful, but here's some more library statistics and info:

6538 albums with 65702 songs by	2823 artists.
Version: 7.3.1 - 24298 @ Mon Dec 15 03:04:28 PST 2008
Operating system: Windows XP - EN - cp1252
Platform Architecture: 586
Perl Version: 5.8.8 - MSWin32-x86-multi-thread
MySQL Version: 5.0.22-community-nt


Comment 8 Jordan Hirsch 2008-12-16 09:28:48 UTC
Just to clarify:  Squeezecenter is running on the XP box, not the NAS.  The NAS is only being used to store the music files.
Comment 9 James Richardson 2008-12-16 10:36:02 UTC
Steven: can you take this one please
Comment 10 Spies Steven 2008-12-17 09:37:25 UTC
I have not been able to reproduce this issue either.  This was using Win XP and a slow NAS on the network as the music source.

Jordan, have you tried a "Clear library and rescan everything" since you have installed 7.3.1?

Michael, do you see anything in the log?
Comment 11 Jordan Hirsch 2008-12-17 09:41:43 UTC
Yes, doing a clear & rescan in 7.3.1 gave me a scanner error (which I submitted as 10304 and was marked as a duplicate of 9970).  A subsequent rescan gets all the way through, but this error persists.  I could try again if you think it will help.
Comment 12 Michael Herger 2008-12-17 13:28:51 UTC
Did you wipe the server side template cache?

Too much unrelated noise in the server.log. I'm not even sure whether SC was crashing or shut down properly...
Comment 13 Jordan Hirsch 2008-12-17 13:32:53 UTC
(In reply to comment #12)
> Did you wipe the server side template cache?
> 
> Too much unrelated noise in the server.log. I'm not even sure whether SC was
> crashing or shut down properly...
> 

Michael,

I'm happy to wipe the logs (not sure how to wipe the server-side template cache...?) and do this again.  Could you please tell me which debug options would be useful for you to see?  I went overboard and turned on most of them as I had no idea where to begin debugging this.

Thanks.
Comment 14 Michael Herger 2008-12-18 00:25:33 UTC
Jordan - make sure you wipe the templates cache (not the logs).
Comment 15 Jordan Hirsch 2008-12-18 05:09:54 UTC
(In reply to comment #14)
> Jordan - make sure you wipe the templates cache (not the logs).
> 

Michael,

As I said in my previous comment, I'm not sure what that entails (wiping the template cache) - what do I delete?  Is this something I do through the web interface?

My comment about wiping the logs was because you said there was too much noise in the logs - I wondered if you wanted me to enable some different logging settings before trying again.
Comment 16 Michael Herger 2008-12-18 05:19:13 UTC
In SC's cache folder (see Settings/Information) there should be a "templates" folder. Delete it and restart SC.
Comment 17 Jordan Hirsch 2008-12-18 07:22:47 UTC
Ah - very simple, I should have realized that.  Thanks for clarifying.  I deleted that folder and restarted Squeezecenter.  I can see the folder got recreated and there are files in it, but for some reason now the web interface never loads.  I don't see anything in the server.log file (I also didn't have any logging options set when I restarted Squeezecenter).  But now I can't get the web interface to come back up for me.

Is there a way to turn on some debug options from the command line?  That way I can at least get the server running again so I can test out the "New Music" issue.
Comment 18 Michael Herger 2008-12-18 07:34:18 UTC
run 

squeezecenter.exe --debug server=debug,network.http=debug

from the command window
Comment 19 Jordan Hirsch 2008-12-18 07:52:45 UTC
I started Squeezecenter using the debug options you gave me from the command-line.  I still couldn't load it up through Google Chrome, so I abandoned that and tried IE 7.  IE opened the interface immediately, so I think maybe Chrome was just having an issue.  I clicked on "New Music" and eventually got a page timeout error in IE (the standard "Internet Explorer cannot display the webpage" error).

I'll upload a new log file from this sequence.

Thanks for your help.
Comment 20 Jordan Hirsch 2008-12-18 07:53:18 UTC
Created attachment 4472 [details]
server.log with recommended debug options
Comment 21 Jordan Hirsch 2008-12-20 07:31:22 UTC
Not sure if it's related, but I get the same timeout when using the Custom Browse extension's "genre/subenre" menu functionality:

This webpage is not available.

The webpage at http://localhost:9000/plugins/CustomBrowse/custombrowse_list.html?player=00%3A04%3A20%3A06%3A4b%3A58&&hierarchy=subgenres,genre&subgenres=subgenres&genre=15 might be temporarily down or it may have moved permanently to a new web address.
Comment 22 Michael Herger 2008-12-28 10:17:19 UTC
Jordan - please disable all 3rd party plugins and try again. Can you still reproduce this issue?

Nobody is able to reproduce this? 
Comment 23 Jordan Hirsch 2008-12-28 10:38:18 UTC
(In reply to comment #22)
> Jordan - please disable all 3rd party plugins and try again. Can you still
> reproduce this issue?

I disabled all plugins on the plugins page (3rd party as well as all the ones that shipped with Squeezecenter) and tried again.  Exact same result.  "New Music" still times out in the browser, and takes several minutes to respond via the Squeezebox.

Thank you.
Comment 24 Jordan Hirsch 2008-12-29 07:47:32 UTC
Last week I tried reinstalling 7.2.1 and verified that this problem did not occur.  When I went back up to 7.3.1 the problem came back.
Comment 25 Spies Steven 2009-01-08 14:56:30 UTC
Moving to 7.3.3
Comment 26 Jordan Hirsch 2009-03-10 05:53:17 UTC
Just checking in on this bug.  I upgraded yesterday to 7.3.3-25411 and verified that this is definitely still happening.
Comment 27 Jordan Hirsch 2009-03-11 19:11:36 UTC
Just upgraded to 7.4 - 25481, and this appears to be fixed.  It still takes longer than I'd expect - about 8-10 seconds - to load up the New Music page, but it definitely loads and the browser does not time out.  Thank you.
Comment 28 Moonbase 2009-03-16 06:31:41 UTC
SC7.4-25502/Win: Takes > 30s to load "New Music" on WebUI (library ~26k files) but no "blank page" anymore. (Currently using "bad" testing setup: my.tt is patched, plus Erland's CustomScan and CustomBrowse are installed.)

I remotely remember I had the "empty page in SC" bug once or twice with an older version, weeks ago.
Comment 29 James Richardson 2012-02-27 17:33:15 UTC
Closing resolved bugs - if you feel this bug still exists please first re-test
with the latest SW/FW version.  If you are able to reproduce then feel free to
reopen and attach new logs / steps to reproduce.