Changed data folder and now Podcast error

Need help? Post your questions here.

Moderator: moderators

Changed data folder and now Podcast error

Postby ssaguiar » Thu Dec 31, 2015 1:45 pm

First congratulations for the excelente product.

I have installed it and was using a hard disk as my data holder (/mnt/sdc1), with the folders music, movies and Podcast.
I run out of space for that hd and changed to another one, in the same Linux machine (/mnt/sdb1/subsonic).

I moved all my data folders to new location and, in the settings page, changed the configurations accordantly, have made a "clean-up database" and a "Scan media folders now".
Now, most of my folders are not been updated in subsonic (for example, in the music there are less than 50% of the music's folder listed).

Also, my podcasts folder is not being scanned because, when I click on the Podcasts, in the main menu, I get this error:

"Exception java.lang.SecurityException
Message Access denied to file /mnt/sdc1/Podcast/Documentaries/p03cy24j.mp3"

But, as I told before, all my data folders were changed to the new location (/mnt/sdb1/subsonic) and all the configurations were changed (the music folder, the movies folder and the podcast folder now are configured in the new place), but still no luck to scan them.

I tried to erase the files subsonic.data and subsonic.backup and still the system does'nt find the files (in the old place - /mnt/sdc1 - everything was ok).
I tried to search the "/mnt/sdc1" in the database, but it's not listed in phpmyadmin.

So, can you help to find what is the error caused by?

Thanks
ssaguiar
 
Posts: 4
Joined: Thu Dec 31, 2015 1:26 pm

Re: Changed data folder and now Podcast error

Postby ssaguiar » Thu Dec 31, 2015 9:18 pm

I have done what is in this page:

https://wiki.cementhorizon.com/display/ ... c+database

Now, all my musics and movies are ok, but the podcasts are not.
I have edited the file subsonic.script and removed all references to the old hard disk (/mnt/sdc1), but the podcasts still doesn't work.
After that, I deleted all my podcast folder, but the error continues.

Can't re-insert my podcasts because the page (podcast) doesn't work.

The error is (remember, there is nothing more left in /mnt/sdc1):

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/sdc1/Podcast/Documentaries/p03cy24j.mp3
Java version Sun Microsystems Inc. 1.6.0_45
Operating system Linux 3.16.0-30-generic
Server jetty-6.1.x
Memory Used 66 of 99 MB
Stack trace java.lang.SecurityException: Access denied to file /mnt/sdc1/Podcast/Documentaries/p03cy24j.mp3
at net.sourceforge.subsonic.service.MediaFileService.getMediaFile(MediaFileService.java:100)
at net.sourceforge.subsonic.service.MediaFileService.getMediaFile(MediaFileService.java:81)
at net.sourceforge.subsonic.service.MediaFileService.getMediaFile(MediaFileService.java:141)
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:66)
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)
ssaguiar
 
Posts: 4
Joined: Thu Dec 31, 2015 1:26 pm

Re: Changed data folder and now Podcast error

Postby Exrace » Fri Jan 01, 2016 11:50 am

Check the owner and permissions of the dir and files.
When you moved files/dirs the permissions might have not been retained.
Exrace
 
Posts: 218
Joined: Thu Nov 11, 2010 5:02 am

Re: Changed data folder and now Podcast error

Postby ssaguiar » Sat Jan 02, 2016 7:46 pm

The permissions are ok, as far as I can see.
All videos and musics are ok (the folders and files are found and indexed).
I can play all musics and all movies.

The problem is only with the Podcasts.
Subsonic try to find something in the /mnt/sdc1 partition wich is all erased.
The new partition is /mnt/sdb1.
All configurations are pointing to the /mnt/sdb1 partition (the movies, the musics and the podcasts).

But the podcast error keeps going on and I can't add other podcasts (I have erased all).
ssaguiar
 
Posts: 4
Joined: Thu Dec 31, 2015 1:26 pm

Re: Changed data folder and now Podcast error

Postby ssaguiar » Sat Jan 02, 2016 8:05 pm

OK, I think I have solved it.

I have done this:

1 - umounted the /mnt/sdc1 partition;
2 - erased everything in it (removed all partitions and remake them, then saved using fdisk);
3 - created new filesystem (mkfs.ext4);
4 - edited /etc/fstab to change the sdc1 filesystem from vfat to ext4;
5 - remounted the /dev/sdc1;

Now it seems to work ok; (remember - I am using /mnt/sdb1 as my data partition, not /dev/sdc1 anymore);

Weird but solved.
ssaguiar
 
Posts: 4
Joined: Thu Dec 31, 2015 1:26 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests