P
P
Pavel Bezrukov2014-09-14 16:13:05
Chef
Pavel Bezrukov, 2014-09-14 16:13:05

I do not understand why the chef server is not installed?

Good afternoon.
Decided to learn how to manage configurations with Chef Server.
Here, in my opinion, is not a bad tutorial , others are + - similar, with the difference that I tried it on debian 6.7 and deb package from the site.
I'm dying immediately on the 2nd step. # chef-server-ctl reconfigure :)
The error is as follows:

# 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 /opt/opscode/embedded/cookbooks/solo.rb
```

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Starting Chef Client, version 11.12.2
Compiling Cookbooks...
Recipe: private-chef::default
  * directory[/etc/opscode] action create (up to date)
  * directory[/etc/opscode/logrotate.d] action create (up to date)
[2014-09-14T17:03:52+04:00] WARN: Cloning resource attributes for template[/opt/opscode/embedded/service/opscode-test/bootstrapper-config/script.rb] from prior resource (CHEF-3694)
[2014-09-14T17:03:52+04:00] WARN: Previous template[/opt/opscode/embedded/service/opscode-test/bootstrapper-config/script.rb]: /opt/opscode/embedded/cookbooks/private-chef/recipes/bootstrap.rb:32:in `from_file'
[2014-09-14T17:03:52+04:00] WARN: Current  template[/opt/opscode/embedded/service/opscode-test/bootstrapper-config/script.rb]: /opt/opscode/embedded/cookbooks/private-chef/recipes/bootstrap.rb:63:in `from_file'
[2014-09-14T17:03:52+04:00] WARN: Cloning resource attributes for runit_service[redis_lb] from prior resource (CHEF-3694)
[2014-09-14T17:03:52+04:00] WARN: Previous runit_service[redis_lb]: /opt/opscode/embedded/cookbooks/enterprise/definitions/component_runit_service.rb:29:in `block in from_file'
[2014-09-14T17:03:52+04:00] WARN: Current  runit_service[redis_lb]: /opt/opscode/embedded/cookbooks/private-chef/recipes/redis_lb.rb:82:in `from_file'
[2014-09-14T17:03:52+04:00] WARN: Cloning resource attributes for directory[/var/opt/opscode/nginx/etc/addon.d] from prior resource (CHEF-3694)
[2014-09-14T17:03:52+04:00] WARN: Previous directory[/var/opt/opscode/nginx/etc/addon.d]: /opt/opscode/embedded/cookbooks/private-chef/recipes/oc_id.rb:139:in `from_file'
[2014-09-14T17:03:52+04:00] WARN: Current  directory[/var/opt/opscode/nginx/etc/addon.d]: /opt/opscode/embedded/cookbooks/private-chef/recipes/nginx.rb:31:in `block in from_file'
Generating RSA private key, 2048 bit long modulus
................................................+++
..............................................................+++
e is 65537 (0x10001)
Converging 268 resources
  * link[/usr/bin/private-chef-ctl] action create (up to date)
  * link[/usr/bin/chef-server-ctl] action create (up to date)
  * directory[/etc/opscode] action nothing (skipped due to action :nothing)
  * directory[/etc/opscode/logrotate.d] action nothing (skipped due to action :nothing)
  * log[opscode_webui deprecation notice] action write (skipped due to only_if)
Recipe: private-chef::users
  * user[opscode] action create (up to date)
  * group[opscode] action create (up to date)
Recipe: private-chef::default
  * file[/etc/opscode/dark_launch_features.json] action create (up to date)
  * file[/etc/opscode/webui_pub.pem] action create (up to date)
  * file[/etc/opscode/webui_priv.pem] action create (up to date)
  * file[/etc/opscode/worker-public.pem] action create (up to date)
  * file[/etc/opscode/worker-private.pem] action create (up to date)
  * file[/etc/opscode/pivotal.cert] action create (up to date)
  * file[/etc/opscode/pivotal.pem] action create (up to date)
  * directory[/etc/chef] action create (up to date)
  * directory[/var/opt/opscode] action create (up to date)
  * directory[/var/log/opscode] action create (up to date)
  * private-chef_keepalived_safemode[warmfuzzy] action create (skipped due to only_if)
Recipe: enterprise::runit_upstart
  * execute[initctl stop opscode-runsvdir] action run (skipped due to only_if)
  * file[/etc/init/opscode-runsvdir.conf] action delete (up to date)
  * template[/etc/init/private-chef-runsvdir.conf] action create (up to date)
  * execute[initctl status private-chef-runsvdir] action run
================================================================================
Error executing action `run` on resource 'execute[initctl status private-chef-runsvdir]'
================================================================================


Errno::ENOENT
-------------
No such file or directory - initctl status private-chef-runsvdir


Resource Declaration:
---------------------
# In /opt/opscode/embedded/cookbooks/enterprise/recipes/runit_upstart.rb

 32: execute "initctl status #{project_name}-runsvdir" do
 33:   retries 30
 34: end
 35:



Compiled Resource:
------------------
# Declared in /opt/opscode/embedded/cookbooks/enterprise/recipes/runit_upstart.rb:32:in `from_file'

execute("initctl status private-chef-runsvdir") do
  action "run"
  retries 0
  retry_delay 2
  guard_interpreter :default
  command "initctl status private-chef-runsvdir"
  backup 5
  returns 0
  cookbook_name :enterprise
  recipe_name "runit_upstart"
end




Running handlers:
[2014-09-14T17:04:54+04:00] ERROR: Running exception handlers
Running handlers complete

[2014-09-14T17:04:54+04:00] ERROR: Exception handlers complete
[2014-09-14T17:04:54+04:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 66.092966718 seconds
[2014-09-14T17:04:54+04:00] ERROR: execute[initctl status private-chef-runsvdir] (enterprise::runit_upstart line 32) had an error: Errno::ENOENT: No such file or directory - initctl status private-chef-runsvdir
[2014-09-14T17:04:54+04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

It's funny that on both machines the error is identical.
In Google, I found links only to stackoverflow and they wrote about similar problems there, that this is a type of chef's mistake, you need to create an issue.
I tried to download another earlier deb package chef 11 from the tutorial , chef-server-ctl reconfigure dies right there, swearing
/opt/chef-server/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/chef-server/embedded/lib/libruby.so.1.9)

I do not believe that the problem is in the package itself, I think I have crooked hands.
I really want to finish this, please help me figure it out.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question