Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199326 - dev-perl/HTML-Mason Cannot create directory error on startup
Summary: dev-perl/HTML-Mason Cannot create directory error on startup
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Perl team
Depends on:
Reported: 2007-11-16 07:22 UTC by Nick Aubert
Modified: 2014-10-11 09:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Nick Aubert 2007-11-16 07:22:13 UTC
Installed apache2 and dev-perl/HTML-Mason via portage.  Added some Mason directives listed at to httpd.conf

PerlModule HTML::Mason::ApacheHandler
<Location />
    SetHandler perl-script
    PerlHandler HTML::Mason::ApacheHandler

Started Apache2, then tried loading my page.  I got an internal server error with following message in apache error log:

[Thu Nov 15 22:50:57 2007] [error] [client] Cannot create directory '/usr/lib/apache2/mason/obj' (mkdir /usr/lib/apache2/mason/obj: Permission denied at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ line 301\n) for user 'apache', group 'apache'. Perhaps you need to create or set permissions on your data_dir ('/usr/lib/apache2/mason'). \nStack:\n  [/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/]\n  [/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/]\n  [/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/]\n  [/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/]\n  [/usr/lib/perl5/vendor_perl/5.8.8/Class/]\n  [/usr/lib/perl5/vendor_perl/5.8.8/Class/]\n  [/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/]\n  [/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/]\n  [(eval 33):6]\n  [-e:0]\n

The directory /usr/lib/apache2/mason did not exist.

Reproducible: Didn't try

I was able to make the problem go away by creating the directory /usr/lib/apache2/mason and chowning it to Apache2's user/group.

The simplest fix would be to have the ebuild do the same thing but I don't know if having files belonging to apache user under /usr/lib is considered good practice.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2014-10-11 09:14:05 UTC
Please reopen if this is still a problem with current versions.