Skip to content

Instantly share code, notes, and snippets.

@waako
Last active December 21, 2015 22:49
Show Gist options
  • Save waako/6378043 to your computer and use it in GitHub Desktop.
Save waako/6378043 to your computer and use it in GitHub Desktop.
Problems building Open Atrium site on Vagrant box

Steps to reproduce problems:

$ git clone https://github.com/cyberswat/drupal-lamp/

Update .drupal_lamp.json to be:

{
  "mysql": {
    "tunable": {
      "max_allowed_packet": "16M",
      "key_buffer_size": "32M",
      "max_connect_errors": "1000",
      "tmp_table_size": "32M",
      "max_connections": "500",
      "thread_cache_size": "50",
      "table_open_cache": "512",
      "innodb_flush_log_at_trx_commit": "0",
      "innodb_file_per_table": "1",
      "innodb_buffer_pool_size": "128M",
      "innodb_flush_method": "O_DIRECT",
      "sync_binlog": "0"
    }
  },
  "drupal": {
    "sites": {
      "openatrium": {
        "deploy": true,
        "clean": true,
        "releases": 1,
        "files": "sites/default/files",
        "settings": "sites/default/settings.php",
        "repository": {
          "uri": "https://github.com/waako/openatrium2.git",
          "revision": "master"
        },
        "profile": "openatrium",
        "install": {
          "--clean-url": 1
        }
      }
    }
  }
}

Error returned:

WD php: Exception: Sorry, the profile you have chosen cannot be loaded. in install_load_profile() (line 1348 of /assets/openatrium/releases/20130829135447/includes/install.core.inc).
WD php: Warning: Cannot modify header information - headers already sent by (output started at /opt/drush/includes/output.inc:37) in drupal_send_headers() (line 1212 of /assets/openatrium/releases/20130829135447/includes/bootstrap.inc).
[2013-08-29T14:05:27+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-08-29T14:05:27+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: deploy[/srv/www/openatrium] (drupal::default line 72) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[drush-site-install] (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/drupal/recipes/default.rb line 112) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of drush -y site-install openatrium --clean-url=1 --db-url=mysql://drupal:drupal@localhost/openatrium --account-name=admin --account-pass=admin
----
STDOUT: You are about to create a sites/default/settings.php file and DROP all tables in your 'openatrium' database. Do you want to continue? (y/n): y
Exception: Sorry, the profile you have chosen cannot be loaded. in install_load_profile() (line 1348 of /assets/openatrium/releases/20130829135447/includes/install.core.inc).
STDERR: No tables to drop. [ok]
Starting Drupal installation. This takes a few seconds ... [ok]
WD php: Exception: Sorry, the profile you have chosen cannot be loaded. in install_load_profile() (line 1348 of /assets/openatrium/releases/20130829135447/includes/install.core.inc). [error]
WD php: Warning: Cannot modify header information - headers already sent by (output started at /opt/drush/includes/output.inc:37) in drupal_send_headers() (line 1212 of /assets/openatrium/releases/20130829135447/includes/bootstrap.inc). [warning]
Drush command terminated abnormally due to an unrecoverable error. [error]
---- End output of drush -y site-install openatrium --clean-url=1 --db-url=mysql://drupal:drupal@localhost/openatrium --account-name=admin --account-pass=admin
----
Ran drush -y site-install openatrium --clean-url=1 --db-url=mysql://drupal:drupal@localhost/openatrium --account-name=admin --account-pass=admin
returned 1
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment