Skip to content

Instantly share code, notes, and snippets.

@gondoi
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gondoi/87ab0fc17ed4f4dc33c0 to your computer and use it in GitHub Desktop.
Save gondoi/87ab0fc17ed4f4dc33c0 to your computer and use it in GitHub Desktop.
chef-client cookbook exits after first bootstrap on Ubuntu 12.04
# Logfile created on 2014-08-18 19:58:55 +0000 by logger.rb/31641
[2014-08-18T19:58:55+00:00] INFO: Daemonizing..
[2014-08-18T19:58:55+00:00] INFO: Forked, in 1541. Privileges: 0 0
[2014-08-18T19:58:56+00:00] INFO: SIGTERM received, exiting gracefully
[2014-08-18T19:58:58+00:00] FATAL: Chef is already running pid 1541
[2014-08-18T20:01:36+00:00] INFO: Forking chef instance to converge...
[2014-08-18T20:01:36+00: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 /etc/chef/client.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[2014-08-18T20:01:36+00:00] INFO: *** Chef 11.14.6 ***
[2014-08-18T20:01:36+00:00] INFO: Chef-client pid: 1812
[2014-08-18T20:01:46+00:00] INFO: Run List is [recipe[chef-client]]
[2014-08-18T20:01:46+00:00] INFO: Run List expands to [chef-client]
[2014-08-18T20:01:46+00:00] INFO: Starting Chef Run for client-test-3_7
[2014-08-18T20:01:46+00:00] INFO: Running start handlers
[2014-08-18T20:01:46+00:00] INFO: Start handlers complete.
[2014-08-18T20:01:49+00:00] INFO: Loading cookbooks [chef-client@3.7.0, cron@1.4.1, logrotate@1.6.0]
[2014-08-18T20:01:50+00:00] INFO: Processing directory[/var/run/chef] action create (chef-client::init_service line 91)
[2014-08-18T20:01:50+00:00] INFO: Processing directory[/var/cache/chef] action create (chef-client::init_service line 91)
[2014-08-18T20:01:50+00:00] INFO: Processing directory[/var/lib/chef] action create (chef-client::init_service line 91)
[2014-08-18T20:01:50+00:00] INFO: Processing directory[/var/log/chef] action create (chef-client::init_service line 91)
[2014-08-18T20:01:50+00:00] INFO: Processing directory[/etc/chef] action create (chef-client::init_service line 91)
[2014-08-18T20:01:50+00:00] INFO: Processing template[/etc/init.d/chef-client] action create (chef-client::init_service line 19)
[2014-08-18T20:01:50+00:00] INFO: Processing template[/etc/default/chef-client] action create (chef-client::init_service line 26)
[2014-08-18T20:01:50+00:00] INFO: Processing service[chef-client] action enable (chef-client::init_service line 32)
[2014-08-18T20:01:50+00:00] INFO: Processing service[chef-client] action start (chef-client::init_service line 32)
[2014-08-18T20:01:52+00:00] INFO: Chef Run complete in 6.102638445 seconds
[2014-08-18T20:01:53+00:00] INFO: Running report handlers
[2014-08-18T20:01:53+00:00] INFO: Report handlers complete
[2014-08-18T20:01:53+00:00] INFO: Sending resource update report
# Logfile created on 2014-08-18 20:28:30 +0000 by logger.rb/31641
[2014-08-18T20:28:30+00:00] INFO: Daemonizing..
[2014-08-18T20:28:30+00:00] INFO: Forked, in 1962. Privileges: 0 0
[2014-08-18T20:28:31+00:00] INFO: SIGTERM received, exiting gracefully
[2014-08-18T20:28:38+00:00] INFO: Daemonizing..
[2014-08-18T20:28:39+00:00] INFO: Forked, in 1998. Privileges: 0 0
[2014-08-18T20:29:53+00:00] INFO: Forking chef instance to converge...
[2014-08-18T20:29:53+00: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 /etc/chef/client.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[2014-08-18T20:29:53+00:00] INFO: *** Chef 11.14.6 ***
[2014-08-18T20:29:53+00:00] INFO: Chef-client pid: 2099
[2014-08-18T20:29:56+00:00] INFO: Run List is [recipe[chef-client]]
[2014-08-18T20:29:56+00:00] INFO: Run List expands to [chef-client]
[2014-08-18T20:29:56+00:00] INFO: Starting Chef Run for client-test-3_7-14_04
[2014-08-18T20:29:56+00:00] INFO: Running start handlers
[2014-08-18T20:29:56+00:00] INFO: Start handlers complete.
[2014-08-18T20:29:57+00:00] INFO: Loading cookbooks [chef-client@3.7.0, cron@1.4.1, logrotate@1.6.0]
[2014-08-18T20:29:57+00:00] INFO: Processing directory[/var/run/chef] action create (chef-client::init_service line 91)
[2014-08-18T20:29:57+00:00] INFO: Processing directory[/var/cache/chef] action create (chef-client::init_service line 91)
[2014-08-18T20:29:57+00:00] INFO: Processing directory[/var/lib/chef] action create (chef-client::init_service line 91)
[2014-08-18T20:29:57+00:00] INFO: Processing directory[/var/log/chef] action create (chef-client::init_service line 91)
[2014-08-18T20:29:57+00:00] INFO: Processing directory[/etc/chef] action create (chef-client::init_service line 91)
[2014-08-18T20:29:57+00:00] INFO: Processing template[/etc/init.d/chef-client] action create (chef-client::init_service line 19)
[2014-08-18T20:29:57+00:00] INFO: Processing template[/etc/default/chef-client] action create (chef-client::init_service line 26)
[2014-08-18T20:29:57+00:00] INFO: Processing service[chef-client] action enable (chef-client::init_service line 32)
[2014-08-18T20:29:57+00:00] INFO: Processing service[chef-client] action start (chef-client::init_service line 32)
[2014-08-18T20:29:58+00:00] INFO: Chef Run complete in 1.508331581 seconds
[2014-08-18T20:29:58+00:00] INFO: Running report handlers
[2014-08-18T20:29:58+00:00] INFO: Report handlers complete
[2014-08-18T20:29:58+00:00] INFO: Sending resource update report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment