Permission denied on Linux (Subsonic 2.5)

Need help? Post your questions here.

Moderator: moderators

Permission denied on Linux (Subsonic 2.5)

Postby anker » Fri Dec 02, 2005 7:51 pm

Hi,

I just upgraded to subsonic 2.5 on my Fedora Core 4 Box. It seemed to run perfectly at first sight (and I really like the new user administration, thanks a lot) but when I try to access an MP3 file from the library, I get a Permission Denied athough user tomcat is allowed to enter the directory I'm trying to access.

Situation is the following: My files reside under /bla/mp3/files. Subsonic does show the directories that are in this directory. But when I click one of the links I get the following error:

org.apache.jasper.JasperException: Access denied to file /bla/mp3
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:188)

Seems a bit strange to me that the directory listing can be displayed which is located below the directory I seemingly cannot access.

Any ideas?
anker
 

Permission denied on Linux (Subsonic 2.5) -- update

Postby anker » Fri Dec 02, 2005 7:59 pm

Just a short additional comment: Streaming DOES work, but the main frame of subsonic (which normally shows the "now playing" part) tells me something about the mentioned "Permission denied".

Regards,

Andreas.
anker
 

Permission denied on Linux (Subsonic 2.5) -- solved

Postby anker » Fri Dec 02, 2005 8:20 pm

Hi,

it was again a problem of a symbolic link. The directory /bla is a link to somehere else. If a set the true path instead of the link in the settings, everything works fine.

Thank you again for this great piece of software.
anker
 
Posts: 3
Joined: Fri Dec 02, 2005 8:10 pm

Postby sindre_mehus » Fri Dec 02, 2005 8:34 pm

Hi and thanks for the info!

I've received other reports about "Permission denied" problems when using symlinks as music folders. I'll definitely look into it, but I currently don't have a Linux system available for testing.

Until then, Linux users are adviced to not use symlinks as music folders.

Have a nice weekend 8)
-Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby Ikyo » Fri Dec 02, 2005 9:30 pm

I will take a look at it when I get home later tonight. Who created the symlink and is the symlink nested in a folder or off of root?
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Postby anker » Sun Dec 04, 2005 12:14 pm

The symlink was created by root (of course, it's in /). But that shouldn't matter, at least from the OS's point of view, because the directory it links to is mode 0755. But I'm no Java programmer, so I don't know how this will affect the code in this case.
anker
 
Posts: 3
Joined: Fri Dec 02, 2005 8:10 pm

Postby Ikyo » Mon Dec 05, 2005 6:44 pm

It is sounding like it doesn't know how to follow the symlink. I had the same issue originally on mine, but I just changed it to the absolute path.
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Postby Ikyo » Mon Dec 05, 2005 6:45 pm

It is sounding like it doesn't know how to follow the symlink. I had the same issue originally on mine, but I just changed it to the absolute path.
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am


Return to Help

Who is online

Users browsing this forum: No registered users and 33 guests