Rails Error: Unable to access log file
Added by Terence Mill almost 14 years ago
I need help to solve this log file error message!
Rails Error: Unable to access log file. Please ensure that /usr/local/lib/redmine-trunk/log/production.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.
"/usr/local/lib/redmine-trunk/log/" is a symlink on "/var/log/apache2" and in that folder there is the file.
-rw-rw-rw- 1 www-data www-data 0 13. Sep 16:15 production.log
Tx a lot!
Replies (3)
RE: Rails Error: Unable to access log file
-
Added by Felix Schäfer almost 14 years ago
Are you sure redmine is run as www-data:www-data?
RE: Rails Error: Unable to access log file
-
Added by Hans Schmidt almost 14 years ago
Hi,
i have the same problem.
Redmine run as www-data:www-data in Apache2 with passenger-2.2.14.
I get the same Rails Error.
Redmine root:
drwxr-sr-x 8 root staff 4096 29. Jul 09:17 app drwxr-sr-x 6 root staff 4096 8. Sep 18:33 config drwxr-sr-x 4 root staff 4096 29. Jul 09:49 db drwxr-sr-x 3 root staff 4096 7. Sep 11:51 doc drwxr-sr-x 6 root staff 4096 29. Jul 09:17 extra drwxr-sr-x 3 www-data www-data 12288 16. Sep 10:47 files -rw-r--r-- 1 root staff 322 29. Jul 09:17 .gitignore drwxr-sr-x 8 root staff 4096 7. Sep 11:51 lib lrwxrwxrwx 1 www-data www-data 16 10. Sep 16:14 log -> /apache2-log-dir drwxr-sr-x 9 root staff 4096 26. Aug 17:12 public drwxr-sr-x 5 root staff 4096 29. Jul 09:17 script drwxr-sr-x 9 root staff 4096 7. Sep 11:51 test drwxr-sr-x 7 www-data www-data 4096 29. Jul 09:17 tmp drwxr-sr-x 5 root staff 4096 29. Jul 09:17 vendor
Apache2 conf:
User www-data Group www-data
Virtual-Host:
DocumentRoot /{redmine-root}/public <Directory /{redmine-root}/public> AllowOverride None Options Indexes ExecCGI FollowSymLinks Order allow,deny Allow from all </Directory>
thx for help
RE: Rails Error: Unable to access log file
-
Added by Felix Schäfer almost 14 years ago
Passenger doesn't necessarily run apps as the same user as apache does, see http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerUserSwitching