Skip to content

Instantly share code, notes, and snippets.

@miketheman
Last active December 16, 2015 22:09
Show Gist options
  • Select an option

  • Save miketheman/5505448 to your computer and use it in GitHub Desktop.

Select an option

Save miketheman/5505448 to your computer and use it in GitHub Desktop.
Chef 10.24.4 Ubuntu 12.04, mysql 3.0.0
---
driver_plugin: vagrant
platforms:
- name: ubuntu-12.04_chef_11.4.4
driver_config:
box: opscode_ubuntu-12.04_chef-11.4.4
box_url: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.4.4.box
require_chef_omnibus: 11.4.4
- name: ubuntu-12.04_chef_10.24.4
driver_config:
box: canonical-ubuntu-12.04
box_url: http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box
require_chef_omnibus: 10.24.4
customize:
memory: 512
suites:
- name: test_mysql
run_list:
- "recipe[mysql::server]"
attributes:
mysql:
server_debian_password: foo
server_root_password: bar
server_repl_password: baz
tunable:
innodb_buffer_pool_size: 1M
130502 20:56:45 [Note] Plugin 'FEDERATED' is disabled.
130502 20:56:45 InnoDB: The InnoDB memory heap is disabled
130502 20:56:45 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130502 20:56:45 InnoDB: Compressed tables use zlib 1.2.3.4
130502 20:56:45 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
130502 20:56:45 InnoDB: Completed initialization of buffer pool
130502 20:56:45 InnoDB: Fatal error: cannot allocate memory for the buffer pool
130502 20:56:45 [ERROR] Plugin 'InnoDB' init function returned error.
130502 20:56:45 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
130502 20:56:45 [ERROR] Unknown/unsupported storage engine: InnoDB
130502 20:56:45 [ERROR] Aborting
130502 20:56:45 [Note] /usr/sbin/mysqld: Shutdown complete
[2013-05-02T20:55:20+00:00] INFO: Processing package[mysql-client] action install (mysql::client line 46)
[2013-05-02T20:55:57+00:00] INFO: Processing package[libmysqlclient-dev] action install (mysql::client line 46)
[2013-05-02T20:56:06+00:00] INFO: Processing directory[/var/cache/local/preseeding] action create (mysql::server line 47)
[2013-05-02T20:56:06+00:00] INFO: Processing execute[preseed mysql-server] action nothing (mysql::server line 54)
[2013-05-02T20:56:06+00:00] INFO: Processing template[/var/cache/local/preseeding/mysql-server.seed] action create (mysql::server line 59)
[2013-05-02T20:56:06+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] updated content
[2013-05-02T20:56:06+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] owner changed to 0
[2013-05-02T20:56:06+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] group changed to 0
[2013-05-02T20:56:06+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] mode changed to 600
[2013-05-02T20:56:06+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] sending run action to execute[preseed mysql-server] (immediate)
[2013-05-02T20:56:06+00:00] INFO: Processing execute[preseed mysql-server] action run (mysql::server line 54)
[2013-05-02T20:56:06+00:00] INFO: execute[preseed mysql-server] ran successfully
[2013-05-02T20:56:06+00:00] INFO: Processing template[/etc/mysql/debian.cnf] action create (mysql::server line 67)
[2013-05-02T20:56:07+00:00] INFO: template[/etc/mysql/debian.cnf] updated content
[2013-05-02T20:56:07+00:00] INFO: template[/etc/mysql/debian.cnf] owner changed to 0
[2013-05-02T20:56:07+00:00] INFO: template[/etc/mysql/debian.cnf] group changed to 0
[2013-05-02T20:56:07+00:00] INFO: template[/etc/mysql/debian.cnf] mode changed to 600
[2013-05-02T20:56:07+00:00] INFO: Processing package[mysql-server] action install (mysql::server line 94)
================================================================================
Error executing action `install` on resource 'package[mysql-server]'
================================================================================
Chef::Exceptions::Exec
----------------------
apt-get -q -y install mysql-server=5.5.31-0ubuntu0.12.04.1 returned 100, expected 0
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/server.rb
94: package package_name do
95: action :install
96: notifies :start, "service[mysql]", :immediately
97: end
98: end
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/server.rb:94:in `block in from_file'
package("mysql-server") do
action [:install]
retries 0
retry_delay 2
package_name "mysql-server"
version "5.5.31-0ubuntu0.12.04.1"
cookbook_name :mysql
recipe_name "server"
end
[2013-05-02T20:56:45+00:00] ERROR: Running exception handlers
[2013-05-02T20:56:45+00:00] ERROR: Exception handlers complete
[2013-05-02T20:56:45+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-05-02T20:56:45+00:00] FATAL: Chef::Exceptions::Exec: package[mysql-server] (mysql::server line 94) had an error: Chef::Exceptions::Exec: apt-get -q -y install mysql-server=5.5.31-0ubuntu0.12.04.1 returned 100, expected 0
STDERR: 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