Hello,
Seeing these errors:
Undefined index: db_type provision_drupal.drush.inc:143 [3.48 sec, 9.64 MB] [notice]
Undefined index: db_type provision_drupal.drush.inc:144 [3.48 sec, 9.64 MB] [notice]
Undefined index: db_user provision_drupal.drush.inc:143 [3.48 sec, 9.64 MB] [notice]
Undefined index: db_user provision_drupal.drush.inc:144 [3.48 sec, 9.64 MB] [notice]
Undefined index: db_passwd provision_drupal.drush.inc:143 [3.48 sec, 9.64 MB] [notice]
Undefined index: db_passwd provision_drupal.drush.inc:144 [3.48 sec, 9.64 MB] [notice]
Undefined index: db_host provision_drupal.drush.inc:143 [3.48 sec, 9.64 MB] [notice]
Undefined index: db_host provision_drupal.drush.inc:144 [3.48 sec, 9.64 MB] [notice]
Undefined index: db_name provision_drupal.drush.inc:143 [3.48 sec, 9.64 MB] [notice]
Undefined index: db_name provision_drupal.drush.inc:144 [3.48 sec, 9.65 MB] [notice]
Undefined index: db_port provision_drupal.drush.inc:143 [3.48 sec, 9.65 MB] [notice]
Undefined index: db_port provision_drupal.drush.inc:144 [3.48 sec, 9.65 MB]
when running
drush hostmaster-install --aegir_db_user=myadmin --aegir_db_pass=myadminpasswd --aegir_root=/pathto/aegir --debug
I output the $_SERVER array from /pathto/aegir/.drush/provision/platform/provision_drupal.drush.inc, and the relevant output is
[db_type] =>
[db_host] =>
[db_user] =>
[db_passwd] =>
[db_name] =>
[db_port] =>
i.e., empty.
This also happens when I use:
drush hostmaster-install --aegir_host=hostname --db_service_type=mysql --db_port=3306 --aegir_db_host=hostname --aegir_db_user=myadmin --aegir_db_pass=myadminpasswd --aegir_root=/pathto/aegir --debug .
Looks like this further yields this error:
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [3.48 sec, 9.65 MB] [bootstrap]
!type database type is unsupported. [3.48 sec, 9.66 MB] [error]
Drush was not able to start (bootstrap) the Drupal database. [error]
Hint: This error often occurs when Drush is trying to bootstrap a site that has not been installed or does not have a configured database.
Could this be a bug ... any ideas on how to fix or work around this issue?
Running:
Redhat Enterprise 6.0
PHP 5.3.2
MySQL 5.1
Many thanks!
Comments
Comment #1
larowlanSubscribe
Comment #2
larowlanYou might need to make sure that the aegir user can run sudo apachectl graceful - RHEL systems don't let users run sudo without a tty - you can set this up for the aegir user by editing your sudoers file using the visudo command and adding the following line:
Comment #3
marafa commentedhi
i have managed to successfully install on centos 5 and the lesson learned are:
1. /var/aegir is hardcoded into other parts of the script
2. i wrote an install script for myself at http://community.aegirproject.org/discuss/hostmaster-automatic-install-c...
Comment #4
anarcat commentedCould you provide the full --debug log for this?
The server settings should normally be saved in an alias in ~/.drush/server_master.alias.drushrc.php and server_localhost.alias.drushrc.php, so you should also look there.
Comment #5
kmasood commentedI am terribly sorry, it has been a while, and I am unsure what exactly we did to resolve this error. We ended up reinstalling a couple of times and had to create some sym links to accommodate our setup, but I can't recall what solved this particular issue. /-:
Thanks for checking in!
Comment #6
anarcat commentedOkay, glad to hear you managed to install aegir! I'll be closing this issue for now, please reopen with instructions on how to reproduce and a traceback of the install with --debug for us to diagnose the issue.
Thanks!
Comment #7
lakshminp commentedGetting the same issue in Ubuntu 10.10. Here is my --debug output. I am also able to do a sudo apachectl seamlessly.
Comment #8
Anonymous (not verified) commentedwtf..
Comment #9
lakshminp commentedI'm also getting the same error on Ubuntu 10.10. I've attached my --debug output.
Comment #10
Anonymous (not verified) commentedYour error is here:
PROVISION_SITE_INSTALLED [20.69 sec, 14.3 MB] [error]
You need to clear out your earlier attempt at installing Aegir (remove the unameit-desktop dir from /var/aegir/hostmaster-6.x-1.5/sites)) before trying again.
Comment #11
lakshminp commentedThanks. That worked.
Comment #12
lakshminp commentedStill getting the "Undefined index" error messages.
Comment #13
marafa commentedlakshminp
:)
please open a new ticket for each unique issue that you have. that makes it easier for others to read the subject line and decide if the issues is relevant to them or otherwise.
Comment #15
anarcat commented