Install error - mkdir /opt/rt3/var/mason_data/obj: Permission denied

System error

error: mkdir /opt/rt3/var/mason_data/obj: Permission denied at
/usr/local/lib/perl5/site_perl/5.8.3
/HTML/Mason/Compiler/ToObject.pm line 102

contex
t:

    ...                                                                
                                                                       
    187:                                                               
                # whether they should generate a full stack trace      
                (confess() and cluck())                                
    188:                                                               
                # or simply report the caller's package (croak() and   
                carp()), respectively.                                 
    189:                                                               
                # confess() and croak() die, carp() and cluck() warn.  
    190:                                                               
                                                                       
    191:                                                               
                sub croak { die shortmess @_ }                         
    192:                                                               
                sub confess { die longmess @_ }                        
    193:                                                               
                sub carp { warn shortmess @_ }                         
    194:                                                               
                sub cluck { warn longmess @_ }                         
    195:                                                               
                                                                       
    ...                                                                

code /usr/local/lib/perl5/5.8.3/Carp.pm:191
stack: /usr/local/lib/perl5/5.8.3/File/Path.pm:162
/usr/local/lib/perl5/5.8.3/File/Path.pm:155
/usr/local/lib/perl5/site_perl/5.8.3
/HTML/Mason/Compiler/ToObject.pm:102
/usr/local/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:308
/usr/local/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:198
/usr/local/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:166
/usr/local/lib/perl5/site_perl/5.8.3
/HTML/Mason/ApacheHandler.pm:60
/usr/local/lib/perl5/site_perl/5.8.3/Class/Container.pm:265
/usr/local/lib/perl5/site_perl/5.8.3/Class/Container.pm:343
/usr/local/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:213
/usr/local/lib/perl5/site_perl/5.8.3
/HTML/Mason/ApacheHandler.pm:863
/usr/local/lib/perl5/site_perl/5.8.3
/HTML/Mason/ApacheHandler.pm:789
/opt/rt3/bin/webmux.pl:134
/dev/null:0

It appears that I have got Apache running as www and www owns the
directory, I have looked in the FAQ and can not find anything that is
relavent.

[root@melba2 conf]# ps -ef | grep http
root 8509 1 0 17:34 ? 00:00:00 httpd start
www 8510 8509 0 17:34 ? 00:00:00 httpd start
www 8511 8509 0 17:34 ? 00:00:00 httpd start
www 8512 8509 0 17:34 ? 00:00:00 httpd start
www 8513 8509 0 17:34 ? 00:00:00 httpd start
www 8514 8509 0 17:34 ? 00:00:00 httpd start
root 8520 6744 0 17:48 pts/0 00:00:00 grep http
[root@melba2 conf]# cd /opt/rt3/var/mason_data
[root@melba2 mason_data]# ls -al
total 5
drwxrwx— 5 www www 1024 Feb 27 12:10 .
drwxr-xr-x 5 root root 1024 Feb 27 12:10 …
drwxr-xr-x 2 www www 1024 Feb 27 12:10 cache
drwxr-xr-x 2 www www 1024 Feb 27 12:10 etc
drwxr-xr-x 2 www www 1024 Feb 27 12:10 obj
[root@melba2 mason_data]# cd …/
[root@melba2 var]# ls -al
total 5
drwxr-xr-x 5 root root 1024 Feb 27 12:10 .
drwxr-xr-x 9 root root 1024 Feb 27 12:10 …
drwxr-xr-x 2 root root 1024 Feb 27 12:10 log
drwxrwx— 5 www www 1024 Feb 27 12:10 mason_data
drwxrwx— 2 www www 1024 Feb 27 12:10 session_data

Anyone have any ideas?

Thanks

Bob

Robert Conron
IT Manager - Asia Pacific
FT Interactive Data

Phone: + 613 92492051
Fax: + 613 92492099
Email: bob.conron@ap.ftid.com

error: mkdir /opt/rt3/var/mason_data/obj: Permission denied at
/usr/local/lib/perl5/site_perl/5.8.3
/HTML/Mason/Compiler/ToObject.pm line 102

Anyone have any ideas?

“permission denied” generally means just that. The user mason/apache
is running as doesn’t have write permission to the mason cache
directories. the rt installer should have set it up correctly if you
told it what user/group it’s running as.

seph

At 10:03 PM 2/26/2004, Bob.Conron@ap.ftid.com wrote:

It appears that I have got Apache running as www and www owns the
directory, I have looked in the FAQ and can not find anything that is
relavent.

Anyone have any ideas?

Are all the parent dirs world-executable?

[root@new-misc1 bin]# ls -alRd /opt/
drwxr-xr-x 3 root root 4096 Feb 29 18:39 /opt/
[root@new-misc1 bin]# ls -ald /opt/rt3/
drwxr-xr-x 9 root root 4096 Feb 29 18:39 /opt/rt3/
[root@new-misc1 bin]# ls -ald /opt/rt3/var/
drwxr-xr-x 5 root root 4096 Feb 29 18:39 /opt/rt3/var/
[root@new-misc1 bin]# ls -ald /opt/rt3/var/mason_data/
drwxrwx— 5 nobody nobody 4096 Feb 29 18:39
/opt/rt3/var/mason_data/

~Ben
Ben Browning benb@theriver.com
The River Internet Access Co.
WA Operations Manager
1-877-88-RIVER http://www.theriver.com