Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Since aegir3.3, when I install aegir 3.3, the install fails, while it worked previously. I install with chef on my servers with the aegir3 cookbook.
The only meaningful item in the output is:
sh: 1: drush: not found
Output before that below.
I think it has to do with the install working with composer, which actually installs in .config/composer ... instead of .composer. Which makes sure that the entry in .bashrc is incorrect ,and also the symlink from /usr/local/bin
My guess would be the failure is in the lines
# Install Drush.
su -c "composer global require drush/drush:$DRUSH_VERSION" aegir
Creating config file /etc/sudoers.d/aegir with new version
All settings correct for using Composer
Downloading...
aegir1.production.imindsx.org
Composer successfully installed to: //composer.phar
Use it: php composer.phar
Changed current directory to /var/aegir/.config/composer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing pear/console_table (v1.2.1)
Downloading: 100%
aegir1.production.imindsx.org
- Installing symfony/polyfill-mbstring (v1.1.0)
Downloading: 100%
aegir1.production.imindsx.org
- Installing symfony/var-dumper (v2.8.2)
Downloading: 100%
aegir1.production.imindsx.org
- Installing symfony/yaml (v2.7.9)
Downloading: 100%
aegir1.production.imindsx.org
- Installing jakub-onderka/php-console-color (0.1)
Downloading: 100%
aegir1.production.imindsx.org
- Installing jakub-onderka/php-console-highlighter (v0.3.2)
Downloading: 100%
aegir1.production.imindsx.org
- Installing dnoegel/php-xdg-base-dir (0.1)
Downloading: 100%
aegir1.production.imindsx.org
- Installing nikic/php-parser (v2.0.0)
Downloading: 100%
aegir1.production.imindsx.org
- Installing symfony/console (v3.0.1)
Downloading: 100%
aegir1.production.imindsx.org
- Installing psy/psysh (v0.6.1)
Downloading: 100%
aegir1.production.imindsx.org
- Installing psr/log (1.0.0)
Downloading: 100%
aegir1.production.imindsx.org
- Installing drush/drush (8.0.2)
Downloading: 100%
aegir1.production.imindsx.org
pear/console_table suggests installing pear/Console_Color2 (>=0.1.2)
symfony/var-dumper suggests installing ext-symfony_debug ()
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/process ()
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
drush/drush suggests installing drush/config-extra (Provides configuration workflow commands, such as config-merge.)
Writing lock file
Generating autoload files
aegir1.production.imindsx.org
Creating config file /etc/php5/apache2/php.ini with new version
php5_invoke json: already enabled for apache2 SAPI
php5_invoke gd: already enabled for apache2 SAPI
php5_invoke mysqli: already enabled for apache2 SAPI
php5_invoke pdo_mysql: already enabled for apache2 SAPI
php5_invoke pdo: already enabled for apache2 SAPI
php5_invoke opcache: already enabled for apache2 SAPI
php5_invoke readline: already enabled for apache2 SAPI
php5_invoke mysql: already enabled for apache2 SAPI
apache2_switch_mpm Switch to prefork
apache2_invoke: Enable module php5
sh: 1: drush: not found










Comments
Comment #2
JimCraner CreditAttribution: JimCraner commentedConfirming the same problem on a fresh Ubuntu 14.04 following the package-installation-option instructions here: https://aegir.readthedocs.org/en/3.x/install/
After the failure, I installed Drush 8 globally, then ran "apt-get install aegir3" to resume the Aegir config process which appears to have completed successfully (I think :-)
Comment #3
daften CreditAttribution: daften at Picabit commentedThanks for the workaround, I'll try it.
Did you install globally with the default method (wget; move, chmod a+x)?
Comment #4
ergonlogicI suggest that, for Drush 8+, we simply download and symlink the phar. We should be able to switch easily enough based on version, and keep the existing behaviour for older versions. This would be around this part of the debian scripts: http://cgit.drupalcode.org/provision/tree/debian/aegir3-provision.postin...
Comment #5
ergonlogicHaving just manually tested installing
aegir3-provision, I can confirm that 'drush' is not available.Comment #6
ergonlogicDrush is however installed in
/var/aegir/.config/composer/vendor/drush/drush. I just pushed an initial fix that just points to the new location to which Composer installed Drush. Let's see if that resolves the immediate problem.Note that our tests were affected by https://github.com/composer/composer/issues/4789. to the extent that we can remove Composer as a dependency here, the better, as far as I'm concerned. Since Drush is available as a .phar now, I'd still like to move to that deployment mechanism.
Comment #7
ergonlogicThe latest unstable build includes this fix, and works as expected.
Comment #8
ergonlogicWe're planning to also fix #2625168: Drush master changed logging over the weekend, and put out a 3.4 release addressing this on Monday. I'll look into moving to the drush.phar as well.
Comment #9
ergonlogicBy the way, there's a very simple work-around:
Then re-install:
sudo apt-get install aegir3Comment #10
helmo CreditAttribution: helmo at Initfour websolutions commentedI'm not sure it's fixed ....
These two jobs are still failing.
http://ci.aegirproject.org/view/Debian%20dev%20builds/job/D_aegir3-debia...
http://ci.aegirproject.org/view/Upgrades/job/U_aegir_7.x-3.x-stable-to-u...
Looking in the composer sources I see a reference to XDG_CONFIG_HOME on the only place "~/.config/composer" is used ... in many other places they still mention "~/.composer/"
Comment #11
helmo CreditAttribution: helmo at Initfour websolutions commented@ergonlogic I think need to revert your commit.
Comment #12
ergonlogicBy all means, go right ahead if you have a better fix.
Comment #14
helmo CreditAttribution: helmo at Initfour websolutions commentedHope this new commits works ... I'll see the results tomorrow morning.
Comment #15
daften CreditAttribution: daften at Picabit for iMinds commentedExcellent news here so far. The workaround works, and I'll be very glad if a 3.4 release could be made quickly so installs work out of the box.
Thanks so much!
Comment #16
ergonlogicWe're using phars for Drush 8+, which is the default now, composer otherwise.
please re-open if you see any further problems with Debian/Ubuntu installs.
Comment #17
mengi CreditAttribution: mengi commentedI installed Aegir 3.4 today and received some warnings and errors.
The install seems to be successful and the hostmaster site works but on the initial import task of the hostmaster site and the initial verify task of the hostmaster web server I got a warning;
All verify tasks will fail with the error;
Comment #18
mengi CreditAttribution: mengi commentedComment #19
mengi CreditAttribution: mengi commentedNot sure what happened different, but I got it to work.
I ran the command on post #9 but received this error;
ln: failed to create symbolic link '/usr/local/bin/drush': File existsThen I ran 'apt-get update' and 'apt-get install aegir3' again and it seemed to reinstall hostmaster and provision.
Now servers and sites verify correctly and everything seems to be working fine.
Comment #20
daften CreditAttribution: daften at Picabit for iMinds commentedA bit late, but this was fixed perfectly. I was able to install fresh servers the same day. Excellent work and thanks so much to everybody involved!