Kyle Calica-St
Kyle Calica-St

Reputation: 2953

Chef-Server Installation can't find chef service

I am installing chef-server on this VPS that my friend let me borrow.

I was able to install chef and run chef-server-ctl reconfigure successfully.

I ran into problems because I need to change the iptable rules and I discovered that I cannot find chef-server running on any port or as a service.

When I run chef-server-ctl it seems to pass all the tests, so I know its API is working.

Where can I find that chef is running?

I need to change my iptables so that I can use knife to communicate with chef-server.

Upvotes: 0

Views: 220

Answers (2)

Sowmya N
Sowmya N

Reputation: 11

You have installed Chef server and have reconfigured the server, you can't find a chef-server. you can run below commands to check all the services that are running chef server

$ chef-server-ctl service-list 

  bookshelf*
  nginx*
  oc_bifrost*
  oc_id*
  opscode-chef-mover*
  opscode-erchef*
  opscode-expander*
  opscode-solr4*
  rabbitmq*
  redis_lb*
  postgresql*

To update the port number you need to update

/etc/chef-server/chef-server.rb - in Chef 11 /etcopscode/chef-server.rb - in Chef 12

nginx['non_ssl_port'] = portnumber

And also how are using knife command? Do you want ssl check to be passed then you need to add a line in knife.rb file

ssl_verify_mode: verify_none '

Upvotes: 1

coderanger
coderanger

Reputation: 54249

First off it sounds like you installed Chef Server, not Chef, important distinction :) Second, there is no specific process called chef-server. The frontend routing is handled by nginx which binds on port 443 and 80 (80 is just a redirector to 443 and can be blocked or disabled if desired). Internally we have a bunch of different smaller services like oc_erchef, bifrost, oc_id, etc. These all listen on localhost and are reached via Nginx.

Upvotes: 1

Related Questions