I am sure this is a configuration problem on my end, but I have had no luck tracking it down. I have visudo set up. When I run sudo /usr/sbin/apachectl graceful as aegir from the command line, it is fine, and when I run drush provision verify as aegir from the command line, it works fine, but when I run it from inside hostmaster, as a task, it fails.

Anyone have any debugging tips?

Comments

Anonymous’s picture

Are you sure that the command to restart the web server, as seen from the Hostmaster system, is correct?

Hint: look at the Restart Command on your web server node. Typically /node/3/edit

On my system it is sudo /usr/sbin/apache2ctl graceful . Ensure it matches the one you're running from the commandline that works.

What OS is this too?

On CentOS apparently one needs to comment out this line in sudoers

Defaults requiretty

starbow’s picture

@mig5: Thanks!

Yep, I am running on CentOS, and that is exactly my problem.
I use visudo to add:
Default:aegir !requiretty

And now it works fine.

I have opened an issue to improve the error reporting: http://drupal.org/node/654610

Anonymous’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.