4.7.beta2 throws error 503 - access denied error

Need help? Post your questions here.

Moderator: moderators

4.7.beta2 throws error 503 - access denied error

Postby Ashex » Thu Aug 02, 2012 9:20 pm

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
Ashex
 
Posts: 4
Joined: Mon Aug 15, 2011 9:45 pm

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

Postby BKKKPewsey » Thu Aug 02, 2012 10:12 pm

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:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

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

Postby Ashex » Fri Aug 03, 2012 1:26 am

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 :/
Ashex
 
Posts: 4
Joined: Mon Aug 15, 2011 9:45 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests