Page 1 of 1

4.7.beta2 throws error 503 - access denied error

PostPosted: Thu Aug 02, 2012 9:20 pm
by Ashex
I upgraded from 4.6 to 4.7.beta2 and The web interface gives me an error 503 error. subsonic_sh.log shows this error when it starts:


2396 [main] ERROR org.mortbay.log - Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'podcastService' defined
in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Invocation of init method failed; nested exception is java.lang.SecurityException: Acces
s denied to file /media/Podcast/KEXP Song of the Day/a6476d51-9b48-42d2-9bef-4df23a2749b4.MP3:
java.lang.SecurityException: Access denied to file /media/Podcast/KEXP Song of the Day/a6476d51-9b48-42d2-9bef-4df23a2749b4.MP3
at net.sourceforge.subsonic.service.MediaFileService.getMediaFile(MediaFileService.java:96)
at net.sourceforge.subsonic.service.MediaFileService.getMediaFile(MediaFileService.java:76)
at net.sourceforge.subsonic.service.MediaFileService.getMediaFile(MediaFileService.java:137)
at net.sourceforge.subsonic.service.PodcastService.addMediaFileIdToEpisodes(PodcastService.java:213)
at net.sourceforge.subsonic.service.PodcastService.getEpisodes(PodcastService.java:184)
at net.sourceforge.subsonic.service.PodcastService.init(PodcastService.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)



I don't use the podcasts feature that much so I deleted the files in that directory since the permissions weren't uniform. Restarting subsonic did not fix this error though, I changed the permissions to 777 on the directory /media/Podcast with no change. Finally I just created that file path (blank with touch) and made sure the permissions were 777 and still the web interface shows an error 500.

Finally I stopped subsonic and renamed the db directory which allowed the web interface to start. What's causing this error and how I can I fix it? I would like to keep the original database.


Platform info

OS: Arch Linux i686

Re: 4.7.beta2 throws error 503 - access denied error

PostPosted: Thu Aug 02, 2012 10:12 pm
by BKKKPewsey
When you upgraded, the user account that the subsonic is running on reverts back to the default for your OS.
Make sure that SS has got read & write permissions for that folder.

:mrgreen:

Re: 4.7.beta2 throws error 503 - access denied error

PostPosted: Fri Aug 03, 2012 1:26 am
by Ashex
That's the first thing I did by setting permissions to 777 which is global read write. Even with that it is still throwing the access denied error :/