Could not start logger: Errno::EACCES Permission denied with OpenShift Enterprise
Issue
- I'm seeing the following error when running oo-diagnostics on my brokers after a /var/log/ruby193-mcollective-client.log log rotation:
WARN: test_broker_httpd_error_log
broker error_log: this problem indicates mcollective client logging is failing:
Could not start logger: Errno::EACCES Permission denied - /var/log/ruby193-mcollective-client.log
Could not start logger: Errno::EACCES Permission denied - /var/log/ruby193-mcollective-client.logdebug: Waiting for a message from ActiveMQ
No request sent, we did not discover any nodes.Could not start logger: Errno::EACCES Permission denied - /var/log/ruby193-mcollective-client.log
Please fix this issue with the following commands:
# chown apache:root /var/log/ruby193-mcollective-client.log
# service openshift-broker restart
- Here is the directory listing of the logs:
-rw-r--r--. 1 root root 667187 Mar 3 09:57 ruby193-mcollective-client.log
-rw-r--r--. 1 apache root 3392695 Feb 26 15:09 ruby193-mcollective-client.log.0
-rw-r--r--. 1 apache root 2097385 Feb 19 09:12 ruby193-mcollective-client.log.1
-rw-r--r--. 1 apache root 2097233 Feb 14 16:13 ruby193-mcollective-client.log.2
- In 1.2 I did chown the permissions of these files manually. Is there a better location to put this log vs. the default so it doesn't keep getting owned by root when rolling?
Environment
- OpenShift Enterprise 2.0
- OpenShift Enterprise 1.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
