Description of problem: When starting openshift-broker, get two errors in /var/log/openshift/broker/httpd/error_log like: [error] [client 127.0.0.1] Attempt to serve directory: /var/www/openshift/broker/httpd/root/ Additional info: This is caused by passenger self-testing at start which is based on the PassengerPreSpawn setting in /var/log/openshift/broker/httpd/error_log This was fixed for online devenvs but somehow never made it into origin.
Sorry, I meant PassengerPreStart; it should be: PassengerPreStart http://127.0.0.1:8080/broker/rest/api.json
Sorry for the mistakes above. The file that needs to be changed on the broker is /var/www/openshift/broker/httpd/broker.conf The directive that needs to change is PassengerPreStart, which should be: PassengerPreStart http://127.0.0.1:8080/broker/rest/api.json
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/1e09208f14d9da032f183a9b87d17a90b760dfdf Bug 973796 - PassengerPreStart points at root which logs errors
This also pulls in the fix for the missing lsof depedency. This was commit edb31c88eecc744626fbedbd9a73eff45db2f358 on Origin. https://github.com/openshift/enterprise-server/pull/101
Checked this on puddle http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/1.2/2013-07-12.3/ The package version was right. [root@broker ~]# rpm -qa|grep openshift-origin-broker openshift-origin-broker-util-1.9.8-1.1.el6op.noarch openshift-origin-broker-1.5.4-1.el6op.noarch But PassengerPreStart address is still http://127.0.0.1:8080/ set in /var/www/openshift/broker/httpd/broker.conf Error still could be seen in /var/log/openshift/broker/httpd/error_log when openshift-broker started. So assign it back, thanks! [Sun Jul 14 20:19:06 2013] [error] [client 127.0.0.1] Attempt to serve directory: /var/www/openshift/broker/httpd/root/
Looks like the SCL package has it's own configuration file and I failed to update that one. I'm submitting another pull request.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/72fdcd8859f4e2ef413b4b7767ff9cae87fe7433 Bug 973796 - PassengerPreStart points at root which logs errors
Verify this on puddle http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/1.2/2013-07-17.1/ openshift-origin-broker-1.5.5-1.el6op.noarch When starting openshift-broker, no errors shown in /var/log/openshift/broker/httpd/error_log Checked the PassengerPreStart address in /var/www/openshift/broker/httpd/broker.conf [root@broker ~]# grep PassengerPreStart /var/www/openshift/broker/httpd/broker.conf PassengerPreStart http://127.0.0.1:8080/broker/rest/api.json
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1138.html