i ran the "/var/aegir/drush/drush.php --uri=http://aegir.domain.net hosting setup" command in shell from my drupal directory as the aegir user

and i get this error:

/var/aegir/drush/drush.php --uri=http://aegir.domain.net hosting setup
php 'var/aegir/drush/drush.php' hosting dispatch --root='/var/aegir/drupal-6.14' --uri=http://aegir.domain.netCould not open input file: var/aegir/drush/drush.php
Dispatch command could not be run. Returned: [error]

The command did not complete successfully, please fix the issues and re-run this s

i have looked all through the issues and have not found a way to resolve this problem

Comments

Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)
Could not open input file: var/aegir/drush/drush.php

It looks like it's missing the first slash at the start. Hence the error why it can't open the file: it'll be looking for it in /var/aegir/drupal-6.14/var/drush/drush.php .

In the installation, you may have entered 'var/aegir/drush/drush.php' as the path to the Drush executable, instead of '/var/aegir/drush/drush.php' .

You could check this by connecting to the aegir database in mysql and running:

mysql> select drush_path from hosting_web_server;
+------------------------------+
| drush_path                   |
+------------------------------+
| /var/aegir/drush/drush.php | 
+------------------------------+
1 row in set (0.00 sec)

If you see 'var/aegir/drush/drush.php' without the first slash / , update it in the database:

mysql> update hosting_web_server set drush_path='/var/aegir/drush/drush.php' where drush_path='var/aegir/drush/drush.php';

After that, the hosting setup command should work. Let us know how you go.

z.stolar’s picture

Version: 6.x-0.4-alpha1 » 6.x-0.4-alpha2
Status: Postponed (maintainer needs more info) » Active

I have verified the correctness of the above variable. I still get that error.
Let me know which other data you need from me.

Anonymous’s picture

Status: Active » Fixed

I believe zstolar did a reinstall and the problem went away. A missing or misplaced component or wrong version of something must have been the root cause.

z.stolar’s picture

So I did, and the problem went away for me, but I'm not sure it was really fixed... I reinstalled to version 6.x-0.3. The version in this issue is 0.4-alpha.
If I have the courage, I'll do a fresh 0.4 install and retry.

davidburns’s picture

I'm getting this error as well. I ran the install.sh file provide here.

when i manually link drush.php to /usr/sbin/drush and restart my terminal to test 'drush' I get errors.
When I run 'php /var/aegir/drush/drush.php' it executes just fine.

Status: Fixed » Closed (fixed)

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