Error Log Permissions


#1

Thanks John for your reply re Radiant Issue Served by Litespeed: *Tue
Apr 3
15:48:22 GMT 2007

*Trawling though system logs:

/opt/lsws/logs <= where Litespeed is installed
cat stderr.log | less

Can’t determine the Home of LiteSpeed Web Server, exit!
Rails Error: Unable to access log file. Please ensure that
/srv/www/radiant/config/…/log/development.log exists and is chmod 0666.
The
log level has been raised to WARN and the output directed to STDERR
until
the problem is fixed.
Rails Error: Unable to access log file. Please ensure that
/srv/www/radiant/config/…/log/development.log exists and is chmod 0666.
The
log level has been raised to WARN and the o
utput directed to STDERR until the problem is fixed.
Permission denied -
/srv/www/radiant/config/…/tmp/sessions//ruby_sess.9e2597bce7d4dbdc
/usr/lib/ruby/1.8/pstore.rb:290:in initialize' /usr/lib/ruby/1.8/pstore.rb:290:intransaction’
/usr/lib/ruby/1.8/cgi/session/pstore.rb:71:in initialize' /usr/lib/ruby/1.8/cgi/session.rb:273:ininitialize’
/srv/www/radiant/config/…/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:123:in
session' /srv/www/radiant/config/../vendor/rails/actionpack/lib/action_controller/cgi_process.rb:155:instale_session_check!’
/srv/www/radiant/config/…/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:110:in
session' /srv/www/radiant/config/../vendor/rails/actionpack/lib/action_controller/base.rb:1052:inassign_shortcuts_without_flash’
/srv/www/radiant/config/…/vendor/rails/actionpack/lib/action_controller/flash.rb:140:in
assign_shortcuts' /srv/www/radiant/config/../vendor/rails/actionpack/lib/action_controller/base.rb:424:inprocess_without_filters’
/srv/www/radiant/config/…/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in
process_without_session_management_support' /srv/www/radiant/config/../vendor/rails/actionpack/lib/action_controller/session_management.rb:114:insass_old_process’
/srv/www/radiant/config/…/vendor/plugins/haml/lib/sass/plugin.rb:117:in
process' /srv/www/radiant/config/../vendor/rails/actionpack/lib/action_controller/base.rb:330:inprocess’
/srv/www/radiant/config/…/vendor/rails/railties/lib/dispatcher.rb:41:in
`dispatch’
/opt/lsws/fcgi-bin/RailsRunner.rb:14
Permission denied -
/srv/www/radiant/config/…/tmp/sessions//ruby_sess.49972ac62a52f583

=> So, I am guessing there is a problem there, all logging has been
redirected to stderr.log as it doesn’t have permisson to log to
development.log.

The output said => Please ensure that
/srv/www/radiant/config/…/log/development.log exists and is chmod 0666

Firstly: /srv/www/radiant/config/…/log/development.log is not the path
to
my radiant log files, it is

=> /srv/www/radiant/log

/srv/www/radiant/log# ls -al
total 32
drwxr-xr-x 3 root root 4096 2007-04-05 09:21 .
drwxr-xr-x 16 root root 4096 2007-04-05 09:23 …
-rw-rw-rw- 1 root root 10151 2007-04-05 09:22 development.log
-rw-r–r-- 1 root root 0 2007-04-05 09:16 .keep
-rw-rw-rw- 1 root root 5599 2007-04-06 01:23 production.log
-rw-rw-rw- 1 root root 0 2007-04-05 09:16 server.log
drwxr-xr-x 7 root root 4096 2007-04-05 09:17 .svn

So, according to the stderr.log, should systems logs be where they are
or in
/…/config/logs?

Secondly => Permission denied -
/srv/www/radiant/config/…/tmp/sessions//ruby_sess.49972ac62a52f583

I changed the permissions of /…/tmp using chmod 0666.

Is this the likely cause of this application error I am getting?

cheers, Ben.