First I couldn't find where to submit this issue, but since it is when a site is being created I figured this is the right issue queue.

I currently have two aegir systems one acts as the master (so the front end and db) then I have another that is just a remote server with no front end.

I have successfully created a platform from my master to the remote server. However, when I go to create a site it fails and I get the following errors back.

1. Undefined offset: 1 backend.inc:163
2. Undefined variable: output backend.inc:170

By looking at the code from backend.inc (below) we can just ignore issue #2. It will be fixed when #1 is fixed. However, I'm having problems with following this code and how it could work because I do not see where $match[1] gets set.

I hope I've given enough information.

<?php
/**
 * Parse output returned from a Drush command.
 *
 * @param string
 *    The output of a drush command
 * @param integrate
 *    Integrate the errors and log messages from the command into the current process.
 *
 * @return
 *   An associative array containing the data from the external command, or the string parameter if it
 *   could not be parsed successfully.
 */
function drush_backend_parse_output($string, $integrate = TRUE) {
  $regex = sprintf(DRUSH_BACKEND_OUTPUT_DELIMITER, '(.*)');

  preg_match("/$regex/s", $string, $match);

  if ($match[1]) {
    // we have our JSON encoded string
    $output = $match[1];
    // remove the match we just made and any non printing characters
    $string = trim(str_replace(sprintf(DRUSH_BACKEND_OUTPUT_DELIMITER, $match[1]), '', $string));
  }

  if ($output) {
    $data = json_decode($output, TRUE);
    if (is_array($data)) {
      if ($integrate) {
        _drush_backend_integrate($data);
      }   
      return $data;
    }   
  }
  return $string;
}
?>

EDIT:: Added the php tags to get colored code.

Comments

Steven Brown’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev
Status: Postponed (maintainer needs more info) » Active

Sorry I forgot the big red error it threw at me.

The command could not be executed successfully (returned: sh: line 1: 25366 Segmentation fault /usr/bin/php /var/aegir/drush/drush.php --php='/usr/bin/php' --client_email='techsupport@domain.com' @doman.com provision-install-backend --backend 2>&1 , code: 139)

steven jones’s picture

Version: 7.x-2.x-dev » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

How much memory have you allocated to PHP cli on the the master server? You may need to increase the limit.

Steven Brown’s picture

memory_limit = -1

Which as far as I know that means unlimited.

Steve Dondley’s picture

I had the same issue. I was using linode with 512MB. After boosting it up to 1536MB, I was able to install sites.

theohawse’s picture

Version: 7.x-2.x-dev » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

I found a solution here: http://dev.antoinesolutions.com/free-open-source-php-ide-debian-5/php-de...
Still on a 512M linode

Added to my own notes

PHP - Change settings in both config files:
vi /etc/php5/cli/php.ini and
vi /etc/php5/apache2/php.ini

	expose_php = Off
	memory_limit = 256M
	max_execution_time = 120
	upload_max_filesize = 64M
	post_max_size = 64M
	sendmail_path = /usr/sbin/sendmail -t -i 

Now all the previously failed migrations are succeeding!

Steven Brown’s picture

@theohawse thanks for your update. I have since moved away from the Master Slave scenario for the servers. I'm sure I will revisit this again in the near future.

Steven Brown’s picture

Status: Postponed (maintainer needs more info) » Fixed

As this issue is over a year old and the Aegir cluster setup is now different. I'm going to mark as fixed. Feel free to change it back if needed.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Added php tags to get colored code.