httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53842] scoreboard file created with wrong permissions
Date Mon, 10 Sep 2012 11:18:38 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53842

--- Comment #2 from Noel <bugs@ausics.net> ---
Eric, not at all.

Each new vhost is added to the conf file by a perl script, it inserts a 
CBandScoreBoard /usr/local/apache/scoreboards/domain.name
line into its virtualhost block.

/usr/local/apache/bin/apachectl -k graceful   is then issued.

the problem lies within the above command in some instances as earlier
indicated.

I discovered this because something went wrong with a host addition, and
checking the logs I found trillion lines of 
apache2_mod_cband: cannot open scoreboard file
/usr/local/apache/scoreboards/domain.name

which is correct, given it was recreated as "root" and not apache (user web
server runs as)

new timeline...

example.com host added
httpd graceful issued

4 minutes has elapsed

ls -la /usr/local/apache/scoreboards/example*
/bin/ls: cannot access /usr/local/apache/scoreboards/example*: No such file or
directory


lynx -dump example.com

                              [sitepending.png]


ls -la /usr/local/apache/scoreboards/example*
-rw-------  1 apache apache   44 Sep 10 21:00 example.com


 rm /usr/local/apache/scoreboards/example.com
(to simulate some error)

ls -la /usr/local/apache/scoreboards/example*
/bin/ls: cannot access /usr/local/apache/scoreboards/example*: No such file or
directory

/etc/rc.d/rc.httpd reload
Graceful reload of Apache... Done.


root@www3:/usr/local/scripts# ls -la /usr/local/apache/scoreboards/example*
-rw-------  1 root   root     44 Sep 10 21:02 example.com


I do note, that, if the file is removed, and, the website is hit withOUT or
before a reload is issued, then the scoreboard file is recreated correctly as
user apache and gives no errors.

We might have caught this error, in adding domains in quick succession of each
other, getting the reload (from adding new vhost in cobf) before the earlier
site was hit, httpd thinking somethings wrong as it was missing that scoreboard
file so recreated it? I don't know, hence my bug report, but somethings amiss
somewhere.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message