Chef server install error, can not access the login web site


#1

Hi, every one.
I just installed chef server x64 in rehl5/6.
But on both the rh servers, I could access the login web site.
I try to use chef-server-ctl to find out what happened.
Here below is the error message.
Do anybody know how to fix it?
Thanks.
PS: the attachment is the chrome snapshot (https://ipaddress).
[root@PTR10LR37 ~]# chef-server-ctl test all
Configuring logging…
Creating platform…
Configured URL: https://PTR10LR37.CUCTEST.CUC.CN
Creating org pedant_testorg_PTR10LR37_4291
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:336:in
block in create_org': Bad error code 400 from create org: {"error":["Field 'name' invalid"]} (RuntimeError) from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:321:intimes’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:321:in
create_org' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:123:inorg_from_config’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:42:in
initialize' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:79:innew’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:79:in
create_platform' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:58:insetup’
from ./bin/oc-chef-pedant:10:in `’


#2

Hey Dong,

I assume you installed Chef server 12, the latest. By default it doesn’t
ship with a UI, so what you are seeing is the default page if you access
the API in a browser. The UI component is called Manage
(https://docs.chef.io/manage.html) and it is installed separately via
another package. It is a premium feature (so a pay feature), but is free
for use under 25 nodes. If you’d like to install it, you can find the
docs to do so here: http://docs.chef.io/ctl_chef_server.html#install.
Once it is installed it will replace the default page you see now.

I’m not sure what caused the chef-server-ctl test failure. I suspect
that might be an issue with the test suite. If you see no other errors
when running your Chef server I believe you’re good to go.

Mark Mzyk
Chef Software Engineer

Dong mailto:iamdongzi@gmail.com
July 6, 2015 at 11:23 PM
Hi, every one.
I just installed chef server x64 in rehl5/6.
But on both the rh servers, I could access the login web site.
I try to use chef-server-ctl to find out what happened.
Here below is the error message.
Do anybody know how to fix it?
Thanks.
PS: the attachment is the chrome snapshot (https://ipaddress).
[root@PTR10LR37 ~]# chef-server-ctl test all
Configuring logging…
Creating platform…
Configured URL: https://PTR10LR37.CUCTEST.CUC.CN
Creating org pedant_testorg_PTR10LR37_4291
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:336:in
block in create_org': Bad error code 400 from create org: {"error":["Field 'name' invalid"]} (RuntimeError) from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:321:intimes’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:321:in
create_org' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:123:inorg_from_config’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:42:in
initialize' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:79:innew’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:79:in
create_platform' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:58:insetup’
from ./bin/oc-chef-pedant:10:in `’


#3

Hi Mark,
Thank you very much! The version of Chef I installed is 12.
Sorry that I am a little busy today. So I reply later. I will try to
install the chef server UI tomorrow.
Thanks again~~~

2015-07-07 21:35 GMT+08:00 Mark Mzyk mmzyk@chef.io:

Hey Dong,

I assume you installed Chef server 12, the latest. By default it doesn’t
ship with a UI, so what you are seeing is the default page if you access
the API in a browser. The UI component is called Manage (
https://docs.chef.io/manage.html) and it is installed separately via
another package. It is a premium feature (so a pay feature), but is free
for use under 25 nodes. If you’d like to install it, you can find the docs
to do so here: http://docs.chef.io/ctl_chef_server.html#install. Once it
is installed it will replace the default page you see now.

I’m not sure what caused the chef-server-ctl test failure. I suspect that
might be an issue with the test suite. If you see no other errors when
running your Chef server I believe you’re good to go.

Mark Mzyk
Chef Software Engineer

Dong iamdongzi@gmail.com
July 6, 2015 at 11:23 PM
Hi, every one.
I just installed chef server x64 in rehl5/6.
But on both the rh servers, I could access the login web site.
I try to use chef-server-ctl to find out what happened.
Here below is the error message.
Do anybody know how to fix it?
Thanks.
PS: the attachment is the chrome snapshot (https://ipaddress).
[root@PTR10LR37 ~]# chef-server-ctl test all
Configuring logging…
Creating platform…
Configured URL: https://PTR10LR37.CUCTEST.CUC.CN
Creating org pedant_testorg_PTR10LR37_4291
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:336:in
block in create_org': Bad error code 400 from create org: {"error":["Field 'name' invalid"]} (RuntimeError) from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:321:intimes’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:321:in
create_org' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:123:inorg_from_config’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:42:in
initialize' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:79:innew’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:79:in
create_platform' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:58:insetup’
from ./bin/oc-chef-pedant:10:in `’


#4

Sure. Also, a follow up on the error you see when running the tests. The
test suite has an issue with hostnames that have uppercase letters in
them. This is a test suite issue and the server works fine with
uppercase letters in the hostname. We need to fix the issue in the test
suite, but you can disregard that error.

Dong mailto:iamdongzi@gmail.com
July 8, 2015 at 10:43 AM
Hi Mark,
Thank you very much! The version of Chef I installed is 12.
Sorry that I am a little busy today. So I reply later. I will try to
install the chef server UI tomorrow.
Thanks again~~~

Mark Mzyk mailto:mmzyk@chef.io
July 7, 2015 at 9:35 AM
Hey Dong,

I assume you installed Chef server 12, the latest. By default it
doesn’t ship with a UI, so what you are seeing is the default page if
you access the API in a browser. The UI component is called Manage
(https://docs.chef.io/manage.html) and it is installed separately via
another package. It is a premium feature (so a pay feature), but is
free for use under 25 nodes. If you’d like to install it, you can find
the docs to do so here:
http://docs.chef.io/ctl_chef_server.html#install. Once it is installed
it will replace the default page you see now.

I’m not sure what caused the chef-server-ctl test failure. I suspect
that might be an issue with the test suite. If you see no other errors
when running your Chef server I believe you’re good to go.

Mark Mzyk
Chef Software Engineer

Dong mailto:iamdongzi@gmail.com
July 6, 2015 at 11:23 PM
Hi, every one.
I just installed chef server x64 in rehl5/6.
But on both the rh servers, I could access the login web site.
I try to use chef-server-ctl to find out what happened.
Here below is the error message.
Do anybody know how to fix it?
Thanks.
PS: the attachment is the chrome snapshot (https://ipaddress).
[root@PTR10LR37 ~]# chef-server-ctl test all
Configuring logging…
Creating platform…
Configured URL: https://PTR10LR37.CUCTEST.CUC.CN
Creating org pedant_testorg_PTR10LR37_4291
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:336:in
block in create_org': Bad error code 400 from create org: {"error":["Field 'name' invalid"]} (RuntimeError) from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:321:intimes’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:321:in
create_org' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:123:inorg_from_config’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant/platform.rb:42:in
initialize' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:79:innew’
from
/opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:79:in
create_platform' from /opt/opscode/embedded/service/oc-chef-pedant/lib/pedant.rb:58:insetup’
from ./bin/oc-chef-pedant:10:in `’