[DRE-maint] Bug#575462: redmine + apache2 shows permission error to access /etc/redmine/default/session.yml

Jérémy Lal jerry at edagames.com
Fri Mar 26 07:21:11 UTC 2010


On 26/03/2010 01:14, Jinserk Baik wrote:
> Package: redmine
> Version: 0.9.3-1
> 
> I have tried to install redmine with debian package and its dependencies,
> I just add the following redmine site in /etc/apache2/site-available
> 
> Listen 8080
> <VirtualHost *:8080>
>   RailsEnv production
>   RailsBaseURI /
>   SetEnv X_DEBIAN_SITEID default
> 
>   DocumentRoot /usr/share/redmine/public
>   ServerSignature off
> 
>   <Directory "/usr/share/redmine/public">
>     AllowOverride None
>     Order allow,deny
>     Allow from all
>   </Directory>
> 
>   ErrorLog /var/log/apache2/redmine-error.log
>   CustomLog /var/log/apache2/redmine-access.log combined
> </VirtualHost>
> 
> and a2ensite redmine
> 
> then I can see the passenger running page on IP:8080 but got an error like:
> 
> Error message:Permission denied - /etc/redmine/default/session.yml
> Exception class:Errno::EACCES
> Application root: /usr/share/redmine
> Backtrace:
> # File Line Location
> 0 /usr/lib/ruby/1.8/yaml.rb 143 in `initialize'
> 1 /usr/lib/ruby/1.8/yaml.rb 143 in `open'
> 2 /usr/lib/ruby/1.8/yaml.rb 143 in `load_file'
> 3 /usr/share/redmine/config/environment.rb 27
> 4 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
> 5 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `require'
> ..... blah blah
> 
> It seems that the original permission of /etc/redmine/default/*.yml is
> root:www-data, and 640, so the apache2 blocks the access of these files.
> 
> How can I fix it?
> 
> 

Have a look at this apache2 passenger directive :
PassengerDefaultUser www-data

Right now passenger is run as nobody by default,
for me it's like a bug.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20100326/a6f2d717/attachment.pgp>


More information about the Pkg-ruby-extras-maintainers mailing list