Hello,
Trying to configure chef server 11 on EC2 and i think i hit that internal
redirect problem [0] also mentioned here [1]
( Can update roles, environments, but can’t upload cookbooks )
I would like to know what are the dependencies for chef server 11 to just
work.
My steps:
Boot ec2 instance
Point chef.example.com to public ip of that instance
Put “public_ip chef.example.com” to /etc/hosts ( can resolve
chef.example.com anyway )
/etc/init.d/hostname start ( even reboot )
Get 11.0.8 and install
chef-server-ctl reconfigure
And problem starts
As suggested, tried overwriting it with chef-server.rb:
server_name = "chef.example.com"
api_fqdn server_name
nginx[‘url’] = "https://#{server_name}"
nginx[‘server_name’] = server_name
lb[‘fqdn’] = server_name
bookshelf[‘vip’] = server_name
reconfigured with no luck.
Thanks
[0] http://lists.opscode.com/sympa/arc/chef/2013-03/msg00130.html
[1] http://community.opscode.com/chat/chef/2013-02-23
[2] http://tickets.opscode.com/browse/CHEF-4126
[Example log] http://pastebin.com/Dd69kwH8
This sounds familiar to what I dealt with the first time I set up chef 11. I scrapped the original project and used Knife::Server by fnichol to set up a new server and I didn't have the issue any more. I know it uses the master GitHub - chef-cookbooks/chef-server: Cookbook to install standalone Chef Server cookbook under the hood, so you may be able to tackle it with only that.
That said, if you've got the time to help improve chef-server-ctl or otherwise contribute to making the error messages in chef-server improved, I'd love to stop seeing people with this problem.
On 2013-05-30, at 02:06, İşbaran Akçayır isbaran@gmail.com wrote:
Hello,
Trying to configure chef server 11 on EC2 and i think i hit that internal redirect problem [0] also mentioned here [1]
( Can update roles, environments, but can't upload cookbooks )
I would like to know what are the dependencies for chef server 11 to just work.
My steps:
Boot ec2 instance
Point chef.example.com to public ip of that instance
Put "public_ip chef.example.com" to /etc/hosts ( can resolve chef.example.com anyway )
/etc/init.d/hostname start ( even reboot )
Get 11.0.8 and install
chef-server-ctl reconfigure
And problem starts
As suggested, tried overwriting it with chef-server.rb:
server_name = "chef.example.com"
api_fqdn server_name
nginx['url'] = "https://#{server_name}"
nginx['server_name'] = server_name
lb['fqdn'] = server_name
bookshelf['vip'] = server_name
reconfigured with no luck.
Thanks
[0] chef - [chef] RE: Re: Error uploading Cookbooks
[1] http://community.opscode.com/chat/chef/2013-02-23
[2] http://tickets.opscode.com/browse/CHEF-4126
[Example log] chef cookbook upload problem - Pastebin.com
Is your ec2 instance is created in VPN? Well should not matter, but just to
confirm.
Also what error you are getting, Is the error you are getting is :
"“/usr/lib/ruby/1.8/net/http.rb:560:in
`initialize': getaddrinfo: Name or service not known (SocketError)”
On Thu, May 30, 2013 at 2:36 PM, İşbaran Akçayır isbaran@gmail.com wrote:
Hello,
Trying to configure chef server 11 on EC2 and i think i hit that internal
redirect problem [0] also mentioned here [1]
( Can update roles, environments, but can't upload cookbooks )
I would like to know what are the dependencies for chef server 11 to just
work.
My steps:
Boot ec2 instance
Point chef.example.com to public ip of that instance
Put "public_ip chef.example.com" to /etc/hosts ( can resolve
chef.example.com anyway )
/etc/init.d/hostname start ( even reboot )
Get 11.0.8 and install
chef-server-ctl reconfigure
And problem starts
As suggested, tried overwriting it with chef-server.rb:
server_name = "chef.example.com"
api_fqdn server_name
nginx['url'] = "https://#{server_name}"
nginx['server_name'] = server_name
lb['fqdn'] = server_name
bookshelf['vip'] = server_name
reconfigured with no luck.
Thanks
[0] chef - [chef] RE: Re: Error uploading Cookbooks
[1] http://community.opscode.com/chat/chef/2013-02-23
[2] http://tickets.opscode.com/browse/CHEF-4126
[Example log] chef cookbook upload problem - Pastebin.com
--
Chandan Maheshwari,
On Thu, May 30, 2013 at 12:35 PM, Chandan Maheshwari <
chandan.maheshwari@clogeny.com> wrote:
Is your ec2 instance is created in VPN? Well should not matter, but just
to confirm.
VPC ? No, regular instance
Also what error you are getting, Is the error you are getting is : "“/usr/lib/ruby/1.8/net/http.rb:560:in
`initialize': getaddrinfo: Name or service not known (SocketError)”
Client side: ERROR: Server returned error for
https://chef.example.com/sandboxes/0000000000005feeed789cb9c3139a11,
retrying 1/5 in 4s
Here is the tail: ==> /var/log/chef-server/nginx/access.log <==82.22.11.33 - - [30/May/2013:11:3 - Pastebin.com
Joseph, thanks for pointing that out, i couldn't understand what the issue
is here, i'll try knife server plugin to see if it makes any configuration
different
On Thu, May 30, 2013 at 2:36 PM, İşbaran Akçayır isbaran@gmail.com wrote:
Hello,
Trying to configure chef server 11 on EC2 and i think i hit that internal
redirect problem [0] also mentioned here [1]
( Can update roles, environments, but can't upload cookbooks )
I would like to know what are the dependencies for chef server 11 to just
work.
My steps:
Boot ec2 instance
Point chef.example.com to public ip of that instance
Put "public_ip chef.example.com" to /etc/hosts ( can resolve
chef.example.com anyway )
/etc/init.d/hostname start ( even reboot )
Get 11.0.8 and install
chef-server-ctl reconfigure
And problem starts
As suggested, tried overwriting it with chef-server.rb:
server_name = "chef.example.com"
api_fqdn server_name
nginx['url'] = "https://#{server_name}"
nginx['server_name'] = server_name
lb['fqdn'] = server_name
bookshelf['vip'] = server_name
reconfigured with no luck.
Thanks
[0] chef - [chef] RE: Re: Error uploading Cookbooks
[1] http://community.opscode.com/chat/chef/2013-02-23
[2] http://tickets.opscode.com/browse/CHEF-4126
[Example log] chef cookbook upload problem - Pastebin.com
It works now after adding
"127.0.1.1 chef.example.com chef"
Even though hostname --fqdn and everything else is set correctly
I'll take a look at what is causing this and post if i come up with
anything useful
Thank you
On Thu, May 30, 2013 at 2:41 PM, İşbaran Akçayır isbaran@gmail.com wrote:
On Thu, May 30, 2013 at 12:35 PM, Chandan Maheshwari <
chandan.maheshwari@clogeny.com> wrote:
Is your ec2 instance is created in VPN? Well should not matter, but just
to confirm.
VPC ? No, regular instance
Also what error you are getting, Is the error you are getting is : "“/usr/lib/ruby/1.8/net/http.rb:560:in
`initialize': getaddrinfo: Name or service not known (SocketError)”
Client side: ERROR: Server returned error for
https://chef.example.com/sandboxes/0000000000005feeed789cb9c3139a11,
retrying 1/5 in 4s
Here is the tail: ==> /var/log/chef-server/nginx/access.log <==82.22.11.33 - - [30/May/2013:11:3 - Pastebin.com
Joseph, thanks for pointing that out, i couldn't understand what the issue
is here, i'll try knife server plugin to see if it makes any configuration
different
On Thu, May 30, 2013 at 2:36 PM, İşbaran Akçayır isbaran@gmail.comwrote:
Hello,
Trying to configure chef server 11 on EC2 and i think i hit that
internal redirect problem [0] also mentioned here [1]
( Can update roles, environments, but can't upload cookbooks )
I would like to know what are the dependencies for chef server 11 to
just work.
My steps:
Boot ec2 instance
Point chef.example.com to public ip of that instance
Put "public_ip chef.example.com" to /etc/hosts ( can resolve
chef.example.com anyway )
/etc/init.d/hostname start ( even reboot )
Get 11.0.8 and install
chef-server-ctl reconfigure
And problem starts
As suggested, tried overwriting it with chef-server.rb:
server_name = "chef.example.com"
api_fqdn server_name
nginx['url'] = "https://#{server_name}"
nginx['server_name'] = server_name
lb['fqdn'] = server_name
bookshelf['vip'] = server_name
reconfigured with no luck.
Thanks
[0] chef - [chef] RE: Re: Error uploading Cookbooks
[1] http://community.opscode.com/chat/chef/2013-02-23
[2] http://tickets.opscode.com/browse/CHEF-4126
[Example log] chef cookbook upload problem - Pastebin.com