Page 1 of 1

I'm getting "No media folders found." Linux server W7 client

PostPosted: Mon Jul 09, 2012 7:52 pm
by stevekinga
I am running Subsonic 4.6 on Fedora 16 linux 32-bit, all Fedora updates installed as of last week. My client is an up-to-date (that is, all windows updates applied) 64-bit Windows 7 Ultimate.

In /var/sysconfig/subsonic, the contents are:
SUBSONIC_ARGS="--https-port=4040 --port=0 --max-memory=150"

The client browsers are both IE 9 and Firefox 13.0.1.

The problem is that I get "No media folders found" when I try to use subsonic from W7. When I use it from the linux box or other linux boxes (even port-forwarded from other sites), it works fine. I looked in the subsonic logs and couldn't find anything there that showed a problem.

I'm not sure it matters, since I only allow access via the https port, but I have squid 3.2.0.16-1 on the server, running in "intercept" mode. Again, it works fine for all other traffic to the W7 box, so I don't think it's that.

I'm at a loss.

Re: I'm getting "No media folders found." Linux server W7 cl

PostPosted: Mon Jul 09, 2012 8:47 pm
by BKKKPewsey
As "No media found" is generated by the server, how can it work accessing from a linux client and not a windows client :?
Both are accessing (or should be) the same server and will receive and see the same results.
And what do you mean by "client" - the client in your case is simply a web browser.

:mrgreen:

Re: I'm getting "No media folders found." Linux server W7 cl

PostPosted: Mon Jul 09, 2012 9:17 pm
by stevekinga
Yes, the client machine is W7 and the client app is a browser. When I go to settings, it shows the right directory. Maybe it has something to do with differences in java?

Re: I'm getting "No media folders found." Linux server W7 cl

PostPosted: Mon Jul 09, 2012 9:41 pm
by BKKKPewsey
No the java version on the client is irrelevant - if you can see your media on one browser you will see it on all.
Have a look at your original post and re-read - its possible (very likely in fact) that there is some confusion here.
It is impossible for SS to show info eg your music to one browser and not another.
(IE8 being the exception :lol: )
Are you sure you have only one instance of SS running?
ps and before anybody questions what I have just written - yes I know it is possible but not in this case.

Re: I'm getting "No media folders found." Linux server W7 cl

PostPosted: Mon Jul 09, 2012 9:58 pm
by stevekinga
Only 1 instance of subsonic is running (verified via ps). To be specific, I can see the folders in 3 linux boxes: the one with subsonic as the server, one on the same lan, and 1 on a separate lan tunneled in. They all run the linux version of firefox 13.0.1.

Both IE 9 and Firefox 13.0.1 on the W7 Ultimate box don't work. However, I tried it on another W7 Ultimate box similarly configured and it worked. I'll reboot the problem machine and try again.

Re: I'm getting "No media folders found." Linux server W7 cl

PostPosted: Mon Jul 09, 2012 10:14 pm
by stevekinga
I rebooted, and it's even more weird. It still gets the error message, but also now lists the music. Lest you think I'm nuts, I'm attaching a screenshot of the IE window.

And when I try to play a song, I get this error:
Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.



Exception

java.lang.SecurityException



Message

Access denied to file /mnt/Music/Pink Floyd



Java version

Sun Microsystems Inc. 1.6.0_24



Operating system

Linux 3.4.2-1.fc16.i686.PAE



Server

jetty-6.1.x



Memory

Used 29 of 60 MB



Stack trace
java.lang.SecurityException: Access denied to file /mnt/Music/Pink Floyd
at net.sourceforge.subsonic.service.MusicFileService.getMusicFile(MusicFileService.java:68)
at net.sourceforge.subsonic.service.MusicFileService.getMusicFile(MusicFileService.java:85)
at net.sourceforge.subsonic.controller.MainController.handleRequestInternal(MainController.java:72)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:54)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:227)
at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:626)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

Re: I'm getting "No media folders found." Linux server W7 cl

PostPosted: Mon Jul 09, 2012 10:50 pm
by BKKKPewsey
Congratulations You Have Won the Prize

It would appear that you have managed to achieve the impossible :lol:

I really do not understand what is going on there. :?
With regard to "No media found" message have you cleared the browser cache as it may be remembering that.
With regard to java error - no idea :(
I will be as fascinated, as I am sure you will be, to find out

:mrgreen:

Re: I'm getting "No media folders found." Linux server W7 cl

PostPosted: Mon Jul 09, 2012 11:29 pm
by GJ51
Interesting problem whose solution eludes me as well.

Closely related, I installed the WAR version of SS on my MS Server 2012 RC test box and had everything up and running just dandy. Today I logged on and it can't read any of the media folders. I don't get any Java errors; it just won't read the folders. Undoubtedly a permissions issue, but I can't think of anything that I changed since last week that would have caused the problem. the Tomcat service has my logon credentials and should be able to access anything on the entire network.

Very strange indeed.

Re: I'm getting "No media folders found." Linux server W7 cl

PostPosted: Tue Jul 10, 2012 4:34 am
by stevekinga
The cache was a big part of it. I cleared the IE and FF caches and IE now works. FF now shows "No media folders found", but no folders are present like before. So, there must of been some stale cache items confusing both IE and FF, but now IE works but FF doesn't.

Re: I'm getting "No media folders found." Linux server W7 cl

PostPosted: Tue Jul 10, 2012 7:18 am
by GJ51
Mine turned out to be a dns issue - all fixed.

Re: I'm getting "No media folders found." Linux server W7 cl

PostPosted: Fri Jul 13, 2012 5:00 pm
by stevekinga
I removed my firefox profile and started a new one. What a pain after years of tabs, add-ons. Anyway, subsonic works again.