Ich hasse Rails

2009-03-25
Oder anders gesagt: Ich hätte gerne die Drogen, die die Entwickler nehmen. Oder noch anders gesagt: Wer schenkt den Entwicklern mal ein Buch über Unix-Dateisystemrechte?

[root@kiste:/var/log/rails #] ls -l .
drwx------  2 apache apache 4096 25. Mär 16:21 .
[root@kiste:/var/log/rails #] service httpd graceful
[root@kiste:/var/log/rails #] tail -1 /var/log/httpd/error.log
Rails Error: Unable to access log file. Please ensure that /var/log/rails/production.
log exists and is chmod 0666. The log level has been raised to WARN and the output di
rected to STDERR until the problem is fixed.
[root@kiste:/var/log/rails #] touch production.log
[root@kiste:/var/log/rails #] service httpd graceful
[root@kiste:/var/log/rails #] tail -1 /var/log/httpd/error.log
Rails Error: Unable to access log file. Please ensure that /var/log/rails/production.
log exists and is chmod 0666. The log level has been raised to WARN and the output di
rected to STDERR until the problem is fixed.
[root@kiste:/var/log/rails #] chmod 0666 production.log
[root@kiste:/var/log/rails #] service httpd graceful
[root@kiste:/var/log/rails #] tail -1 /var/log/httpd/error.log
Rails Error: Unable to access log file. Please ensure that /var/log/rails/production.
log exists and is chmod 0666. The log level has been raised to WARN and the output di
rected to STDERR until the problem is fixed.
[root@kiste:/var/log/rails #] chmod 0770 .
[root@kiste:/var/log/rails #] service httpd graceful
[root@kiste:/var/log/rails #] tail -1 /var/log/httpd/error.log
Rails Error: Unable to access log file. Please ensure that /var/log/rails/production.
log exists and is chmod 0666. The log level has been raised to WARN and the output di
rected to STDERR until the problem is fixed.
[root@kiste:/var/log/rails #] chmod 777 .
[root@kiste:/var/log/rails #] ls -ld .
drwxrwxrwx 2 apache apache 4096 25. Mär 16:21 .
[root@kiste:/var/log/rails #] service httpd graceful
[root@kiste:/var/log/rails #] tail -1 /var/log/httpd/error.log
[Wed Mar 25 16:22:35 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[root@kiste:/var/log/rails #] 

Ach ja, rails läuft natürlich als User apache. AAAARGH!

Geschrieben um 16:39

[/computer] [permanent link] [Startseite]

Zu blöde um bis drei zu zählen …

2009-03-25
… aber für weniger als vier Nägel einen Laden aufmachen wollen.

Geschrieben um 01:43

[/kram] [permanent link] [Startseite]

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.0 Germany License.