I am unable to create a 'pack' server using Drush, whilst it works fine using the web UI. The command to create a 'pack' exits with a "Segmentation fault". The equivalent command to create a normal "apache" web server works fine:

$ drush @hm provision-save server_examplecom --context_type=server --remote_host=example.com --http_service_type='apache' --http_port=80
Generated config in write(): Drush configuration file (/var/aegir/.drush/server_examplecom.alias.drushrc.php)
Changed permissions of /var/aegir/.drush/server_examplecom.alias.drushrc.php to 440
$ drush @hm provision-save server_pack --context_type=server --http_service_type='pack' --slave_web_servers='example1.com,example2.com' --master_web_servers='example.com'
Segmentation fault

Comments

sdrycroft’s picture

Issue summary: View changes
helmo’s picture

Could you run it with the --debug option? That might provide some details on where it fails.

sdrycroft’s picture

Thanks helmo, I was about to post back with my own findings. It may be worth noting that I'm using Debian 8 and therefore PHP 5.6. I've just tried reverting back the most recent changes to the provision/http/Provision/Service/http/pack.php file (admittedly from Oct and May 2013), and found that removing the changes introduced by #1784108: pack (and cluster?) modules incompatible with SSL fixed the problem. I have included the debugging code below from without reverting the change and with the code reverted.

Without

Bootstrap to phase 0. [0 sec, 1.87 MB]
Drush bootstrap phase : _drush_bootstrap_drush() [0 sec, 1.99 MB]
Loading drushrc "/var/aegir/.drush/drushrc.php" into "home.drush" scope. [0 sec, 1.99 MB]
Loaded alias @hm from file /var/aegir/.drush/hm.alias.drushrc.php [0.01 sec, 2.01 MB]
Loading drushrc "/var/aegir/hostmaster/sites/exampleaegirsite/drushrc.php" into "site" scope. [0.01 sec, 2.01 MB]
Cache SET cid: 6.2.0-alias-path--67be755958b25b42f89d2f525acb95e0 [0.01 sec, 2.5 MB]
Loading drushrc "/var/aegir/hostmaster/sites/all/drush/drushrc.php" into "drupal" scope. [0.01 sec, 2.5 MB]
Loading drushrc "/var/aegir/hostmaster/sites/exampleaegirsite/drushrc.php" into "site" scope. [0.02 sec, 2.94 MB]
Cache HIT cid: 6.2.0-commandfiles-0-a5a9f5867ef7423823578c8b5d380b6c [0.02 sec, 2.95 MB]
Bootstrap to phase 0. [0.08 sec, 7.2 MB]
Bootstrap to phase 0. [0.11 sec, 7.2 MB]
Found command: provision-save (commandfile=provision) [0.11 sec, 7.2 MB]
Loaded alias @server_localhost from file /var/aegir/.drush/server_localhost.alias.drushrc.php [0.28 sec, 7.24 MB]
Loaded alias @server_master from file /var/aegir/.drush/server_master.alias.drushrc.php [0.41 sec, 7.25 MB]
Driver type not specified for the db service, provide it with --db_service_type [0.41 sec, 7.25 MB]
Driver type not specified for the example service, provide it with --example_service_type [0.41 sec, 7.27 MB]
Loading pack driver for the http service [0.41 sec, 7.31 MB]
Driver type not specified for the server_data service, provide it with --server_data_service_type [0.41 sec, 7.31 MB]
Driver type not specified for the site_data service, provide it with --site_data_service_type [0.41 sec, 7.31 MB]
Loading mysql driver for the db service [0.41 sec, 7.43 MB]
Driver type not specified for the example service, provide it with --example_service_type [0.41 sec, 7.43 MB]
Loading pack driver for the http service [0.41 sec, 7.44 MB]
Driver type not specified for the server_data service, provide it with --server_data_service_type [0.41 sec, 7.44 MB]
Driver type not specified for the site_data service, provide it with --site_data_service_type [0.41 sec, 7.44 MB]
Loaded alias @platform_hostmaster from file /var/aegir/.drush/platform_hostmaster.alias.drushrc.php [0.51 sec, 7.45 MB]
Driver type not specified for the db service, provide it with --db_service_type [0.52 sec, 7.47 MB]
Driver type not specified for the example service, provide it with --example_service_type [0.52 sec, 7.47 MB]
Loading pack driver for the http service [0.52 sec, 7.47 MB]
Driver type not specified for the server_data service, provide it with --server_data_service_type [0.52 sec, 7.48 MB]
Driver type not specified for the site_data service, provide it with --site_data_service_type [0.52 sec, 7.48 MB]
Segmentation fault

With

Bootstrap to phase 0. [0 sec, 1.87 MB]
Drush bootstrap phase : _drush_bootstrap_drush() [0 sec, 1.99 MB]
Loading drushrc "/var/aegir/.drush/drushrc.php" into "home.drush" scope. [0.01 sec, 1.99 MB]
Loaded alias @hm from file /var/aegir/.drush/hm.alias.drushrc.php [0.01 sec, 2.01 MB]
Loading drushrc "/var/aegir/hostmaster/sites/sp-control-1.nhm.ac.uk/drushrc.php" into "site" scope. [0.01 sec, 2.01 MB]
Cache SET cid: 6.2.0-alias-path--67be755958b25b42f89d2f525acb95e0 [0.01 sec, 2.5 MB]
Loading drushrc "/var/aegir/hostmaster/sites/all/drush/drushrc.php" into "drupal" scope. [0.01 sec, 2.5 MB]
Loading drushrc "/var/aegir/hostmaster/sites/sp-control-1.nhm.ac.uk/drushrc.php" into "site" scope. [0.02 sec, 2.94 MB]
Cache HIT cid: 6.2.0-commandfiles-0-a5a9f5867ef7423823578c8b5d380b6c [0.02 sec, 2.95 MB]
Bootstrap to phase 0. [0.08 sec, 7.2 MB]
Bootstrap to phase 0. [0.11 sec, 7.2 MB]
Found command: provision-save (commandfile=provision) [0.11 sec, 7.2 MB]
Loaded alias @server_localhost from file /var/aegir/.drush/server_localhost.alias.drushrc.php [0.24 sec, 7.24 MB]
Loaded alias @server_master from file /var/aegir/.drush/server_master.alias.drushrc.php [0.34 sec, 7.25 MB]
Driver type not specified for the db service, provide it with --db_service_type [0.34 sec, 7.25 MB]
Driver type not specified for the example service, provide it with --example_service_type [0.35 sec, 7.27 MB]
Loading pack driver for the http service [0.35 sec, 7.31 MB]
Driver type not specified for the server_data service, provide it with --server_data_service_type [0.35 sec, 7.31 MB]
Driver type not specified for the site_data service, provide it with --site_data_service_type [0.35 sec, 7.31 MB]
Loading mysql driver for the db service [0.35 sec, 7.43 MB]
Driver type not specified for the example service, provide it with --example_service_type [0.35 sec, 7.43 MB]
Loading pack driver for the http service [0.35 sec, 7.43 MB]
Driver type not specified for the server_data service, provide it with --server_data_service_type [0.35 sec, 7.43 MB]
Driver type not specified for the site_data service, provide it with --site_data_service_type [0.35 sec, 7.43 MB]
Loaded alias @platform_hostmaster from file /var/aegir/.drush/platform_hostmaster.alias.drushrc.php [0.46 sec, 7.46 MB]
Invalid argument supplied for foreach() pack.php:49 [0.46 sec, 7.47 MB]
Invalid argument supplied for foreach() pack.php:49 [0.46 sec, 7.47 MB]
Calling hook drush_provision_save [0.46 sec, 7.49 MB]
Loaded alias @server_pack from file /var/aegir/.drush/server_pack.alias.drushrc.php [0.6 sec, 7.52 MB]
Driver type not specified for the db service, provide it with --db_service_type [0.61 sec, 7.52 MB]
Driver type not specified for the example service, provide it with --example_service_type [0.61 sec, 7.53 MB]
Loading pack driver for the http service [0.61 sec, 7.53 MB]
Driver type not specified for the server_data service, provide it with --server_data_service_type [0.61 sec, 7.53 MB]
Driver type not specified for the site_data service, provide it with --site_data_service_type [0.61 sec, 7.53 MB]
Template loaded from Provision Config class Provision_Config_Drushrc_Alias: /var/aegir/.drush/provision/Provision/Config/Drushrc/provision_drushrc_alias.tpl.php [0.61 sec, 7.67 MB]
Changed permissions of /var/aegir/.drush/server_pack.alias.drushrc.php to 640 [0.61 sec, 7.67 MB]
Generated config in write(): Drush configuration file (/var/aegir/.drush/server_pack.alias.drushrc.php) [0.61 sec, 7.67 MB]
Changed permissions of /var/aegir/.drush/server_pack.alias.drushrc.php to 440 [0.61 sec, 7.67 MB]
Returned from hook drush_provision_save [0.61 sec, 7.67 MB]
Command dispatch complete [0.61 sec, 7.64 MB]
Peak memory usage was 9.61 MB [0.61 sec, 7.63 MB]
sdrycroft’s picture

Sorry, I should also have said that I found that without the file reverted the code gets into a loop between the init_site() and _each_server() functions within the Provision_Service_http_pack class. I'd debug this further, but won't be able to until I'm back in the office on Tuesday.

sdrycroft’s picture

Any progress with this?