OOD 1.5 Apache Service Start Failure


#1

Working on Connecting OOD 1.5 KVM VM to Open HPC Cluster. Running on CentOS 7.6. The OOD node is booting okay and I can ssh into it, but httpd24 service fails to start. Apparently log files didn’t get created for some reason during the install. I am assuming log files/directories normally would be created, but since I am new to OOD I am not sure. Errors are shown below, what is the best way to resolve this problem?

Mar 12 11:44:36 centosood systemd: Starting The Apache HTTP Server...
Mar 12 11:44:36 centosood systemd: Started Permit User Sessions.
Mar 12 11:44:36 centosood systemd: Started Getty on tty1.
Mar 12 11:44:36 centosood systemd: Reached target Login Prompts.
Mar 12 11:44:36 centosood systemd: Started Command Scheduler.
Mar 12 11:44:36 centosood httpd-scl-wrapper: (2)No such file or directory: AH02291: Cannot access directory '/opt/rh/httpd24/root/etc/httpd/logs/' for main error log
Mar 12 11:44:36 centosood httpd-scl-wrapper: (2)No such file or directory: AH02291: Cannot access directory '/opt/rh/httpd24/root/etc/httpd/logs/' for error log of vhost defined at /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf:56
Mar 12 11:44:36 centosood httpd-scl-wrapper: AH00014: Configuration check failed
Mar 12 11:44:36 centosood pbs_init.d: Starting PBS
Mar 12 11:44:36 centosood systemd: httpd24-httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 12 11:44:36 centosood httpd-scl-wrapper: (2)No such file or directory: AH02291: Cannot access directory '/opt/rh/httpd24/root/etc/httpd/logs/' for main error log
Mar 12 11:44:36 centosood httpd-scl-wrapper: (2)No such file or directory: AH02291: Cannot access directory '/opt/rh/httpd24/root/etc/httpd/logs/' for error log of vhost defined at /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf:56
Mar 12 11:44:36 centosood httpd-scl-wrapper: AH00014: Configuration check failed
Mar 12 11:44:36 centosood systemd: httpd24-httpd.service: control process exited, code=exited status=1
Mar 12 11:44:36 centosood systemd: Failed to start The Apache HTTP Server.
Mar 12 11:44:36 centosood systemd: Unit httpd24-httpd.service entered failed state.
Mar 12 11:44:36 centosood systemd: httpd24-httpd.service failed.

Thanks
Dom


#2

Got it figured out. It was a symlink located at /opt/rh/httpd24/root/etc/httpd/logs which pointed at /var/log/httpd24 which didn’t exist. I created directory httpd24 and set the permissions with chmod 600 /var/log/httpd24 and now httpd24-httpd service runs:-)

Now I am getting an error within the httpd24 service related to httpd-scl-wrapper, see below:

root@centosood log]# systemctl status httpd24-httpd
● httpd24-httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd24-httpd.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/httpd24-httpd.service.d
└─ood.conf
Active: active (running) since Tue 2019-03-12 14:41:19 CDT; 15s ago
Process: 3488 ExecStop=/opt/rh/httpd24/root/usr/sbin/httpd-scl-wrapper $OPTIONS -k graceful-stop (code=exited, status=1/FAILURE)
Main PID: 3539 (httpd)
Status: “Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec: 0 B/sec”
Tasks: 47
Memory: 7.0M
CGroup: /system.slice/httpd24-httpd.service
├─3539 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
├─3540 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
├─3541 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
├─3542 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
├─3543 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
└─3544 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND

Mar 12 14:41:19 centosood systemd[1]: Starting The Apache HTTP Server…
Mar 12 14:41:19 centosood systemd[1]: Started The Apache HTTP Server.


#3

Figured out the source of the errors. It was caused by Open HPC wwvnfs the VNFS build command only constructing the default /var/log directory for OPHC, thus it was missing some of the folders needed for OOD.