Unable to access log file

Hi all
ruby script/server
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
Rails Error: Unable to access log file. Please ensure that
/home/imedsoft/shyam/trunk/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.
=> Call with -d to detach
=> Ctrl-C to shutdown server
http://pastie.org/843862

what is
this
is chmod 0666.
?
in my logs …development.log is present…
Regards,
Shyam
+91-9716-18-9650

This is all bout Unix file permissions. Who and read, write or run a
file.
Permissions are set with the chmod command.

When a file is initially created the permissions look something like
this:

$ ls -l development.log
-rw-r–r-- 1 peterhickman staff 0 26 Feb 09:54 development.log

This means that the user can read and write the file (the ‘rw’ at the
left)
but people in the same group and the user or strangers can only read
it(the
‘r-’ parts). By issuing the following command:

$ chmod 666 development.log

The permissions on the file are changed.

$ ls -l
-rw-rw-rw- 1 peterhickman staff 0 26 Feb 09:54 development.log

Now anyone can read and write to the file.

That is what this error is complaining about. As the file does not have
the
correct permissions it is a good as it not existing.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs