Under RHEL7 /var/run is rebuilt upon reboot. The default install image attempts to write to a lock file in /var/run/httpd and doesn't have permission after a reboot.
Suggestion:
Move the default lock file to /var/run/edeploy/edeploy.lock
Create that with an apache/httpd owner in the ansible script
On RHEL7 Add a tmpfiles directory (/etc/tmpfiles.d/edeploy.conf):
D /var/run/edeploy 0755 apache apache -
Error log:
[Wed Nov 19 09:53:23.055636 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: [Wed Nov 19 09:53:23.055411 2014] [eDeploy] upload.py(2734): Called from 10.7.17.97
[Wed Nov 19 09:53:23.055983 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: [Wed Nov 19 09:53:23.055927 2014] [eDeploy] upload.py(2734): form[file]: 8915 bytes
[Wed Nov 19 09:53:23.058931 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: [Wed Nov 19 09:53:23.058535 2014] [eDeploy] upload.py(2734): Aborting: 'Error on server's lock file : [Errno 13] Permission denied: '/var/run/httpd/edeploy.lock''
[Wed Nov 19 09:53:23.058993 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: Traceback (most recent call last):
[Wed Nov 19 09:53:23.059045 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: File "/var/www/cgi-bin/upload.py", line 466, in main
[Wed Nov 19 09:53:23.059441 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: lockfd = lock(lock_filename)
[Wed Nov 19 09:53:23.059489 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: File "/var/www/cgi-bin/upload.py", line 150, in lock
[Wed Nov 19 09:53:23.059550 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: lock_fd = os.open(filename, os.O_CREAT | os.O_EXCL | os.O_RDWR)
[Wed Nov 19 09:53:23.059611 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: OSError: [Errno 13] Permission denied: '/var/run/httpd/edeploy.lock'
[Wed Nov 19 09:53:23.055636 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: [Wed Nov 19 09:53:23.055411 2014] [eDeploy] upload.py(2734): Called from 10.7.17.97
[Wed Nov 19 09:53:23.055983 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: [Wed Nov 19 09:53:23.055927 2014] [eDeploy] upload.py(2734): form[file]: 8915 bytes
[Wed Nov 19 09:53:23.058931 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: [Wed Nov 19 09:53:23.058535 2014] [eDeploy] upload.py(2734): Aborting: 'Error on server's lock file : [Errno 13] Permission denied: '/var/run/httpd/edeploy.lock''
[Wed Nov 19 09:53:23.058993 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: Traceback (most recent call last):
[Wed Nov 19 09:53:23.059045 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: File "/var/www/cgi-bin/upload.py", line 466, in main
[Wed Nov 19 09:53:23.059441 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: lockfd = lock(lock_filename)
[Wed Nov 19 09:53:23.059489 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: File "/var/www/cgi-bin/upload.py", line 150, in lock
[Wed Nov 19 09:53:23.059550 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: lock_fd = os.open(filename, os.O_CREAT | os.O_EXCL | os.O_RDWR)
[Wed Nov 19 09:53:23.059611 2014] [cgi:error] [pid 2545] [client 10.7.17.97:56460] AH01215: OSError: [Errno 13] Permission denied: '/var/run/httpd/edeploy.lock'
Under RHEL7 /var/run is rebuilt upon reboot. The default install image attempts to write to a lock file in /var/run/httpd and doesn't have permission after a reboot.
Suggestion:
Error log: