Shell stop in last step when shows "Admin User Email:" on VM's Centos

Events happening in the community are now at Drupal community events on www.drupal.org.
rossy's picture

hi,everybody, I had create many CentOS to install aegir , but the result is very bad for me . First many different errors happened, and then I follow the instruction one by one , and now I can run the shell script , but it stoped in last step when shows "Admin User Email:", I use the VirtualBox to run the CentOs. please help me , any help will be appreciate.

[root@localhost aegir]# vim install.sh.txt (I added mysql password in it. like "mysql -uroot -ppassword")
[root@localhost aegir]# su -s /bin/sh aegir -c "sh install.sh.txt ae9.mydomain.net"
==> Aegir HEAD automated install script
==> MySQL is listening on 127.0.0.1.
==> This script makes the following assumptions:
* you have read INSTALL.txt and prepared the platform accordingly
* you are executing this script as your "aegir" user
Do you want to proceed with the install? [Y/n] Y
==> Aegir will now generate a mysql super user password for you:
Username : aegir_root
Password : 1d8d7d38effdc8eb71aa6b731e8c80c6
Hostname : localhost.localdomain (127.0.0.1)

You will be asked to enter your mysql root user password now :
==> Drush found in /var/aegir/drush/drush.php, good
==> Drush seems to be functioning properly
==> Provision already seems to be installed
==> Installing the frontend
Admin user e-mail [webmaster@localhost]:

and then It stop here long time.. every time I run this and it is the same..

Comments

Try run last step in command.

rossy's picture

[root@localhost aegir]# alias drush='/var/aegir/drush/drush'
[root@localhost aegir]# drush hostmaster-install --aegir_host=localhost --aegir_db_user=aegir_root --aegir_db_pass=c4686d7cbe8f310d221a429bf83f6098 --version=HEAD $@
A Drupal installation directory could not be found [error]
The drush command 'hostmaster-install' could not be found. [error]

You shouldn't run that

mig5's picture

You shouldn't run that command as root.

Do you realise you're installing HEAD? As opposed to the latest official release (this ought not to be the source of your problem though, I'm installing HEAD sometimes 20 times a day at the moment)

You also shouldn't need to specify those --aegir_user db credentials on the command line.

You didn't seem to get prompted for the root mysql user's password (you say you added them to the script - this also should not be required). I think you're hitting this bug http://drupal.org/node/880712

Don't know what causes that, none of us developers go near RedHat based systems if we can help it :)

I'll try and look at why this happens - in the meantime, consider trying to install on a Linux distro reputed to work very well with Aegir (such as Debian or Ubuntu). Obviously this may not be an option for you though.

Thank you for your

rossy's picture

Thank you for your response.
I can not run it if use non root account.
I check the directory "aegir" and there is a hostmaster-HEAD directory, and the drupal files in it.
the password I added in Shell script , then it would promote the tips need you input the password.
Because our CEO have a server install CentOS , so he want to install aegir in CentOS also.

But I don't know why this error happened. I had try many times , create new virtual machine, and install the software follow the instruction, and also the same error like this, in fact, no error shows , just stop there. is it not enough memory ?

I don't believe it's a memory

mig5's picture

I don't believe it's a memory issue but possibly a compatability issue with our install.sh script and Redhat based systems. We try but cannot always test compatability because we don't run those systems.

I'll attempt to debug this some more on a CentOS VM soon.

Thank you for your continued

rossy's picture

Thank you for your continued response.
I changed something this article mentioned : http://groups.drupal.org/node/67328

I added this lines .
173.203.214.158 aegir aegir.obj-a.com
/bin/hostname aegir.obj-a.com
/sbin/service syslog restart

and then it can run the shell script , but something wrong with the apache, I want to restart web server, then show this.
[root@localhost aegir]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf.d/aegir.conf: Permission denied [FAILED]

I remove the link and it point to /var/www/html/ , can you help me?

sudoers

attiks's picture

You added the aegir user to the sudoers?

Yes. like this. The aegir

rossy's picture

Yes. like this.

The aegir user needs to have sudo access. The wizard will explain how to do this, but you can already just add the relevant line to your sudoers file.

/etc/sudoers configuration::
aegir ALL=NOPASSWD: /usr/sbin/apachectl

The default sudo configuration in CentOS requires sudo to run in a real TTY which will make verify and install tasks failed with the message:

"Web server could not be restarted. Changes might not be available until this has been done"

For sudo to behave properly, you should also comment out the following line in your /etc/sudoers file:

Defaults requiretty

did you try sudo service

attiks's picture

did you try sudo service httpd restart

Yes, but I login as root ,

rossy's picture

Yes, but I login as root , and use sudo is the same.

I am reproducing the hang

mig5's picture

I am reproducing the hang after 'admin email', without even having to suffer through using CentOS.

it is hanging on

Running: /var/aegir/drush/drush.php @platform_hostmaster provision-verify --backend [1.55 sec, 6.82 MB] [command]

even in Debian.

I'll investigate this. [Edit] it took forever but it completed. weird

You can probably avoid your problem by not installing HEAD!

Tha nk you for your

rossy's picture

Tha nk you for your testing.

I change the host name and can run the shell.

http://groups.drupal.org/node/102439#comment-326659

but I don't know whether it was installed correctly.

now the problem is the permission denied. what do you think about this ?

Is there somebody can help me

rossy's picture

Is there somebody can help me to find what is the problem ? Thank you .

I am forwarding to use aegir in our project.

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: