I have witnessed at least two cases where site verification failed because provision could not restart apache.
Oddly enough, retrying the task fixed the issue.
I will try to have a more reliable way to reproduce.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | aegir_verbose_restart_441864.patch | 1014 bytes | anarcat |
| #7 | aegir_verbose_restart_441864.patch | 1013 bytes | anarcat |
Comments
Comment #1
anarcat commentedSo this is weird: i can't reproduce simply by creating and verifying a site. Last time I was able to reproduce, it was by deleting and reimporting a complete platform. I can't reproduce by doing that so I guess it was something in my environment.
For the record, even if this bug actually exists, there is a workaround: just retry the task. If this bug is reopened, we will need clear documentation on how to reproduce.
Comment #2
z.stolar commentedI don't know how to reproduce, but I keep running into the error, even when retrying the task.
Here is the task's log:
Comment #3
adrian commentedrun apachectl configtest
Comment #4
anarcat commentedPlease try the attached patch, which should show you the output of the command in the task log.
Please post the output of apachectl configtest.
Since I cannot reproduce the issue, I'm filing this as a support request for now.
Comment #5
adrian commentedrun apachectl configtest?
Comment #6
z.stolar commentedapachectl configtest: Syntax OK
@anarcat: where is the patch you were talking about?
Before you go any further in trying to assist here, I want to test a different apache config, as proposed by vertice on irc.
I'll update here.
Comment #7
anarcat commentedDamn, forgot to add the patch.
Comment #8
anarcat commentedThe last patch introduces a parse error, here's a reroll.
Keep in mind the patch is only for debugging purposes: running the task as verbose or --debug would probably work also.
Comment #9
z.stolar commentedOK. It appears my problem was lying between me and the keyboard, not beyond it...
I just didn't notice the necessary addition to the sudoers file:
So the web server was waiting for a password each time, and couldn't get pass this step.
(thanks Adrian and anarcat for irc help)
Comment #10
adrian commentedrun apachectl configtest
Comment #11
z.stolar commentedWhy is it a bug? If I read the inline help properly, I wouldn't have ran into this issue.
apachectl configtest outputs Syntax OK.
Comment #12
anarcat commentedWell, I'm not sure it's a bug either. Adrian seemed to think so, but I suspect he missed the last exchanges. This happened to me just after the upgrade from 0.1, but I have never seen this happened again, so I'll close this issue and put it back as a support request.
Comment #14
tusharkanta commentedI installed aegir following the install.txt (line by line) in centos. While verifying I got the following issues:
Undefined index: base_url
Undefined index: db_url
Web server could not be restarted. Changes might not be available until this has been done. (I have done all the necessary steps of adding aegir ALL=NOPASSWD: /usr/sbin/apachectl in /etc/sudoers)
Please go through the url to see the verification log status:
http://peppervillage.net/node/6
(username: peppervillageAdmin
password: peppervillageAdmin)
Please help me solve this issue at the earliest.
Thanks in advance.
Comment #15
tusharkanta commentedComment #16
Anonymous (not verified) commentedPlease don't open old, closed tickets, and don't cross-post from other old, unrelated tickets.
Please open a new support request if needed. As a hint, did you read the CentOS hints and check these user-contributed notes regarding sudoers on CentOS.