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
Comment #1
Steven Brown commentedSorry 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)
Comment #2
steven jones commentedHow much memory have you allocated to PHP cli on the the master server? You may need to increase the limit.
Comment #3
Steven Brown commentedmemory_limit = -1
Which as far as I know that means unlimited.
Comment #4
Steve Dondley commentedI had the same issue. I was using linode with 512MB. After boosting it up to 1536MB, I was able to install sites.
Comment #5
theohawse commentedI 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
Now all the previously failed migrations are succeeding!
Comment #6
Steven Brown commented@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.
Comment #7
Steven Brown commentedAs 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.
Comment #8.0
(not verified) commentedAdded php tags to get colored code.