redhat-cip / edeploy

Linux systems provisioning and updating made easy
Apache License 2.0
92 stars 38 forks source link

edeploy webscript can't write to lock file on RHEL7 #159

Closed tremble closed 9 years ago

tremble commented 9 years ago

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:

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'

tremble commented 9 years ago

PR #161 was merged, that should fix this.