Last active
August 29, 2015 14:04
-
-
Save 7hunderbird/de7b2d4f351cf531ab7c to your computer and use it in GitHub Desktop.
troubleshooting Chapter 4 - Quick Start - 5 Minute Server of Reliably Deploying Rails Applications
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
{ | |
"run_list": [ | |
], | |
"automatic": { | |
"ipaddress": "104.131.218.153" | |
} | |
} |
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
bundle exec knife solo cook root@104.131.218.153 | |
Running Chef on 104.131.218.153... | |
Checking Chef version... | |
Installing Berkshelf cookbooks to 'cookbooks'... | |
Resolving cookbook dependencies... | |
Using apt (2.4.0) | |
Using basic_security-tlq (0.0.1) from git://github.com/TalkingQuickly/basic_security-tlq.git (at master) | |
Using build-essential (2.0.5) from git://github.com/opscode-cookbooks/build-essential.git (at master) | |
Using chef-sugar (2.0.0) | |
Using chef-solo-search (0.5.1) from git://github.com/edelight/chef-solo-search.git (at master) | |
Using java (1.22.0) | |
Using look_and_feel-tlq (0.0.1) from git://github.com/TalkingQuickly/look_and_feel-tlq.git (at master) | |
Using memcached-tlq (0.0.2) from git://github.com/TalkingQuickly/memcached-tlq.git (at master) | |
Using mongo-tlq (0.0.3) from git://github.com/TalkingQuickly/mongo-tlq.git (at master) | |
Using monit-tlq (0.3.7) from git://github.com/TalkingQuickly/monit-tlq.git (at master) | |
Using monit_configs-tlq (0.0.6) from git://github.com/TalkingQuickly/monit_configs-tlq.git (at master) | |
Using mysql (5.3.6) from git://github.com/opscode-cookbooks/mysql.git (at master) | |
Using nginx-tlq (0.0.4) from git://github.com/TalkingQuickly/nginx-tlq.git (at master) | |
Using openssl (2.0.0) | |
Using postgresql (3.4.1) from git://github.com/opscode-cookbooks/postgresql.git (at master) | |
Using rails_gem_dependencies-tlq (0.0.3) from git://github.com/TalkingQuickly/rails_gem_dependencies-tlq.git (at master) | |
Using redis-tlq (0.0.6) from git://github.com/TalkingQuickly/redis-tlq.git (at master) | |
Using ruby_build (0.8.0) | |
Using rbenv (0.7.3) from git://github.com/fnichol/chef-rbenv.git (at master) | |
Using sudo (2.6.1) from git://github.com/opscode-cookbooks/sudo.git (at master) | |
Using users (1.7.1) from git://github.com/opscode-cookbooks/users.git (at master) | |
Using yum (3.2.2) | |
Using yum-mysql-community (0.1.8) | |
Vendoring apt (2.4.0) to /Users/deploy/code/personal/rails-server-template/cookbooks/apt | |
Vendoring basic_security-tlq (0.0.1) to /Users/deploy/code/personal/rails-server-template/cookbooks/basic_security-tlq | |
Vendoring build-essential (2.0.5) to /Users/deploy/code/personal/rails-server-template/cookbooks/build-essential | |
Vendoring chef-solo-search (0.5.1) to /Users/deploy/code/personal/rails-server-template/cookbooks/chef-solo-search | |
Vendoring chef-sugar (2.0.0) to /Users/deploy/code/personal/rails-server-template/cookbooks/chef-sugar | |
Vendoring java (1.22.0) to /Users/deploy/code/personal/rails-server-template/cookbooks/java | |
Vendoring look_and_feel-tlq (0.0.1) to /Users/deploy/code/personal/rails-server-template/cookbooks/look_and_feel-tlq | |
Vendoring memcached-tlq (0.0.2) to /Users/deploy/code/personal/rails-server-template/cookbooks/memcached-tlq | |
Vendoring mongo-tlq (0.0.3) to /Users/deploy/code/personal/rails-server-template/cookbooks/mongo-tlq | |
Vendoring monit-tlq (0.3.7) to /Users/deploy/code/personal/rails-server-template/cookbooks/monit-tlq | |
Vendoring monit_configs-tlq (0.0.6) to /Users/deploy/code/personal/rails-server-template/cookbooks/monit_configs-tlq | |
Vendoring mysql (5.3.6) to /Users/deploy/code/personal/rails-server-template/cookbooks/mysql | |
Vendoring nginx-tlq (0.0.4) to /Users/deploy/code/personal/rails-server-template/cookbooks/nginx-tlq | |
Vendoring openssl (2.0.0) to /Users/deploy/code/personal/rails-server-template/cookbooks/openssl | |
Vendoring postgresql (3.4.1) to /Users/deploy/code/personal/rails-server-template/cookbooks/postgresql | |
Vendoring rails_gem_dependencies-tlq (0.0.3) to /Users/deploy/code/personal/rails-server-template/cookbooks/rails_gem_dependencies-tlq | |
Vendoring rbenv (0.7.3) to /Users/deploy/code/personal/rails-server-template/cookbooks/rbenv | |
Vendoring redis-tlq (0.0.6) to /Users/deploy/code/personal/rails-server-template/cookbooks/redis-tlq | |
Vendoring ruby_build (0.8.0) to /Users/deploy/code/personal/rails-server-template/cookbooks/ruby_build | |
Vendoring sudo (2.6.1) to /Users/deploy/code/personal/rails-server-template/cookbooks/sudo | |
Vendoring users (1.7.1) to /Users/deploy/code/personal/rails-server-template/cookbooks/users | |
Vendoring yum (3.2.2) to /Users/deploy/code/personal/rails-server-template/cookbooks/yum | |
Vendoring yum-mysql-community (0.1.8) to /Users/deploy/code/personal/rails-server-template/cookbooks/yum-mysql-community | |
Uploading the kitchen... | |
Warning: Permanently added '104.131.218.153' (RSA) to the list of known hosts. | |
Warning: Permanently added '104.131.218.153' (RSA) to the list of known hosts. | |
Warning: Permanently added '104.131.218.153' (RSA) to the list of known hosts. | |
Warning: Permanently added '104.131.218.153' (RSA) to the list of known hosts. | |
Warning: Permanently added '104.131.218.153' (RSA) to the list of known hosts. | |
Warning: Permanently added '104.131.218.153' (RSA) to the list of known hosts. | |
Warning: Permanently added '104.131.218.153' (RSA) to the list of known hosts. | |
Warning: Permanently added '104.131.218.153' (RSA) to the list of known hosts. | |
Generating solo config... | |
Warning: Permanently added '104.131.218.153' (RSA) to the list of known hosts. | |
Running Chef... | |
[2014-07-31T19:13:37-04: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 /root/chef-solo/solo.rb | |
``` | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
Starting Chef Client, version 11.12.8 | |
Compiling Cookbooks... | |
Converging 0 resources | |
Running handlers: | |
Running handlers complete | |
Chef Client finished, 0/0 resources updated in 2.701646122 seconds |
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
bundle exec knife solo prepare root@104.131.218.153 | |
Bootstrapping Chef... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 16519 100 16519 0 0 69641 0 --:--:-- --:--:-- --:--:-- 104k | |
Downloading Chef 11.12.8 for ubuntu... | |
downloading https://www.opscode.com/chef/metadata?v=11.12.8&prerelease=false&nightlies=false&p=ubuntu&pv=12.04&m=x86_64 | |
to file /tmp/install.sh.2770/metadata.txt | |
trying wget... | |
url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef_11.12.8-2_amd64.deb | |
md5 34ae5622fda468e31dd898491b4be867 | |
sha256 3da7460e9f03fc5d68baeeb1f50a768f880c4154626aaf78f22dac8a89e64e74 | |
downloaded metadata file looks valid... | |
downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef_11.12.8-2_amd64.deb | |
to file /tmp/install.sh.2770/chef_11.12.8-2_amd64.deb | |
trying wget... | |
Comparing checksum with sha256sum... | |
Installing Chef 11.12.8 | |
installing with dpkg... | |
(Reading database ... 62889 files and directories currently installed.) | |
Preparing to replace chef 11.12.8-2 (using .../chef_11.12.8-2_amd64.deb) ... | |
Unpacking replacement chef ... | |
Setting up chef (11.12.8-2) ... | |
Thank you for installing Chef! |
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
root@fivemin:~# nginx -v | |
The program 'nginx' can be found in the following packages: | |
* nginx-extras | |
* nginx-full | |
* nginx-light | |
* nginx-naxsi | |
Try: apt-get install <selected package> | |
root@fivemin:~# psql -U | |
The program 'psql' is currently not installed. You can install it by typing: | |
apt-get install postgresql-client-common | |
root@fivemin:~# redis-cli | |
The program 'redis-cli' is currently not installed. You can install it by typing: | |
apt-get install redis-server | |
root@fivemin:~# ruby -v | |
The program 'ruby' can be found in the following packages: | |
* ruby1.8 | |
* ruby1.9.1 | |
Try: apt-get install <selected package> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment