Cant seem to get past hosting setup :(
root@myserver:/var/aegir/drupal-6.x# drush -d hosting setup
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.047 sec] [bootstrap]
Initialized Drupal 6.13 root directory at /var/aegir/drupal-6.x [notice]
[0.068 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.074 sec] [bootstrap]
Initialized Drupal site default at sites/default [0.074 sec] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [bootstrap]
[0.079 sec]
Undefined index: scheme [0.081 sec] [notice]
Undefined index: user [0.081 sec] [notice]
Undefined index: host [0.082 sec] [notice]
PDO support available, but the driver has not been installed. [bootstrap]
Assuming success. [0.086 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.086 [bootstrap]
sec]
Successfully connected to the Drupal database. [0.087 sec] [bootstrap]
Cannot modify header information - headers already sent by (output [warning]
started at /var/aegir/drush/includes/drush.inc:439) [0.096 sec]
Cannot modify header information - headers already sent by (output [warning]
started at /var/aegir/drush/includes/drush.inc:439) [0.097 sec]
Drush command could not be completed. [0.097 sec] [error]
Im a little stumped but, could it be something to do with the undefined index notices? I was getting some php_gd errors for a bit but got those cleared. Maybe somethings wrong with my drush setup? Hopefully ill squash this quick!
Comments
Comment #1
Macronomicus commentedwell i updated drush via cvs & still no luck .. so maybe its not drush after all. I wonder what could be causing this... ugh...
Comment #2
adrian commentednever run aegir as root.
you need to create a new user account for aegir, and make sure the files belong to that user.
Comment #3
anarcat commentedPlease try to run the drush command with
--verbose 2 --debugand post the log again. Where do you run the hosting setup command from? You should be sitting in your drupal install where aegir is installed, i think...Edit: see what adrian says: don't run as root. :) Did you follow the wizard's instructions?
Comment #4
Macronomicus commentedlooks the same to me... no?
Must be something to do with the modify header bits? ... still diggin >_<
Comment #5
Macronomicus commentedWhats strange is that ive had drush working perfectly on this server for months ... but I removed it to install aegir and drush fresh together. I'm wondering if drush is not liking being in the aegir dir?
PHP Version 5.2.9-0.dotdeb.2
Ubuntu server 8.10
MySQL 5.0.67
Apache/2.2.9
APC/3.0.19
Comment #6
Macronomicus commentedIs it proper setup that I have both .drush and drush directories in the aegir dir? .drush contains provision should that be moved to the drush dir instead?
Comment #7
Macronomicus commentednope thats not it ... maybe something with this http://drupal.org/node/399140 but AFAICT I am using the most recent drush which should have that fix in it.
Somethings amiss in my environment. Fun stuff!
The only thing ive done recently is setup rsnapshot, i dont see how that would muck with drush.
Comment #8
Macronomicus commentedWell I seem to have fixed the headers warning but now im getting a hosting dispatch error. Getting closer...
aegir@myserver:~/drupal-6.x$ drush -v -d -l http://mysite.com hosting setup
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.067 sec] [bootstrap]
Initialized Drupal 6.13 root directory at /var/aegir/drupal-6.x [notice]
[0.088 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.095 sec] [bootstrap]
Initialized Drupal site mysite.com at sites/mysite.com [notice]
[0.095 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [bootstrap]
[0.101 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.117 [bootstrap]
sec]
Successfully connected to the Drupal database. [0.118 sec] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.134 sec] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [0.483 sec] [bootstrap]
Found command: hosting setup [0.492 sec] [bootstrap]
php '/var/aegir/drush/drush.php' hosting dispatch --root='/var/aegir/drupal-6.x'Dispatch command could not be run. Returned: [error]
Drush command could not be completed.
[error] [0.688 sec]
The command did not complete successfully, please fix the issues and re-run this script.Command dispatch complete [notice]
EDIT:woops had to remove real addresses.
Comment #9
Macronomicus commentedI think ive tried just about everything I can think of and could find in the issues cue n; google searching. The only thing left to check is the PDO support available, but the driver has not been installed. bootstrap message. Still my environment has not changed since long before I installed aegir... and drush was working before too, weirdness. ...guess I might need to restore my system to pre-aegir.... still Id like to exhaust all avenues first cause everything seems so close.
drupal installed fine, my domain name works the vhost is in place and working... hosting modules install and almost makes it through the wizard but stops @ /var/aegir/drush/drush.php --debug -v -l hosting setup
aaarrrrgg! lol
Comment #10
Macronomicus commentedHmm .. im wondering if I have the same problem as #3 @ http://drupal.org/node/454010
I went ahead and installed pecl and then PDO ... it should be good to go but I still get the same...
PDO support available, but the mysql driver has not been installed.How do I assure, as you said;" Are you sure the mysql driver is loaded in the commandline version of PHP?"..
Comment #11
Macronomicus commentedok scratch that I reverted to drush-All-Versions-2.0-rc1 as per suggestion in above post (solved pdo warning) but im still getting a fail on hosting dispatch IF I use -l mysite.com in the command if I leave that out I get
So whatever my problem is .. its not pdo! lol
Comment #12
Macronomicus commentedYAY!! I knew if I walked away for a bit and came back I would get it going!
Had some drush issues (wasn't using head) doh!!
...and there were several problems with the server environment too which I sorted.
Now onto the 14 new sites I have to build!
Comment #13
avdp commentedhi macrocosm,
Could you explain what you did to make it work?
This could help me (and others).
Comment #14
Macronomicus commentedWell the worst issue was not using drush head ... the worst because it was so blatantly simple!
Other issues I had were not having postfix for outgoing configured properly. I use google apps for the rest...
Also I had an old v-host file for my server which conflicted with the new aegir v-host file for the same domain name.
There was also a bit of a mess in my permissions ... in the end I reinstalled agier, drush, provisiosn etc and everything worked wonderfully.
Im much more familier with my system now and am working on some security precautions n such ... the system is still running smoothly!
Its only been a day and I dont know how ive lived without aegir... its like finding firebug!
Comment #16
jayb1 commentedCould you please be a little more specific on how you resolved this issue? I am seeing the same error.
Cannot modify header information - headers already sent by (output [warning]
started at /var/aegir/drush/includes/drush.inc:439) [0.097 sec]
Cannot modify header information - headers already sent by (output [warning]
started at /var/aegir/drush/includes/drush.inc:439) [0.097 sec]
Drush command could not be completed. [0.097 sec] [error]
Sincerely,
Comment #17
Macronomicus commentedWell thats just it .. I couldn't really figure what was wrong .. so I uninstalled Aegir and then made sure the rest of my server stuff was in order & then reinstalled Aegir which seemed to fix it .. never had this trouble again tho and ive installed many times.