New to Ubuntu and Subsonic- "No music folders found"

Need help? Post your questions here.

Moderator: moderators

New to Ubuntu and Subsonic- "No music folders found"

Postby dangoody27 » Thu Feb 16, 2012 7:37 pm

Hello,

I'm new to Ubuntu and new to Subsonic. I set up a machine with 32 bit Ubuntu Server 11.10 and Subsonic 4.6.

No matter what combination I put in the music folders settings, I get the "no music folder" error. Just to make sure I'm not crazy, I set all this up on a Windows machine and it worked flawlessly.

I don't know if it is a permissions issue or what (I have done nothing to the Ubuntu install except what was needed for Subsonic).

Please help (trying to impress my boss!)

-Dan
dangoody27
 
Posts: 3
Joined: Thu Feb 16, 2012 4:51 pm

Re: New to Ubuntu and Subsonic- "No music folders found"

Postby dangoody27 » Thu Feb 16, 2012 8:06 pm

Update: Here is the error I'm receiving


Exception java.lang.SecurityException
Message Access denied to file /home/dgoodman
Java version Sun Microsystems Inc. 1.6.0_23
Operating system Linux 3.0.0-12-generic-pae
Server jetty-6.1.x
Memory Used 32 of 66 MB
Stack trace java.lang.SecurityException: Access denied to file /home/dgoodman
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.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
dangoody27
 
Posts: 3
Joined: Thu Feb 16, 2012 4:51 pm

Re: New to Ubuntu and Subsonic- "No music folders found"

Postby ytechie » Thu Feb 16, 2012 9:06 pm

Message Access denied to file /home/dgoodman


Bingo! There are two approaches to fix this problem. You can modify the permissions of the user's home directory (/home/dgoodman), or you can move the music to a more accessible location.

On my server, I store my media in /var/music. The folder's permissions are 755 and I am both the owner as well as the group. This allows me to separate my media from my personal files. Here's how to do this:

Login to your server.
Type "cd /var" and press enter.
Type "sudo mkdir music" and press enter.
If you're prompted for a password, enter it.
Type "sudo chown dgoodman:dgoodman music" and press enter.
Type "sudo chmod 755 music" and press enter.

Now it's time to move the music. We are going to copy it instead and remove it later to be safe.

The command is "sudo cp /home/dgoodman/* /var/music" assuming the only thing in the dgoodman folder is your music.

To remove the old files if the copy was successful, type the command "sudo rm -R /home/dgoodman/*".

Hope this helps! :D
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: New to Ubuntu and Subsonic- "No music folders found"

Postby dangoody27 » Fri Feb 17, 2012 4:02 pm

Outstanding! Thank you very much.

Now for my next issue! :mrgreen:

I have a Lacie Key USB thumb drive that I'm using to transfer music and movies from my Windows machine. Ubuntu is unable to mount the device because "it is not allowed." It's my understanding that USB drives should automatically mount. Could this be an issue with the key itself or do I need to change the permissions on it from root? Please let me know if there is some sort of log/file I can provide to help troubleshoot.
dangoody27
 
Posts: 3
Joined: Thu Feb 16, 2012 4:51 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 26 guests