After upgrading aegir 3.11 to 3.144, all platform verifies produce the following warning

The composer executable was not found. Install composer using instructions located at https://getcomposer.org/doc/00-intro.md#globally or, if you wish to disable composer install, set "provision_composer_install_platforms" to FALSE in the ~/.drush/drushrc.php file.

Composer Version 1.6.2 is installed globally at /usr/local/bin/composer, 755 permissions.
Drush Version 8.1.16 is installed globally at /usr/local/bin/drush

Running composer manually works fine, from inside a platform or outside. None of the platforms have plat-specific composer or drush installed.

The message is produced when verifying any platform (even the hostmaster platform) and the platforms are still usable, just the tasks turn yellow.

Putting

$options['provision_composer_install_platforms'] = FALSE;

into ~/.drush/local.drushrc.php suppresses the warning.

This was on an Ubuntu 14.04.5 server with PHP 5.5, but I also got the warning on a Debian server (slightly newer PHP 5.6)
Actually, I don't recall seeing this warning on our newest server with PHP 7, which was already upgraded to Aegir 3.144 when I started this upgrade-all-the-things adventure.

Comments

millenniumtree created an issue. See original summary.

jon pugh’s picture

Priority: Normal » Major

Through discussion with millenniumtree on slack we determined it was his hosting queue PATH variable.

/usr/local/bin is where composer gets installed, but it is not included in the hosting queued init file provided by the debian package!

Patch coming

jon pugh’s picture

Branch pushed: 2956408-hosting-queued-path

jon pugh’s picture

Project: Hostmaster (Aegir) » Provision
helmo’s picture

Status: Active » Reviewed & tested by the community
millenniumtree’s picture

I can confirm adding the additional path into /etc/init.d/hosting-queued fixes it for me. Thanks Jon!

  • Jon Pugh committed 01c13a2 on 7.x-3.x
    Issue #2956408: Hosting queued PATH should include /usr/local/bin
    
  • helmo committed bb6f11f on 7.x-3.x
    Issue #2956408: Merge remote-tracking branch 'origin/2956408-hosting-...
helmo’s picture

merged

helmo’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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