Created
July 30, 2015 10:18
-
-
Save tomasnorre/6d1798f80dafd7ae73a3 to your computer and use it in GitHub Desktop.
Error message when provisioning my t3o-www devbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2015-07-30T12:14:46+02:00] INFO: Forking chef instance to converge... | |
[2015-07-30T12:14:46+02:00] WARN: | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
SSL validation of HTTPS requests is disabled. HTTPS connections are still | |
encrypted, but chef is not able to detect forged replies or man in the middle | |
attacks. | |
To fix this issue add an entry like this to your configuration file: | |
``` | |
# Verify all HTTPS connections (recommended) | |
ssl_verify_mode :verify_peer | |
# OR, Verify only connections to chef-server | |
verify_api_cert true | |
``` | |
To check your SSL configuration, or troubleshoot errors, you can use the | |
`knife ssl check` command like so: | |
``` | |
knife ssl check -c /tmp/vagrant-chef-1/solo.rb | |
``` | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
[2015-07-30T12:14:46+02:00] INFO: *** Chef 11.18.12 *** | |
[2015-07-30T12:14:46+02:00] INFO: Chef-client pid: 5433 | |
[2015-07-30T12:14:52+02:00] INFO: Setting the run_list to ["role[debian]", "role[base]", "role[vagrant]", "role[typo3]", "role[t3org]"] from CLI options | |
[2015-07-30T12:14:52+02:00] INFO: Run List is [role[debian], role[base], role[vagrant], role[typo3], role[t3org]] | |
[2015-07-30T12:14:52+02:00] INFO: Run List expands to [apt, chef_handler, ohai, build-essential, git, rsync, chef-solo-search, mysql::server, application, typo3::scheduler, php::module_curl, t3org, dev] | |
[2015-07-30T12:14:52+02:00] INFO: Starting Chef Run for t3o-web | |
[2015-07-30T12:14:52+02:00] INFO: Running start handlers | |
[2015-07-30T12:14:52+02:00] INFO: Start handlers complete. | |
[2015-07-30T12:15:11+02:00] WARN: encrypted_data_bag_Secret is set but file does not exist. Unsetting | |
[2015-07-30T12:15:11+02:00] INFO: Missing gem 'mysql' | |
[2015-07-30T12:15:11+02:00] WARN: Missing gem 'right_aws' | |
[2015-07-30T12:15:12+02:00] INFO: Application lightweight resource already initialized -- overriding! | |
[2015-07-30T12:15:12+02:00] WARN: Chef::Mixin::RecipeDefinitionDSLCore is deprecated. Use Chef::DSL::Recipe instead. | |
[2015-07-30T12:15:12+02:00] WARN: Called from: | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:23:in `class_from_file' | |
/opt/chef/embedded/apps/chef/lib/chef/mixin/from_file.rb:42:in `class_eval' | |
/opt/chef/embedded/apps/chef/lib/chef/mixin/from_file.rb:42:in `class_from_file' | |
[2015-07-30T12:15:12+02:00] INFO: Chef Handlers will be at: /var/chef/handlers | |
[2015-07-30T12:15:12+02:00] INFO: ohai plugins will be at: /etc/chef/ohai_plugins | |
[2015-07-30T12:15:12+02:00] INFO: directory[/etc/chef/ohai_plugins] created directory /etc/chef/ohai_plugins | |
[2015-07-30T12:15:12+02:00] INFO: directory[/etc/chef/ohai_plugins] owner changed to 0 | |
[2015-07-30T12:15:12+02:00] INFO: directory[/etc/chef/ohai_plugins] group changed to 0 | |
[2015-07-30T12:15:12+02:00] INFO: directory[/etc/chef/ohai_plugins] mode changed to 755 | |
[2015-07-30T12:15:12+02:00] INFO: cookbook_file[/etc/chef/ohai_plugins/README] created file /etc/chef/ohai_plugins/README | |
[2015-07-30T12:15:12+02:00] INFO: cookbook_file[/etc/chef/ohai_plugins/README] updated file contents /etc/chef/ohai_plugins/README | |
[2015-07-30T12:15:12+02:00] INFO: cookbook_file[/etc/chef/ohai_plugins/README] mode changed to 644 | |
[2015-07-30T12:15:13+02:00] WARN: Cloning resource attributes for directory[/var/cache/local/preseeding] from prior resource (CHEF-3694) | |
[2015-07-30T12:15:13+02:00] WARN: Previous directory[/var/cache/local/preseeding]: /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/recipes/default.rb:50:in `block in from_file' | |
[2015-07-30T12:15:13+02:00] WARN: Current directory[/var/cache/local/preseeding]: /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/server.rb:31:in `from_file' | |
[2015-07-30T12:15:13+02:00] INFO: Could not find previously defined grants.sql resource | |
================================================================================ | |
Error executing action `install` on resource 'chef_gem[mysql]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '1' | |
---- Begin output of /opt/chef/embedded/bin/gem install mysql -q --no-rdoc --no-ri -v "2.9.1" ---- | |
STDOUT: Building native extensions. This could take a while... | |
STDERR: ERROR: Error installing mysql: | |
ERROR: Failed to build gem native extension. | |
/opt/chef/embedded/bin/ruby extconf.rb | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lm... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lz... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lsocket... no | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lnsl... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lmygcc... no | |
checking for mysql_query() in -lmysqlclient... no | |
*** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of | |
necessary libraries and/or headers. Check the mkmf.log file for more | |
details. You may need configuration options. | |
Provided configuration options: | |
--with-opt-dir | |
--with-opt-include | |
--without-opt-include=${opt-dir}/include | |
--with-opt-lib | |
--without-opt-lib=${opt-dir}/lib | |
--with-make-prog | |
--without-make-prog | |
--srcdir=. | |
--curdir | |
--ruby=/opt/chef/embedded/bin/ruby | |
--with-mysql-config | |
--without-mysql-config | |
--with-mysql-dir | |
--without-mysql-dir | |
--with-mysql-include | |
--without-mysql-include=${mysql-dir}/include | |
--with-mysql-lib | |
--without-mysql-lib=${mysql-dir}/lib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-mlib | |
--without-mlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-zlib | |
--without-zlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-socketlib | |
--without-socketlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-nsllib | |
--without-nsllib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-mygcclib | |
--without-mygcclib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mysql-2.9.1 for inspection. | |
Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mysql-2.9.1/ext/mysql_api/gem_make.out | |
---- End output of /opt/chef/embedded/bin/gem install mysql -q --no-rdoc --no-ri -v "2.9.1" ---- | |
Ran /opt/chef/embedded/bin/gem install mysql -q --no-rdoc --no-ri -v "2.9.1" returned 1 | |
Cookbook Trace: | |
--------------- | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/typo3.rb:33:in `from_file' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:28:in `block (3 levels) in from_file' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:22:in `each' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:22:in `block (2 levels) in from_file' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:21:in `each' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:21:in `block in from_file' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/chef-solo-search/libraries/search/overrides.rb:61:in `search' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/chef-solo-search/libraries/search.rb:88:in `search' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:20:in `from_file' | |
Resource Declaration: | |
--------------------- | |
# In /tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/typo3.rb | |
33: chef_gem "mysql" | |
34: | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/typo3.rb:33:in `from_file' | |
chef_gem("mysql") do | |
provider Chef::Provider::Package::Rubygems | |
action :install | |
retries 0 | |
retry_delay 2 | |
guard_interpreter :default | |
package_name "mysql" | |
version "2.9.1" | |
timeout 900 | |
gem_binary "/opt/chef/embedded/bin/gem" | |
cookbook_name :application | |
recipe_name "typo3" | |
end | |
================================================================================ | |
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
chef_gem[mysql] (application::typo3 line 33) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' | |
---- Begin output of /opt/chef/embedded/bin/gem install mysql -q --no-rdoc --no-ri -v "2.9.1" ---- | |
STDOUT: Building native extensions. This could take a while... | |
STDERR: ERROR: Error installing mysql: | |
ERROR: Failed to build gem native extension. | |
/opt/chef/embedded/bin/ruby extconf.rb | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lm... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lz... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lsocket... no | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lnsl... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lmygcc... no | |
checking for mysql_query() in -lmysqlclient... no | |
*** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of | |
necessary libraries and/or headers. Check the mkmf.log file for more | |
details. You may need configuration options. | |
Provided configuration options: | |
--with-opt-dir | |
--with-opt-include | |
--without-opt-include=${opt-dir}/include | |
--with-opt-lib | |
--without-opt-lib=${opt-dir}/lib | |
--with-make-prog | |
--without-make-prog | |
--srcdir=. | |
--curdir | |
--ruby=/opt/chef/embedded/bin/ruby | |
--with-mysql-config | |
--without-mysql-config | |
--with-mysql-dir | |
--without-mysql-dir | |
--with-mysql-include | |
--without-mysql-include=${mysql-dir}/include | |
--with-mysql-lib | |
--without-mysql-lib=${mysql-dir}/lib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-mlib | |
--without-mlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-zlib | |
--without-zlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-socketlib | |
--without-socketlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-nsllib | |
--without-nsllib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-mygcclib | |
--without-mygcclib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mysql-2.9.1 for inspection. | |
Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mysql-2.9.1/ext/mysql_api/gem_make.out | |
---- End output of /opt/chef/embedded/bin/gem install mysql -q --no-rdoc --no-ri -v "2.9.1" ---- | |
Ran /opt/chef/embedded/bin/gem install mysql -q --no-rdoc --no-ri -v "2.9.1" returned 1 | |
Cookbook Trace: | |
--------------- | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/typo3.rb:33:in `from_file' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:28:in `block (3 levels) in from_file' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:22:in `each' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:22:in `block (2 levels) in from_file' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:21:in `each' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:21:in `block in from_file' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/chef-solo-search/libraries/search/overrides.rb:61:in `search' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/chef-solo-search/libraries/search.rb:88:in `search' | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/default.rb:20:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/application/recipes/typo3.rb: | |
26: # default application recipe work it's mojo for you. | |
27: ### | |
28: | |
29: # We need PHP | |
30: include_recipe "php" | |
31: | |
32: # We also need the "mysql" gem in Chef | |
33>> chef_gem "mysql" | |
34: | |
35: ## First, install any application specific packages | |
36: if app['packages'] | |
37: app['packages'].each do |pkg,ver| | |
38: package pkg do | |
39: action :install | |
40: version ver if ver && ver.length > 0 | |
41: end | |
42: end | |
[2015-07-30T12:15:29+02:00] ERROR: Running exception handlers | |
[2015-07-30T12:15:29+02:00] ERROR: Exception handlers complete | |
[2015-07-30T12:15:29+02:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
[2015-07-30T12:15:29+02:00] ERROR: chef_gem[mysql] (application::typo3 line 33) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' | |
---- Begin output of /opt/chef/embedded/bin/gem install mysql -q --no-rdoc --no-ri -v "2.9.1" ---- | |
STDOUT: Building native extensions. This could take a while... | |
STDERR: ERROR: Error installing mysql: | |
ERROR: Failed to build gem native extension. | |
/opt/chef/embedded/bin/ruby extconf.rb | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lm... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lz... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lsocket... no | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lnsl... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lmygcc... no | |
checking for mysql_query() in -lmysqlclient... no | |
*** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of | |
necessary libraries and/or headers. Check the mkmf.log file for more | |
details. You may need configuration options. | |
Provided configuration options: | |
--with-opt-dir | |
--with-opt-include | |
--without-opt-include=${opt-dir}/include | |
--with-opt-lib | |
--without-opt-lib=${opt-dir}/lib | |
--with-make-prog | |
--without-make-prog | |
--srcdir=. | |
--curdir | |
--ruby=/opt/chef/embedded/bin/ruby | |
--with-mysql-config | |
--without-mysql-config | |
--with-mysql-dir | |
--without-mysql-dir | |
--with-mysql-include | |
--without-mysql-include=${mysql-dir}/include | |
--with-mysql-lib | |
--without-mysql-lib=${mysql-dir}/lib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-mlib | |
--without-mlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-zlib | |
--without-zlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-socketlib | |
--without-socketlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-nsllib | |
--without-nsllib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-mygcclib | |
--without-mygcclib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mysql-2.9.1 for inspection. | |
Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mysql-2.9.1/ext/mysql_api/gem_make.out | |
---- End output of /opt/chef/embedded/bin/gem install mysql -q --no-rdoc --no-ri -v "2.9.1" ---- | |
Ran /opt/chef/embedded/bin/gem install mysql -q --no-rdoc --no-ri -v "2.9.1" returned 1 | |
[2015-07-30T12:15:29+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
Chef never successfully completed! Any errors should be visible in the | |
output above. Please fix your recipes so that they properly complete. | |
➜ Typo3Org git:(master) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment