Closed (cannot reproduce)
Project:
Hostmaster (Aegir)
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2011 at 18:59 UTC
Updated:
18 Jan 2013 at 10:30 UTC
Hi
When running the install with nginx
drush hostmaster-install --http_service_type=nginx
The script tries to run some othr script different to
/etc/init.d/nginx
No idea which one.
To get the installation to succed I had to set
aegir ALL=(ALL) NOPASSWD: ALL
And once installed go to the nginx server settings and set the command to
/etc/init.d/nginx
Then I could set the sudo permit back to
aegir ALL=NOPASSWD: /etc/init.d/nginx
Cheers
Comments
Comment #1
anarcat commentedAccording to the current code, it *will* try /etc/init.d/nginx if it is executable... Can you provide us with the log of the installer with --debug?
Thanks,
Comment #2
omega8cc commented@jm.federico
Please provide more information about your OS along with some debug output - try
drush hostmaster-install --http_service_type=nginx -d.Comment #3
jm.federico commentedRight, so funny thing
ran it again and now it worked.
ran it with line provided in comment#2
drush hostmaster-install --http_service_type=nginx -d
gave me plenty of debug info to get bored, but ultimately it worked!
Closing this
Thanks anyway!
Comment #4
lolmaus commentedI've experienced the same issue.
After modifying my visudo, i managed to start the installation. Here's the bug:
I use the following command to install hostmaster:
Comment #5
omega8cc commented@lolmaus
The sudo configuration entry for Nginx is different.
Please read and follow the docs: http://community.aegirproject.org/node/389#Sudo_configuration
If you are experiencing issues, please open a *new* issue with all details/steps you did, OS used etc etc.
Comment #6
lolmaus commentedI'm doing a clean install of Aegir on an Ubuntu Server 10.04 LTS.
I'm following the Manual Install guide because i want it to run on Nginx. I dunno what versions of stuff are installed. I just follow the official manual install guide.
Everything is fine until "drush hostmaster-install" should be run.
I use the following command to install hostmaster:
Even though it has the nginx parameter, it tries to run /usr/sbin/apachectl for some reason! :(
Comment #7
omega8cc commentedIt will default to /usr/sbin/apachectl when it can't find any known location for nginx reload command.
Please post the result of commands:
which nginxnginx -Vls -la /etc/init.d/nginx*ls -la /usr/sbin/nginxls -la /usr/local/sbin/nginxComment #8
lolmaus commentedComment #9
lolmaus commentedI have upgraded to Ubuntu 12.04. It did not change anything.
I have noticed that "which nginx" would not return anything when run via aegir user! This might be the issue.
Comment #10
omega8cc commentedProvision doesn't use
which nginxso it doesn't matter if it is in your aegir user PATH. It tries full system paths for expected Nginx binary or init script (by default).The how-to: http://community.aegirproject.org/content/installing/manual/nginx-mariad... suggests that you should add working shell:
chsh -s /bin/bash aegirMaybe this is Ubuntu specific issue, as it works just fine in Debian without setting PATH on the fly.
Comment #11
lolmaus commentedThank you omega8cc,
i have upgraded my Ubuntu installation from 10.04 to 12.04, reinstalled Nginx and this issue no longer takes place.
Comment #12
lolmaus commentedI have followed the latest Manual Installation guide carefully to install Aegir with Nginx on a clean server.
I ended up receiving the `[sudo] password for aegir:` prompt.
Here's the full output with the --debug parameter: https://gist.github.com/4563424
The last message is:
Comment #13
lolmaus commentedI've set sudo to allow every command for Aegir, and it seems `provision-verify` runs apache2ctl:
Seems to be a bug. Now i'm feeling guilty for hijacking the issue thread. Closing this to reopen a separate thread.