I have tried to manually install aegir according to the handbook. After installing drush and downloading provision-6.x-1.4 the command "drush hostmaster-install" fails with the error messages: "The command could not be executed successfully (returned: Could not startup., code: 1)" and "Could not download platform using drush make. No platform present".

I have no idea what these errors mean or what is necessary to fix this, and I could not find any explanation, what could've gone wrong...

Also tried provision-6.x-dev, same. Verbose output for drush showed this:

Platform path does not exist, fetching from drush makefile            [notice]
Undefined offset: 1 backend.inc:163                                   [notice]
Undefined variable: output backend.inc:170                            [notice]
The command could not be executed successfully (returned: Could not[error]
startup.
, code: 1)
Could not download platform using drush make. No platform present  [error]
Command dispatch complete                                             [notice]
Command dispatch complete                                             [notice]

I'm running Arch Linux with MySQL 5.5.16 and PHP 5.3.8, drush 4.5.

Comments

Anonymous’s picture

Category: bug » support
Status: Active » Closed (cannot reproduce)

There are a number of interesting results from a quick google of 'php Could not startup'

Do you have an 'M' appended to your memory_limit in your php.ini ?

https://bugs.php.net/bug.php?id=52549

I get such an error (albeit with a memory message too) when setting my memory_limit to say, 128 instead of 128M

PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
Could not startup.

Are you doing some funky X11 SSH forwarding?

http://www.emcken.dk/weblog/archives/308-php-could-not-startup.html

I don't think this is an Aegir problem.

paulfoos’s picture

I am having the same problem with hostmaster-install, same error message:

make
'/var/aegir/.drush/provision/aegir.make'
'/var/aegir/hostmaster-6.x-1.6' --backend  2>&1 
Undefined offset: 1 backend.inc:163 [32.48 sec, 5.79 MB]                [notice]
Undefined variable: output backend.inc:170 [32.48 sec, 5.79 MB]         [notice]
The command could not be executed successfully (returned: Could not  [error]
startup.
, code: 1) [32.48 sec, 5.79 MB]
Could not download platform using drush make. No platform present

I am doing a manual install of Aegir, following a few different sets of CentOS/RHEL specific instructions I have found.
I tried this with different versions of drush (7.x-4.4, 7.x-4.5, and dev versions) and with previous and dev versions of hostmaster. Still the same error. I have tried stripping back to a basic version of php.ini, still no luck.
I am running RHEL 5.6, PHP 5.3.8 and MySQL 5.0.77. Too bad, because I had a clean install of Aegir on my test server which runs identical software, except it is Ubuntu 10.4.

paulfoos’s picture

Status: Closed (cannot reproduce) » Active
Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)

I am not convinced the error is coming from Aegir, but Drush Make.

Can you confirm you are manually able to 'drush dl drupal', to rule out any network / firewall issues preventing you fetching packages from drupal.org.

Or even make a simply drush makefile and try and 'drush make foobar.make foobar' and see if you reproduce the problem outside of Aegir itself.

paulfoos’s picture

I am able to drush dl drupal fine. I can run other make scripts. I can even go through the install.hostmaster.inc script and run most of the commands manually from the terminal. I tried opening up all permissions in my sudoers file but it didn't help. The aegir user can run other PHP scripts, no problem. The file mentioned in the error, backend.inc, requires json encoding: I tested php-json within the script and it worked fine. I have tried installing various drush.ini configurations and updates to PHP, opening up sudoers, etc. Out of ideas at this point.

keramsey’s picture

I ran into the same issue trying to install Aegir 2.x on CentOS 6.4. The fix for me was to edit the /var/aegir/drush/includes/drush.inc file on line 882 (drush-7.x-5.9.tar.gz) to insert '--no-check-certificate' into the wget statement. Apparently, since wget version 1.10, wget checks certificates by default. CentOS 6.4 uses wget version 1.12.

Apparently, the *drupal.org wildcard certificate causes certificate check to fail. This causes all downloads from https://drupal.org to fail unless the '--no-check-certificate' option is used with wget. I was able to successfully install hostmaster (provision-6.x-2.0-rc4) once the drush.inc file was changed. All tasks in the task queue verified properly.

I am sure there is a better way to fix this issue, but this worked for me. Maybe someone with more experience with drush and aegir (hostmaster-install) could suggest a better workaround. I have seen some discussion of the drush make issue at https://drupal.org/node/1642444, but I am not sure how to implement the fix using drush make so I can successfully install Aegir 2.x on CentOS 6.

keramsey’s picture

Issue summary: View changes

typo

ergonlogic’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (won't fix)

The 1.x branch of Aegir is deprecated. Please re-open if you can re-produce this issue on the latest 2.x or later branches.