RE: Re: Changing listen ports for chef server?


#1

Thanks for looking that up! First of all, I had made a mistake. I shouldn’t have said “open source chef” - I’m actually using chef server 12.1.2. Thanks for making me aware of that! So the, for me, correct version actually is here: https://docs.chef.io/config_rb_server.html

The settings I used actually came from the optional settings page: https://docs.chef.io/config_rb_server_optional_settings.html

Kevin Keane

The NetTech

http://www.4nettech.com

Our values: Privacy, Liberty, Justice

See https://www.4nettech.com/corp/the-nettech-values.html

-----Original message-----
From: Chris Magnuson chrismagnuson@interush.net
Sent: Monday 17th August 2015 11:21
To: chef@lists.opscode.com
Subject: [chef] Re: Changing listen ports for chef server?

I found this with Google, maybe you did as well.

http://docs.chef.io/open_source/config_rb_chef_server.html http://docs.chef.io/open_source/config_rb_chef_server.html

CJ

From: Kevin Keane Subscription
Reply-To: "chef@lists.opscode.com mailto:chef@lists.opscode.com "
Date: Monday, August 17, 2015 at 11:16 AM
To: "chef@lists.opscode.com mailto:chef@lists.opscode.com "
Subject: [chef] Changing listen ports for chef server?

I would like my open-source chef server to change the ports it listens to. The goal is for it to coexist with a regular Web server.

Apparently, there are entries in chef-server.rb that accomplish this:

nginx[‘non_ssl_port’] = 4080
nginx[‘ssl_port’] = 4443

However, when I do this (and of course change the client URL correspondingly), Chef reports internal errors. The nginx log file shows that an internal connection fails:

[error] 15162#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: “GET /organizations//cookbooks/base_files/0.3.2 HTTP/1.1”, upstream: “/cookbooks/base_files/0.3.2” target="_blank" title=“This external link will open in a new window”>http://127.0.0.1:8000/organizations//cookbooks/base_files/0.3.2 <http://127.0.0.1:8000/organizations/ ", host: “:4443”

When I remove the entries in chef-server.rb, everything goes back to normal.

Is there something else I have to do in order to change the listen ports?

Kevin Keane

The NetTech

http://www.4nettech.com http://www.4nettech.com

Our values: Privacy, Liberty, Justice

See https://www.4nettech.com/corp/the-nettech-values.html