AOEpeople / chef-devbox

19 stars 9 forks source link

Chef provisioning failed #3

Open bordeo opened 9 years ago

bordeo commented 9 years ago

Hi Fabrizio i'm tryng to run vagrant but i stop on this problem during chef provisioning running both on osx and ubuntu 14.04, i tried many times.

What problem can be?

* apt_package[php5] action upgrade

    ================================================================================
    Error executing action `upgrade` on resource 'apt_package[php5]'
    ================================================================================

    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '100'
    ---- Begin output of apt-get -q -y install php5=5.5.9+dfsg-1ubuntu4.7 ----
    STDOUT: Reading package lists...
    Building dependency tree...
    Reading state information...
    The following extra packages will be installed:
      libapache2-mod-php5 php5-cli php5-common php5-json php5-readline
    Suggested packages:
      php-pear php5-user-cache
    The following NEW packages will be installed:
      libapache2-mod-php5 php5 php5-cli php5-common php5-json php5-readline
    0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    Need to get 4860 kB of archives.
    After this operation, 20.5 MB of additional disk space will be used.
    Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main php5-json amd64 1.3.2-2build1 [34.4 kB]
    Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-common amd64 5.5.9+dfsg-1ubuntu4.7 [442 kB]
    Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-cli amd64 5.5.9+dfsg-1ubuntu4.7 [2163 kB]
    Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-readline amd64 5.5.9+dfsg-1ubuntu4.7 [12.1 kB]
    Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libapache2-mod-php5 amd64 5.5.9+dfsg-1ubuntu4.7 [2208 kB]
    Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5 all 5.5.9+dfsg-1ubuntu4.7 [1306 B]
    Fetched 4860 kB in 37s (131 kB/s)
    Selecting previously unselected package php5-json.
    (Reading database ... 106794 files and directories currently installed.)
    Preparing to unpack .../php5-json_1.3.2-2build1_amd64.deb ...
    Unpacking php5-json (1.3.2-2build1) ...
    Selecting previously unselected package php5-common.
    Preparing to unpack .../php5-common_5.5.9+dfsg-1ubuntu4.7_amd64.deb ...
    Unpacking php5-common (5.5.9+dfsg-1ubuntu4.7) ...
    Selecting previously unselected package php5-cli.
    Preparing to unpack .../php5-cli_5.5.9+dfsg-1ubuntu4.7_amd64.deb ...
    Unpacking php5-cli (5.5.9+dfsg-1ubuntu4.7) ...
    Selecting previously unselected package php5-readline.
    Preparing to unpack .../php5-readline_5.5.9+dfsg-1ubuntu4.7_amd64.deb ...
    Unpacking php5-readline (5.5.9+dfsg-1ubuntu4.7) ...
    Selecting previously unselected package libapache2-mod-php5.
    Preparing to unpack .../libapache2-mod-php5_5.5.9+dfsg-1ubuntu4.7_amd64.deb ...
    Unpacking libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.7) ...
    Selecting previously unselected package php5.
    Preparing to unpack .../php5_5.5.9+dfsg-1ubuntu4.7_all.deb ...
    Unpacking php5 (5.5.9+dfsg-1ubuntu4.7) ...
    Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
    Setting up mysql-server-5.6 (5.6.19-0ubuntu0.14.04.1) ...
    Setting up php5-json (1.3.2-2build1) ...
    Setting up php5-common (5.5.9+dfsg-1ubuntu4.7) ...
    Setting up php5-cli (5.5.9+dfsg-1ubuntu4.7) ...
    update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode
    Setting up php5-readline (5.5.9+dfsg-1ubuntu4.7) ...
    Setting up libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.7) ...
    Module mpm_event disabled.
    Enabling module mpm_prefork.
     * Restarting web server apache2
       ...done.
     * Restarting web server apache2
       ...done.
    Setting up php5 (5.5.9+dfsg-1ubuntu4.7) ...
    STDERR: perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_TIME = "it_IT.UTF-8",
        LC_MONETARY = "it_IT.UTF-8",
        LC_ADDRESS = "it_IT.UTF-8",
        LC_TELEPHONE = "it_IT.UTF-8",
        LC_NAME = "it_IT.UTF-8",
        LC_MEASUREMENT = "it_IT.UTF-8",
        LC_IDENTIFICATION = "it_IT.UTF-8",
        LC_NUMERIC = "it_IT.UTF-8",
        LC_PAPER = "it_IT.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    locale: Cannot set LC_ALL to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    start: Job failed to start
    invoke-rc.d: initscript mysql, action "start" failed.
    dpkg: error processing package mysql-server-5.6 (--configure):
     subprocess installed post-installation script returned error exit status 1
    php5_invoke: Enable module json for cli SAPI
    php5_invoke: Enable module json for apache2 SAPI
    locale: Cannot set LC_ALL to default locale: No such file or directory

    Creating config file /etc/php5/mods-available/pdo.ini with new version
    php5_invoke: Enable module pdo for cli SAPI
    php5_invoke: Enable module pdo for apache2 SAPI
    locale: Cannot set LC_ALL to default locale: No such file or directory

    Creating config file /etc/php5/mods-available/opcache.ini with new version
    php5_invoke: Enable module opcache for cli SAPI
    php5_invoke: Enable module opcache for apache2 SAPI
    locale: Cannot set LC_ALL to default locale: No such file or directory

    Creating config file /etc/php5/cli/php.ini with new version
    php5_invoke json: already enabled for cli SAPI
    php5_invoke pdo: already enabled for cli SAPI
    php5_invoke opcache: already enabled for cli SAPI
    locale: Cannot set LC_ALL to default locale: No such file or directory

    Creating config file /etc/php5/mods-available/readline.ini with new version
    php5_invoke: Enable module readline for cli SAPI
    php5_invoke: Enable module readline for apache2 SAPI
    locale: Cannot set LC_ALL to default locale: No such file or directory

    Creating config file /etc/php5/apache2/php.ini with new version
    php5_invoke json: already enabled for apache2 SAPI
    php5_invoke readline: already enabled for apache2 SAPI
    php5_invoke pdo: already enabled for apache2 SAPI
    php5_invoke opcache: already enabled for apache2 SAPI
    apache2_switch_mpm Switch to prefork
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.2.15. Set the 'ServerName' directive globally to suppress this message
    apache2_invoke: Enable module php5
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.2.15. Set the 'ServerName' directive globally to suppress this message
    Errors were encountered while processing:
     mysql-server-5.6
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    ---- End output of apt-get -q -y install php5=5.5.9+dfsg-1ubuntu4.7 ----
    Ran apt-get -q -y install php5=5.5.9+dfsg-1ubuntu4.7 returned 100

    Resource Declaration:
    ---------------------
    # In /etc/chef-devbox/cookbooks/devbox/recipes/default.rb

      3:   package pkg do
      4:     action :upgrade
      5:   end
      6: end

    Compiled Resource:
    ------------------
    # Declared in /etc/chef-devbox/cookbooks/devbox/recipes/default.rb:3:in `block in from_file'

    apt_package("php5") do
      action [:upgrade]
      retries 0
      retry_delay 2
      default_guard_interpreter :default
      package_name "php5"
      version "5.5.9+dfsg-1ubuntu4.7"
      timeout 900
      declared_type :package
      cookbook_name :devbox
      recipe_name "default"
    end

Running handlers:
[2015-04-15T06:59:01+00:00] ERROR: Running exception handlers
Running handlers complete
[2015-04-15T06:59:01+00:00] ERROR: Exception handlers complete
[2015-04-15T06:59:01+00:00] FATAL: Stacktrace dumped to /etc/chef-devbox/chef-stacktrace.out
Chef Client failed. 0 resources updated in 59.984077172 seconds
[2015-04-15T06:59:01+00:00] ERROR: apt_package[php5] (devbox::default line 3) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '100'
---- Begin output of apt-get -q -y install php5=5.5.9+dfsg-1ubuntu4.7 ----
STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libapache2-mod-php5 php5-cli php5-common php5-json php5-readline
Suggested packages:
  php-pear php5-user-cache
The following NEW packages will be installed:
  libapache2-mod-php5 php5 php5-cli php5-common php5-json php5-readline
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 4860 kB of archives.
After this operation, 20.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main php5-json amd64 1.3.2-2build1 [34.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-common amd64 5.5.9+dfsg-1ubuntu4.7 [442 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-cli amd64 5.5.9+dfsg-1ubuntu4.7 [2163 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-readline amd64 5.5.9+dfsg-1ubuntu4.7 [12.1 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libapache2-mod-php5 amd64 5.5.9+dfsg-1ubuntu4.7 [2208 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5 all 5.5.9+dfsg-1ubuntu4.7 [1306 B]
Fetched 4860 kB in 37s (131 kB/s)
Selecting previously unselected package php5-json.
(Reading database ... 106794 files and directories currently installed.)
Preparing to unpack .../php5-json_1.3.2-2build1_amd64.deb ...
Unpacking php5-json (1.3.2-2build1) ...
Selecting previously unselected package php5-common.
Preparing to unpack .../php5-common_5.5.9+dfsg-1ubuntu4.7_amd64.deb ...
Unpacking php5-common (5.5.9+dfsg-1ubuntu4.7) ...
Selecting previously unselected package php5-cli.
Preparing to unpack .../php5-cli_5.5.9+dfsg-1ubuntu4.7_amd64.deb ...
Unpacking php5-cli (5.5.9+dfsg-1ubuntu4.7) ...
Selecting previously unselected package php5-readline.
Preparing to unpack .../php5-readline_5.5.9+dfsg-1ubuntu4.7_amd64.deb ...
Unpacking php5-readline (5.5.9+dfsg-1ubuntu4.7) ...
Selecting previously unselected package libapache2-mod-php5.
Preparing to unpack .../libapache2-mod-php5_5.5.9+dfsg-1ubuntu4.7_amd64.deb ...
Unpacking libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.7) ...
Selecting previously unselected package php5.
Preparing to unpack .../php5_5.5.9+dfsg-1ubuntu4.7_all.deb ...
Unpacking php5 (5.5.9+dfsg-1ubuntu4.7) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up mysql-server-5.6 (5.6.19-0ubuntu0.14.04.1) ...
Setting up php5-json (1.3.2-2build1) ...
Setting up php5-common (5.5.9+dfsg-1ubuntu4.7) ...
Setting up php5-cli (5.5.9+dfsg-1ubuntu4.7) ...
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode
Setting up php5-readline (5.5.9+dfsg-1ubuntu4.7) ...
Setting up libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.7) ...
Module mpm_event disabled.
Enabling module mpm_prefork.
 * Restarting web server apache2
   ...done.
 * Restarting web server apache2
   ...done.
Setting up php5 (5.5.9+dfsg-1ubuntu4.7) ...
STDERR: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_TIME = "it_IT.UTF-8",
    LC_MONETARY = "it_IT.UTF-8",
    LC_ADDRESS = "it_IT.UTF-8",
    LC_TELEPHONE = "it_IT.UTF-8",
    LC_NAME = "it_IT.UTF-8",
    LC_MEASUREMENT = "it_IT.UTF-8",
    LC_IDENTIFICATION = "it_IT.UTF-8",
    LC_NUMERIC = "it_IT.UTF-8",
    LC_PAPER = "it_IT.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 1
php5_invoke: Enable module json for cli SAPI
php5_invoke: Enable module json for apache2 SAPI
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php5/mods-available/pdo.ini with new version
php5_invoke: Enable module pdo for cli SAPI
php5_invoke: Enable module pdo for apache2 SAPI
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php5/mods-available/opcache.ini with new version
php5_invoke: Enable module opcache for cli SAPI
php5_invoke: Enable module opcache for apache2 SAPI
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php5/cli/php.ini with new version
php5_invoke json: already enabled for cli SAPI
php5_invoke pdo: already enabled for cli SAPI
php5_invoke opcache: already enabled for cli SAPI
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php5/mods-available/readline.ini with new version
php5_invoke: Enable module readline for cli SAPI
php5_invoke: Enable module readline for apache2 SAPI
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php5/apache2/php.ini with new version
php5_invoke json: already enabled for apache2 SAPI
php5_invoke readline: already enabled for apache2 SAPI
php5_invoke pdo: already enabled for apache2 SAPI
php5_invoke opcache: already enabled for apache2 SAPI
apache2_switch_mpm Switch to prefork
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.2.15. Set the 'ServerName' directive globally to suppress this message
apache2_invoke: Enable module php5
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.2.15. Set the 'ServerName' directive globally to suppress this message
Errors were encountered while processing:
 mysql-server-5.6
E: Sub-process /usr/bin/dpkg returned an error code (1)
---- End output of apt-get -q -y install php5=5.5.9+dfsg-1ubuntu4.7 ----
Ran apt-get -q -y install php5=5.5.9+dfsg-1ubuntu4.7 returned 100
[2015-04-15T06:59:01+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef provsioning failed
stovak commented 9 years ago

I experienced this as well. Basically I had to hand-install mysql and re-run the provision script. It may have something to do with SSL certs. Whatever is providing MySQL i think is throwing a cert error. Or near as I can tell. Its also possible that i've conflated the issue with some other issue chef is having with the cert, but my install failed at the same place.

Here's a portion of the chef log:

[2015-04-14T21:16:09+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2015-04-14T21:16:09+00:00] ERROR: I cannot read /etc/chef/validation.pem, which you told me to use to sign requests! [2015-04-14T21:16:09+00:00] ERROR: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) [2015-04-14T21:16:09+00:00] ERROR: Sleeping for 1800 seconds before trying again [2015-04-14T21:46:16+00:00] INFO: Forking chef instance to converge... [2015-04-14T21:46:16+00:00] INFO: * Chef 11.8.2 * [2015-04-14T21:46:16+00:00] INFO: Chef-client pid: 18015 [2015-04-14T21:46:16+00:00] INFO: Client key /etc/chef/client.pem is not present - registering [2015-04-14T21:46:16+00:00] WARN: Failed to read the private key /etc/chef/validation.pem: #<Errno::ENOENT: No such file or directory - /etc/chef/validation.pem> [2015-04-14T21:46:16+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2015-04-14T21:46:16+00:00] ERROR: I cannot read /etc/chef/validation.pem, which you told me to use to sign requests! [2015-04-14T21:46:16+00:00] ERROR: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) [2015-04-14T21:46:16+00:00] ERROR: Sleeping for 1800 seconds before trying again [2015-04-14T21:55:16+00:00] INFO: Daemonizing.. [2015-04-14T21:55:17+00:00] INFO: Forked, in 1544. Privileges: 0 0 [2015-04-14T22:25:18+00:00] INFO: Forking chef instance to converge... [2015-04-14T22:25:18+00:00] INFO: * Chef 12.0.3 * [2015-04-14T22:25:18+00:00] INFO: Chef-client pid: 1708 [2015-04-14T22:25:25+00:00] INFO: Client key /etc/chef/client.pem is not present - registering [2015-04-14T22:25:25+00:00] WARN: Failed to read the private key /etc/chef/validation.pem: #<Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/chef/validation.pem>

vishal-g commented 9 years ago

Hi Fabrizio,

I am getting following error while setting up vagrant box. I am trying on windows 7 as host system.

Error executing action upgrade on resource 'apt_package[mysql-server-5.6]'

==> default: ---------------
==> default: Running Chef...
==> default: ---------------
==> default: [2015-05-24T20:05:24+00:00] INFO: Forking chef instance to converge...
==> default: [2015-05-24T20:05:24+00:00] INFO: *** Chef 12.0.3 ***
==> default: [2015-05-24T20:05:24+00:00] INFO: Chef-client pid: 4356
==> default: [2015-05-24T20:05:27+00:00] INFO: Setting the run_list to ["recipe[devbox::default]", "recipe[devbox::motd]", "recipe[devbox::hostsfile]"] from CLI options
==> default: [2015-05-24T20:05:27+00:00] INFO: Run List is [recipe[devbox::default], recipe[devbox::motd], recipe[devbox::hostsfile]]
==> default: [2015-05-24T20:05:27+00:00] INFO: Run List expands to [devbox::default, devbox::motd, devbox::hostsfile]
==> default: [2015-05-24T20:05:27+00:00] INFO: Starting Chef Run for vagrant-ubuntu-trusty-64
==> default: [2015-05-24T20:05:27+00:00] INFO: Running start handlers
==> default: [2015-05-24T20:05:27+00:00] INFO: Start handlers complete.
==> default: [2015-05-24T20:05:27+00:00] WARN: Cloning resource attributes for package[php5-gd] from prior resource (CHEF-3694)
==> default: [2015-05-24T20:05:27+00:00] WARN: Previous apt_package[php5-gd]: /etc/chef-devbox/cookbooks/devbox/recipes/default.rb:3:in `block in from_file'
==> default: [2015-05-24T20:05:27+00:00] WARN: Current  apt_package[php5-gd]: /etc/chef-devbox/cookbooks/devbox/recipes/default.rb:3:in `block in from_file'
==> default: [2015-05-24T20:05:27+00:00] WARN: Cloning resource attributes for package[unzip] from prior resource (CHEF-3694)
==> default: [2015-05-24T20:05:27+00:00] WARN: Previous apt_package[unzip]: /etc/chef-devbox/cookbooks/devbox/recipes/default.rb:3:in `block in from_file'
==> default: [2015-05-24T20:05:27+00:00] WARN: Current  apt_package[unzip]: /etc/chef-devbox/cookbooks/devbox/recipes/awscli.rb:1:in `from_file'
==> default: [2015-05-24T20:05:27+00:00] INFO: Preparing Magento instances
==> default: [2015-05-24T20:05:27+00:00] WARN: Cloning resource attributes for group[systemstorage] from prior resource (CHEF-3694)
==> default: [2015-05-24T20:05:27+00:00] WARN: Previous group[systemstorage]: /etc/chef-devbox/cookbooks/devbox/recipes/instances.rb:7:in `from_file'
==> default: [2015-05-24T20:05:27+00:00] WARN: Current  group[systemstorage]: /etc/chef-devbox/cookbooks/devbox/recipes/users_groups.rb:6:in `block in from_file'
==> default: [2015-05-24T20:05:27+00:00] INFO: Writing motd
==> default: [2015-05-24T20:05:27+00:00] INFO: Writing hosts file
==> default: [2015-05-24T20:05:27+00:00] INFO: Processing apt_package[unzip] action upgrade (devbox::default line 3)
==> default: [2015-05-24T20:05:38+00:00] INFO: apt_package[unzip] upgraded from uninstalled to 6.0-9ubuntu1.3
==> default: [2015-05-24T20:05:38+00:00] INFO: Processing apt_package[graphicsmagick] action upgrade (devbox::default line 3)
==> default: [2015-05-24T20:07:20+00:00] INFO: apt_package[graphicsmagick] upgraded from uninstalled to 1.3.18-1ubuntu3
==> default: [2015-05-24T20:07:20+00:00] INFO: Processing apt_package[jq] action upgrade (devbox::default line 3)
==> default: [2015-05-24T20:07:23+00:00] INFO: apt_package[jq] upgraded from uninstalled to 1.3-1.1ubuntu1
==> default: [2015-05-24T20:07:23+00:00] INFO: Processing apt_package[tig] action upgrade (devbox::default line 3)
==> default: [2015-05-24T20:07:28+00:00] INFO: apt_package[tig] upgraded from uninstalled to 1.2.1-1
==> default: [2015-05-24T20:07:28+00:00] INFO: Processing apt_package[git] action upgrade (devbox::default line 3)
==> default: [2015-05-24T20:07:28+00:00] INFO: Processing apt_package[apache2] action upgrade (devbox::default line 3)
==> default: [2015-05-24T20:07:51+00:00] INFO: apt_package[apache2] upgraded from uninstalled to 2.4.7-1ubuntu4.4
==> default: [2015-05-24T20:07:51+00:00] INFO: Processing apt_package[mysql-server-5.6] action upgrade (devbox::default line 3)
==> default:
==> default: ================================================================================
==> default: Error executing action `upgrade` on resource 'apt_package[mysql-server-5.6]'
==> default: ================================================================================
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '100'
==> default: ---- Begin output of apt-get -q -y install mysql-server-5.6=5.6.19-0ubuntu0.14.04.1 ----
==> default: STDOUT: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default:   libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
==> default:   libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common
==> default:   mysql-common-5.6 mysql-server-core-5.6
==> default: Suggested packages:
==> default:   libclone-perl libmldbm-perl libnet-daemon-perl libplrpc-perl
==> default:   libsql-statement-perl libipc-sharedcache-perl mailx tinyca
==> default: The following NEW packages will be installed:
==> default:   libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
==> default:   libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common
==> default:   mysql-common-5.6 mysql-server-5.6 mysql-server-core-5.6
==> default: 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
==> default: Need to get 21.5 MB of archives.
==> default: After this operation, 165 MB of additional disk space will be used.
==> default: Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libaio1 amd64 0.3.109-4 [6,364 B]
==> default: Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main mysql-common all 5.5.43-0ubuntu0.14.04.1 [13.8 kB]
==> default: Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libmysqlclient18 amd64 5.5.43-0ubuntu0.14.04.1 [596 kB]
==> default: Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libdbi-perl amd64 1.630-1 [879 kB]
==> default: Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main libdbd-mysql-perl amd64 4.025-1 [99.3 kB]
==> default: Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main libterm-readkey-perl amd64 2.31-1 [27.4 kB]
==> default: Get:7 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-client-core-5.6 amd64 5.6.19-0ubuntu0.14.04.1 [4,081 kB]
==> default: Get:8 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-client-5.6 amd64 5.6.19-0ubuntu0.14.04.1 [5,526 kB]
==> default: Get:9 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-server-core-5.6 amd64 5.6.19-0ubuntu0.14.04.1 [4,761 kB]
==> default: Get:10 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-server-5.6 amd64 5.6.19-0ubuntu0.14.04.1 [5,452 kB]
==> default: Get:11 http://archive.ubuntu.com/ubuntu/ trusty/main libhtml-template-perl all 2.95-1 [65.5 kB]
==> default: Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-common-5.6 all 5.6.19-0ubuntu0.14.04.1 [15.0 kB]
==> default: Preconfiguring packages ...
==> default: Fetched 21.5 MB in 2min 17s (157 kB/s)
==> default: Selecting previously unselected package libaio1:amd64.
==> default: (Reading database ... 106329 files and directories currently installed.)
==> default: Preparing to unpack .../libaio1_0.3.109-4_amd64.deb ...
==> default: Unpacking libaio1:amd64 (0.3.109-4) ...
==> default: Selecting previously unselected package mysql-common.
==> default: Preparing to unpack .../mysql-common_5.5.43-0ubuntu0.14.04.1_all.deb ...
==> default: Unpacking mysql-common (5.5.43-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package libmysqlclient18:amd64.
==> default: Preparing to unpack .../libmysqlclient18_5.5.43-0ubuntu0.14.04.1_amd64.deb ...
==> default: Unpacking libmysqlclient18:amd64 (5.5.43-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package libdbi-perl.
==> default: Preparing to unpack .../libdbi-perl_1.630-1_amd64.deb ...
==> default: Unpacking libdbi-perl (1.630-1) ...
==> default: Selecting previously unselected package libdbd-mysql-perl.
==> default: Preparing to unpack .../libdbd-mysql-perl_4.025-1_amd64.deb ...
==> default: Unpacking libdbd-mysql-perl (4.025-1) ...
==> default: Selecting previously unselected package libterm-readkey-perl.
==> default: Preparing to unpack .../libterm-readkey-perl_2.31-1_amd64.deb ...
==> default: Unpacking libterm-readkey-perl (2.31-1) ...
==> default: Selecting previously unselected package mysql-client-core-5.6.
==> default: Preparing to unpack .../mysql-client-core-5.6_5.6.19-0ubuntu0.14.04.1_amd64.deb ...
==> default: Unpacking mysql-client-core-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package mysql-client-5.6.
==> default: Preparing to unpack .../mysql-client-5.6_5.6.19-0ubuntu0.14.04.1_amd64.deb ...
==> default: Unpacking mysql-client-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package mysql-server-core-5.6.
==> default: Preparing to unpack .../mysql-server-core-5.6_5.6.19-0ubuntu0.14.04.1_amd64.deb ...
==> default: Unpacking mysql-server-core-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
==> default: Setting up mysql-common (5.5.43-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package mysql-server-5.6.
==> default: (Reading database ... 106701 files and directories currently installed.)
==> default: Preparing to unpack .../mysql-server-5.6_5.6.19-0ubuntu0.14.04.1_amd64.deb ...
==> default: Unpacking mysql-server-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package libhtml-template-perl.
==> default: Preparing to unpack .../libhtml-template-perl_2.95-1_all.deb ...
==> default: Unpacking libhtml-template-perl (2.95-1) ...
==> default: Selecting previously unselected package mysql-common-5.6.
==> default: Preparing to unpack .../mysql-common-5.6_5.6.19-0ubuntu0.14.04.1_all.deb ...
==> default: Unpacking mysql-common-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
==> default: Processing triggers for ureadahead (0.100.0-16) ...
==> default: Setting up libaio1:amd64 (0.3.109-4) ...
==> default: Setting up libmysqlclient18:amd64 (5.5.43-0ubuntu0.14.04.1) ...
==> default: Setting up libdbi-perl (1.630-1) ...
==> default: Setting up libdbd-mysql-perl (4.025-1) ...
==> default: Setting up libterm-readkey-perl (2.31-1) ...
==> default: Setting up mysql-client-core-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Setting up mysql-client-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Setting up mysql-server-core-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Setting up mysql-server-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Setting up libhtml-template-perl (2.95-1) ...
==> default: Setting up mysql-common-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
==> default: Processing triggers for ureadahead (0.100.0-16) ...
==> default: STDERR: start: Job failed to start
==> default: invoke-rc.d: initscript mysql, action "start" failed.
==> default: dpkg: error processing package mysql-server-5.6 (--configure):
==> default:  subprocess installed post-installation script returned error exit status 1
==> default: Errors were encountered while processing:
==> default:  mysql-server-5.6
==> default: E: Sub-process /usr/bin/dpkg returned an error code (1)
==> default: ---- End output of apt-get -q -y install mysql-server-5.6=5.6.19-0ubuntu0.14.04.1 ----
==> default: Ran apt-get -q -y install mysql-server-5.6=5.6.19-0ubuntu0.14.04.1 returned 100
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /etc/chef-devbox/cookbooks/devbox/recipes/default.rb
==> default:
==> default:   3:   package pkg do
==> default:   4:     action :upgrade
==> default:   5:   end
==> default:   6: end
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /etc/chef-devbox/cookbooks/devbox/recipes/default.rb:3:in `block in from_file'
==> default:
==> default: apt_package("mysql-server-5.6") do
==> default:   action [:upgrade]
==> default:   retries 0
==> default:   retry_delay 2
==> default:   default_guard_interpreter :default
==> default:   package_name "mysql-server-5.6"
==> default:   version "5.6.19-0ubuntu0.14.04.1"
==> default:   timeout 900
==> default:   declared_type :package
==> default:   cookbook_name :devbox
==> default:   recipe_name "default"
==> default: end
==> default:
==> default: [2015-05-24T20:10:33+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2015-05-24T20:10:33+00:00] ERROR: Running exception handlers
==> default: [2015-05-24T20:10:33+00:00] ERROR: Exception handlers complete
==> default: [2015-05-24T20:10:33+00:00] FATAL: Stacktrace dumped to /etc/chef-devbox/chef-stacktrace.out
==> default: [2015-05-24T20:10:33+00:00] ERROR: apt_package[mysql-server-5.6] (devbox::default line 3) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '100'
==> default: ---- Begin output of apt-get -q -y install mysql-server-5.6=5.6.19-0ubuntu0.14.04.1 ----
==> default: STDOUT: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default:   libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
==> default:   libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common
==> default:   mysql-common-5.6 mysql-server-core-5.6
==> default: Suggested packages:
==> default:   libclone-perl libmldbm-perl libnet-daemon-perl libplrpc-perl
==> default:   libsql-statement-perl libipc-sharedcache-perl mailx tinyca
==> default: The following NEW packages will be installed:
==> default:   libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
==> default:   libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common
==> default:   mysql-common-5.6 mysql-server-5.6 mysql-server-core-5.6
==> default: 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
==> default: Need to get 21.5 MB of archives.
==> default: After this operation, 165 MB of additional disk space will be used.
==> default: Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libaio1 amd64 0.3.109-4 [6,364 B]
==> default: Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main mysql-common all 5.5.43-0ubuntu0.14.04.1 [13.8 kB]
==> default: Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libmysqlclient18 amd64 5.5.43-0ubuntu0.14.04.1 [596 kB]
==> default: Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libdbi-perl amd64 1.630-1 [879 kB]
==> default: Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main libdbd-mysql-perl amd64 4.025-1 [99.3 kB]
==> default: Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main libterm-readkey-perl amd64 2.31-1 [27.4 kB]
==> default: Get:7 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-client-core-5.6 amd64 5.6.19-0ubuntu0.14.04.1 [4,081 kB]
==> default: Get:8 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-client-5.6 amd64 5.6.19-0ubuntu0.14.04.1 [5,526 kB]
==> default: Get:9 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-server-core-5.6 amd64 5.6.19-0ubuntu0.14.04.1 [4,761 kB]
==> default: Get:10 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-server-5.6 amd64 5.6.19-0ubuntu0.14.04.1 [5,452 kB]
==> default: Get:11 http://archive.ubuntu.com/ubuntu/ trusty/main libhtml-template-perl all 2.95-1 [65.5 kB]
==> default: Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-common-5.6 all 5.6.19-0ubuntu0.14.04.1 [15.0 kB]
==> default: Preconfiguring packages ...
==> default: Fetched 21.5 MB in 2min 17s (157 kB/s)
==> default: Selecting previously unselected package libaio1:amd64.
==> default: (Reading database ... 106329 files and directories currently installed.)
==> default: Preparing to unpack .../libaio1_0.3.109-4_amd64.deb ...
==> default: Unpacking libaio1:amd64 (0.3.109-4) ...
==> default: Selecting previously unselected package mysql-common.
==> default: Preparing to unpack .../mysql-common_5.5.43-0ubuntu0.14.04.1_all.deb ...
==> default: Unpacking mysql-common (5.5.43-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package libmysqlclient18:amd64.
==> default: Preparing to unpack .../libmysqlclient18_5.5.43-0ubuntu0.14.04.1_amd64.deb ...
==> default: Unpacking libmysqlclient18:amd64 (5.5.43-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package libdbi-perl.
==> default: Preparing to unpack .../libdbi-perl_1.630-1_amd64.deb ...
==> default: Unpacking libdbi-perl (1.630-1) ...
==> default: Selecting previously unselected package libdbd-mysql-perl.
==> default: Preparing to unpack .../libdbd-mysql-perl_4.025-1_amd64.deb ...
==> default: Unpacking libdbd-mysql-perl (4.025-1) ...
==> default: Selecting previously unselected package libterm-readkey-perl.
==> default: Preparing to unpack .../libterm-readkey-perl_2.31-1_amd64.deb ...
==> default: Unpacking libterm-readkey-perl (2.31-1) ...
==> default: Selecting previously unselected package mysql-client-core-5.6.
==> default: Preparing to unpack .../mysql-client-core-5.6_5.6.19-0ubuntu0.14.04.1_amd64.deb ...
==> default: Unpacking mysql-client-core-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package mysql-client-5.6.
==> default: Preparing to unpack .../mysql-client-5.6_5.6.19-0ubuntu0.14.04.1_amd64.deb ...
==> default: Unpacking mysql-client-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package mysql-server-core-5.6.
==> default: Preparing to unpack .../mysql-server-core-5.6_5.6.19-0ubuntu0.14.04.1_amd64.deb ...
==> default: Unpacking mysql-server-core-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
==> default: Setting up mysql-common (5.5.43-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package mysql-server-5.6.
==> default: (Reading database ... 106701 files and directories currently installed.)
==> default: Preparing to unpack .../mysql-server-5.6_5.6.19-0ubuntu0.14.04.1_amd64.deb ...
==> default: Unpacking mysql-server-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Selecting previously unselected package libhtml-template-perl.
==> default: Preparing to unpack .../libhtml-template-perl_2.95-1_all.deb ...
==> default: Unpacking libhtml-template-perl (2.95-1) ...
==> default: Selecting previously unselected package mysql-common-5.6.
==> default: Preparing to unpack .../mysql-common-5.6_5.6.19-0ubuntu0.14.04.1_all.deb ...
==> default: Unpacking mysql-common-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
==> default: Processing triggers for ureadahead (0.100.0-16) ...
==> default: Setting up libaio1:amd64 (0.3.109-4) ...
==> default: Setting up libmysqlclient18:amd64 (5.5.43-0ubuntu0.14.04.1) ...
==> default: Setting up libdbi-perl (1.630-1) ...
==> default: Setting up libdbd-mysql-perl (4.025-1) ...
==> default: Setting up libterm-readkey-perl (2.31-1) ...
==> default: Setting up mysql-client-core-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Setting up mysql-client-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Setting up mysql-server-core-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Setting up mysql-server-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Setting up libhtml-template-perl (2.95-1) ...
==> default: Setting up mysql-common-5.6 (5.6.19-0ubuntu0.14.04.1) ...
==> default: Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
==> default: Processing triggers for ureadahead (0.100.0-16) ...
==> default: STDERR: start: Job failed to start
==> default: invoke-rc.d: initscript mysql, action "start" failed.
==> default: dpkg: error processing package mysql-server-5.6 (--configure):
==> default:  subprocess installed post-installation script returned error exit status 1
==> default: Errors were encountered while processing:
==> default:  mysql-server-5.6
==> default: E: Sub-process /usr/bin/dpkg returned an error code (1)
==> default: ---- End output of apt-get -q -y install mysql-server-5.6=5.6.19-0ubuntu0.14.04.1 ----
==> default: Ran apt-get -q -y install mysql-server-5.6=5.6.19-0ubuntu0.14.04.1 returned 100
==> default: [2015-05-24T20:10:34+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
==> default: Chef provsioning failed
==> default: Chef provisioning failed
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
LeeSaferite commented 9 years ago

Try increasing the memory allocated to the VM

vishal-g commented 9 years ago

I increased the memory from 512 MB to 1024 MB of my unibox. Should I do vagrant up again?

fbrnc commented 9 years ago

Hi @vishalcode,

simply run vagrant reload after adding updating the memory settings to Vagrantfile and the memory should be automatically adjusted. Let us know if this doesn't fix the problem you were having in the first place.

Btw, I've also added this default setting to the repo now: https://github.com/AOEpeople/chef-devbox/commit/0b827931692119c5babe9e123e0a2f7dc8170305

Cheers, Fabrizio