Podcast Error Due to Permission Restrictions

Need help? Post your questions here.

Moderator: moderators

Podcast Error Due to Permission Restrictions

Postby johnmata » Tue Jan 24, 2017 10:31 pm

Hello,

How can I clear out this error? I have since changed the directory to one without permission restrictions. But the error remains. Please advise.


Exception java.lang.SecurityException
Message Access denied to file /var/music/Podcast/MSNBC Rachel Maddow (video)/pdv_maddow_netcast_m4v-01-23-2017-214122.m4v
Java version Oracle Corporation 1.7.0_95
Operating system Linux 4.4.0-59-generic
Server jetty-6.1.x
Memory Used 99 of 148 MB
Stack trace java.lang.SecurityException: Access denied to file /var/music/Podcast/MSNBC Rachel Maddow (video)/pdv_maddow_netcast_m4v-01-23-2017-214122.m4v
at net.sourceforge.subsonic.service.MediaFileService.getMediaFile(MediaFileService.java:101)
at net.sourceforge.subsonic.service.MediaFileService.getMediaFile(MediaFileService.java:82)
at net.sourceforge.subsonic.service.MediaFileService.getMediaFile(MediaFileService.java:149)
at net.sourceforge.subsonic.service.PodcastService.addMediaFileIdToEpisodes(PodcastService.java:258)
at net.sourceforge.subsonic.service.PodcastService.getNewestEpisodes(PodcastService.java:218)
at net.sourceforge.subsonic.controller.PodcastChannelsController.handleRequestInternal(PodcastChannelsController.java:74)
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.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:47)
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:59)
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)
johnmata
 
Posts: 9
Joined: Wed Jul 18, 2012 1:41 pm

Re: Podcast Error Due to Permission Restrictions

Postby toolman » Tue Jan 24, 2017 11:18 pm

Has the account that you're using to watch this video permissions to to convert videos?
See Log in with the account and check Settings >> Personal >> User is allowed to convert videos.

If that's ok you could check wether the account that's running the subsonic-service has full permissions on your media folders.
toolman
 
Posts: 538
Joined: Fri Dec 11, 2009 4:18 pm
Location: Netherlands

Re: Podcast Error Due to Permission Restrictions

Postby johnmata » Tue Jan 24, 2017 11:37 pm

Thank you for the prompt response.

I am in logged in as admin, so no option to select "user is allowed to convert videos". But I believe that admin has that permission. Right?

Initially I had Subsonic pointed at a directory that it did not have permission. That's what initiated the error (i think). So I changed the setting to a directory where permission is not an issue. But the error does not clear out or reset.
johnmata
 
Posts: 9
Joined: Wed Jul 18, 2012 1:41 pm

Re: Podcast Error Due to Permission Restrictions

Postby toolman » Wed Jan 25, 2017 12:15 am

Admin should indeed have all privileges to all mediafolders and to perform all actions.
Did you check If the account that's running the subsonic-service has full permissions (read / write) on your video folder(s)?
You could also create a new user and make sure that this user has privileges to convert video and run a test under that account.
If that's worling well, than there must be a problem with the admin-account.
toolman
 
Posts: 538
Joined: Fri Dec 11, 2009 4:18 pm
Location: Netherlands

Re: Podcast Error Due to Permission Restrictions

Postby johnmata » Wed Jan 25, 2017 12:37 am

Thanks for getting back.

Just tried your idea, added an account and checked the box. Alas, same issue.

Initially I had tried a folder in which permissions was a problem: /var/music/Podcast/

When I realized the issue, because of the error, I changed the "Save Podcast in" to point at the same directory in which I have all my music--which all plays without issues: /home/john/Dropbox/Music/Podcasts

Despite the change, however, it seems to be stuck on the first directory: Access denied to file /var/music/Podcast/MSNBC Rachel Maddow (video)/pdv_maddow_netcast_m4v-01-23-2017-214122.m4v
johnmata
 
Posts: 9
Joined: Wed Jul 18, 2012 1:41 pm

Re: Podcast Error Due to Permission Restrictions

Postby toolman » Wed Jan 25, 2017 6:39 am

Doesn't it appear that the permissions on the file itself are not correct?
Could you check that?
I have been searching for this error and the only thing which comes up what makes sense is this topic:
http://forum.subsonic.org/forum/viewtopic.php?f=2&t=16411&p=70279&hilit=Stack+trace+java.lang.SecurityException%3A+Access+denied+to+file#p70279
On the interwebs there's this :
http://forum.madsonic.org/viewtopic.php?f=30&t=857 which is about Madsonic, but since Madsonic is a fork of Subsonic it might help you.
It would be nice to know if either solution has worked for you, since this seems to be an issue that happens regularly.
toolman
 
Posts: 538
Joined: Fri Dec 11, 2009 4:18 pm
Location: Netherlands

Re: Podcast Error Due to Permission Restrictions

Postby johnmata » Wed Jan 25, 2017 2:20 pm

changed the permissions to full access, read, write. Still getting the error.

Bummer.

I will check out the links you provided...
johnmata
 
Posts: 9
Joined: Wed Jul 18, 2012 1:41 pm

Re: Podcast Error Due to Permission Restrictions

Postby johnmata » Wed Jan 25, 2017 2:24 pm

Tempted to uninstall and reinstall Subsonic...
johnmata
 
Posts: 9
Joined: Wed Jul 18, 2012 1:41 pm

Re: Podcast Error Due to Permission Restrictions

Postby johnmata » Thu Jan 26, 2017 6:30 pm

Tried the steps listed on the links provided. Result: still had problem. uninstalled Subsonic and reinstalled. Now I have even worse problem:

HTTP ERROR: 503

SERVICE_UNAVAILABLE
RequestURI=/login.view

Powered by jetty://

Will start a new string for new problem, for the sake of posterity.

John
johnmata
 
Posts: 9
Joined: Wed Jul 18, 2012 1:41 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 34 guests