Chef-server installation n centos 5


#1

i was trying to install chef-server using rubygems install run list.

it gave me an error

Chef 0.10.2 ***
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Setting the run_list to
[“recipe[chef-server::rubygems-install]”] from JSON
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List is
[recipe[chef-server::rubygems-install]]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List expands to
[chef-server::rubygems-install]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Starting Chef Run for XXXX
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing user[chef] action create
(chef-server::rubygems-install line 30)
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing package[erlang] action
install (erlang::default line 26)
/usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/…/lib/chef/provider/package/yum.rb:64:
[BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-linux]

So i found the forum saying need to have ruby ver 1.8.6 and gem 1.4.0 . tn i
had installed the ruby 1.8.6 and gem 1.4.0

then it started running nice upto chef-solr service start step. After that i
got an error chef-expander service start failed.

i got this error []’: odd number of arguments for Hash (ArgumentError).

when i searched the forum , now this error is because ruby version 1.8.7 syntax
being used in the expander.

Please help me how to resolve it .


#2

Mani,

Is this a 32 bit or 64 bit system? What repo did you install the Ruby 1.8.7
RPM from?

Thanks,

James

On Wed, Jul 20, 2011 at 5:59 PM, mani@moofwd.com wrote:

i was trying to install chef-server using rubygems install run list.

it gave me an error

Chef 0.10.2 ***
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Setting the run_list to
[“recipe[chef-server::rubygems-install]”] from JSON
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List is
[recipe[chef-server::rubygems-install]]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List expands to
[chef-server::rubygems-install]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Starting Chef Run for XXXX
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing user[chef] action create
(chef-server::rubygems-install line 30)
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing package[erlang] action
install (erlang::default line 26)

/usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/…/lib/chef/provider/package/yum.rb:64:
[BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-linux]

So i found the forum saying need to have ruby ver 1.8.6 and gem 1.4.0 . tn
i
had installed the ruby 1.8.6 and gem 1.4.0

then it started running nice upto chef-solr service start step. After that
i
got an error chef-expander service start failed.

i got this error []’: odd number of arguments for Hash (ArgumentError).

when i searched the forum , now this error is because ruby version 1.8.7
syntax
being used in the expander.

Please help me how to resolve it .


#3

Thanks for your reply James, its 32 bit system.

I’ve installed through this yum install commands

yum install ruby-1.8.7.334-2.el5 ruby-devel-1.8.7.334-2.el5 ruby-ri-1.8.
7.334-2.el5 ruby-rdoc-1.8.7.334-2.el5

On Wed, Jul 20, 2011 at 9:34 PM, James js@aegisco.com wrote:

Mani,

Is this a 32 bit or 64 bit system? What repo did you install the Ruby 1.8.7
RPM from?

Thanks,

James

On Wed, Jul 20, 2011 at 5:59 PM, mani@moofwd.com wrote:

i was trying to install chef-server using rubygems install run list.

it gave me an error

Chef 0.10.2 ***
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Setting the run_list to
[“recipe[chef-server::rubygems-install]”] from JSON
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List is
[recipe[chef-server::rubygems-install]]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List expands to
[chef-server::rubygems-install]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Starting Chef Run for XXXX
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing user[chef] action
create
(chef-server::rubygems-install line 30)
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing package[erlang] action
install (erlang::default line 26)

/usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/…/lib/chef/provider/package/yum.rb:64:
[BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-linux]

So i found the forum saying need to have ruby ver 1.8.6 and gem 1.4.0 . tn
i
had installed the ruby 1.8.6 and gem 1.4.0

then it started running nice upto chef-solr service start step. After that
i
got an error chef-expander service start failed.

i got this error []’: odd number of arguments for Hash (ArgumentError).

when i searched the forum , now this error is because ruby version 1.8.7
syntax
being used in the expander.

Please help me how to resolve it .


Thanks & Regards

M.


#4

Mani,

There are earlier threads on this topic on the mailing list. I’m hoping to
have new packages up before the weekend which may or may not resolve the
problem. rubiojr has also been working on this problem, but I don’t think he
has 32 bit packages – which I believe are the source (the segfaults only
occur on 32 bit sytems). mkent also did some yum work, which will be
included in the next round of rpms, and is included in the 64 bit rpms on
rbel, I think.

I have been slack in getting these updated because I wanted to do it in an
automated fashion, rather than by hand. I used the rpmbuild cookbook and
heavily modified it for the purpose of building all of the chef-related
packages on a target architecture/distribution. Essentially using Chef to
build Chef, as opposed to something like Koji or mock.

Please note that if you are able to use a 64 bit system, I’m confident both
the rpm.aegisco.com repo and the rbel repo packages will work. The rbel
packages are newer than the ones in aegisco currently.

James

On Wed, Jul 20, 2011 at 7:31 PM, Mani Govindarajulu mani@moofwd.com wrote:

Thanks for your reply James, its 32 bit system.

I’ve installed through this yum install commands

yum install ruby-1.8.7.334-2.el5 ruby-devel-1.8.7.334-2.el5 ruby-ri-1.8.
7.334-2.el5 ruby-rdoc-1.8.7.334-2.el5

On Wed, Jul 20, 2011 at 9:34 PM, James js@aegisco.com wrote:

Mani,

Is this a 32 bit or 64 bit system? What repo did you install the Ruby
1.8.7 RPM from?

Thanks,

James

On Wed, Jul 20, 2011 at 5:59 PM, mani@moofwd.com wrote:

i was trying to install chef-server using rubygems install run list.

it gave me an error

Chef 0.10.2 ***
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Setting the run_list to
[“recipe[chef-server::rubygems-install]”] from JSON
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List is
[recipe[chef-server::rubygems-install]]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List expands to
[chef-server::rubygems-install]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Starting Chef Run for XXXX
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing user[chef] action
create
(chef-server::rubygems-install line 30)
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing package[erlang] action
install (erlang::default line 26)

/usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/…/lib/chef/provider/package/yum.rb:64:
[BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-linux]

So i found the forum saying need to have ruby ver 1.8.6 and gem 1.4.0 .
tn i
had installed the ruby 1.8.6 and gem 1.4.0

then it started running nice upto chef-solr service start step. After
that i
got an error chef-expander service start failed.

i got this error []’: odd number of arguments for Hash (ArgumentError).

when i searched the forum , now this error is because ruby version 1.8.7
syntax
being used in the expander.

Please help me how to resolve it .


Thanks & Regards

M.


#5

James,

Thanks. Actually i have fixed this by restarting chef-solr and chef-server
manually after installing Ruby 1.8.7 , Right now i can see/login into the
web-ui .

Where could i check the server logs if anything goes wrong ? Please tell me
briefly about chef-expander role on this .

On Thu, Jul 21, 2011 at 12:53 AM, James js@aegisco.com wrote:

Mani,

There are earlier threads on this topic on the mailing list. I’m hoping to
have new packages up before the weekend which may or may not resolve the
problem. rubiojr has also been working on this problem, but I don’t think he
has 32 bit packages – which I believe are the source (the segfaults only
occur on 32 bit sytems). mkent also did some yum work, which will be
included in the next round of rpms, and is included in the 64 bit rpms on
rbel, I think.

I have been slack in getting these updated because I wanted to do it in an
automated fashion, rather than by hand. I used the rpmbuild cookbook and
heavily modified it for the purpose of building all of the chef-related
packages on a target architecture/distribution. Essentially using Chef to
build Chef, as opposed to something like Koji or mock.

Please note that if you are able to use a 64 bit system, I’m confident both
the rpm.aegisco.com repo and the rbel repo packages will work. The rbel
packages are newer than the ones in aegisco currently.

James

On Wed, Jul 20, 2011 at 7:31 PM, Mani Govindarajulu mani@moofwd.comwrote:

Thanks for your reply James, its 32 bit system.

I’ve installed through this yum install commands

yum install ruby-1.8.7.334-2.el5 ruby-devel-1.8.7.334-2.el5 ruby-ri-1.8.
7.334-2.el5 ruby-rdoc-1.8.7.334-2.el5

On Wed, Jul 20, 2011 at 9:34 PM, James js@aegisco.com wrote:

Mani,

Is this a 32 bit or 64 bit system? What repo did you install the Ruby
1.8.7 RPM from?

Thanks,

James

On Wed, Jul 20, 2011 at 5:59 PM, mani@moofwd.com wrote:

i was trying to install chef-server using rubygems install run list.

it gave me an error

Chef 0.10.2 ***
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Setting the run_list to
[“recipe[chef-server::rubygems-install]”] from JSON
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List is
[recipe[chef-server::rubygems-install]]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List expands to
[chef-server::rubygems-install]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Starting Chef Run for XXXX
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing user[chef] action
create
(chef-server::rubygems-install line 30)
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing package[erlang]
action
install (erlang::default line 26)

/usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/…/lib/chef/provider/package/yum.rb:64:
[BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-linux]

So i found the forum saying need to have ruby ver 1.8.6 and gem 1.4.0 .
tn i
had installed the ruby 1.8.6 and gem 1.4.0

then it started running nice upto chef-solr service start step. After
that i
got an error chef-expander service start failed.

i got this error []’: odd number of arguments for Hash (ArgumentError).

when i searched the forum , now this error is because ruby version 1.8.7
syntax
being used in the expander.

Please help me how to resolve it .


Thanks & Regards

M.


Thanks & Regards

M.


#6

The logs are in /var/log, and docs for chef-expander are here:
http://wiki.opscode.com/display/chef/Chef+Indexer

Can you check which repo you installed Ruby 1.8.7 from please?

James

On Wed, Jul 20, 2011 at 9:59 PM, Mani Govindarajulu mani@moofwd.com wrote:

James,

Thanks. Actually i have fixed this by restarting chef-solr and chef-server
manually after installing Ruby 1.8.7 , Right now i can see/login into the
web-ui .

Where could i check the server logs if anything goes wrong ? Please tell me
briefly about chef-expander role on this .

On Thu, Jul 21, 2011 at 12:53 AM, James js@aegisco.com wrote:

Mani,

There are earlier threads on this topic on the mailing list. I’m hoping to
have new packages up before the weekend which may or may not resolve the
problem. rubiojr has also been working on this problem, but I don’t think he
has 32 bit packages – which I believe are the source (the segfaults only
occur on 32 bit sytems). mkent also did some yum work, which will be
included in the next round of rpms, and is included in the 64 bit rpms on
rbel, I think.

I have been slack in getting these updated because I wanted to do it in an
automated fashion, rather than by hand. I used the rpmbuild cookbook and
heavily modified it for the purpose of building all of the chef-related
packages on a target architecture/distribution. Essentially using Chef to
build Chef, as opposed to something like Koji or mock.

Please note that if you are able to use a 64 bit system, I’m confident
both the rpm.aegisco.com repo and the rbel repo packages will work. The
rbel packages are newer than the ones in aegisco currently.

James

On Wed, Jul 20, 2011 at 7:31 PM, Mani Govindarajulu mani@moofwd.comwrote:

Thanks for your reply James, its 32 bit system.

I’ve installed through this yum install commands

yum install ruby-1.8.7.334-2.el5 ruby-devel-1.8.7.334-2.el5 ruby-ri-1.8.
7.334-2.el5 ruby-rdoc-1.8.7.334-2.el5

On Wed, Jul 20, 2011 at 9:34 PM, James js@aegisco.com wrote:

Mani,

Is this a 32 bit or 64 bit system? What repo did you install the Ruby
1.8.7 RPM from?

Thanks,

James

On Wed, Jul 20, 2011 at 5:59 PM, mani@moofwd.com wrote:

i was trying to install chef-server using rubygems install run list.

it gave me an error

Chef 0.10.2 ***
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Setting the run_list to
[“recipe[chef-server::rubygems-install]”] from JSON
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List is
[recipe[chef-server::rubygems-install]]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Run List expands to
[chef-server::rubygems-install]
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Starting Chef Run for XXXX
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing user[chef] action
create
(chef-server::rubygems-install line 30)
[Wed, 20 Jul 2011 15:20:41 -0400] INFO: Processing package[erlang]
action
install (erlang::default line 26)

/usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/…/lib/chef/provider/package/yum.rb:64:
[BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-linux]

So i found the forum saying need to have ruby ver 1.8.6 and gem 1.4.0 .
tn i
had installed the ruby 1.8.6 and gem 1.4.0

then it started running nice upto chef-solr service start step. After
that i
got an error chef-expander service start failed.

i got this error []’: odd number of arguments for Hash
(ArgumentError).

when i searched the forum , now this error is because ruby version
1.8.7 syntax
being used in the expander.

Please help me how to resolve it .


Thanks & Regards

M.


Thanks & Regards

M.


#7

On Thu, Jul 21, 2011 at 6:53 AM, James js@aegisco.com wrote:

I have been slack in getting these updated because I wanted to do it in an
automated fashion, rather than by hand. I used the rpmbuild cookbook and
heavily modified it for the purpose of building all of the chef-related
packages on a target architecture/distribution. Essentially using Chef to
build Chef, as opposed to something like Koji or mock.

James,

I’ve got a custom build system in place to auto generate the Chef RPM
packages. Does not use Chef itself though.
I’m willing to share and document it if there’s interest in this kind of stuff.

Rgds.


#8

On Thu, Jul 21, 2011 at 11:54 AM, Sergio Rubio rubiojr@frameos.org wrote:

On Thu, Jul 21, 2011 at 6:53 AM, James js@aegisco.com wrote:

I have been slack in getting these updated because I wanted to do it in an
automated fashion, rather than by hand. I used the rpmbuild cookbook and
heavily modified it for the purpose of building all of the chef-related
packages on a target architecture/distribution. Essentially using Chef to
build Chef, as opposed to something like Koji or mock.

James,

I’ve got a custom build system in place to auto generate the Chef RPM
packages. Does not use Chef itself though.
I’m willing to share and document it if there’s interest in this kind of stuff.

Rgds.

I wasn’t a big deal to document and publish the stuff after all. Here you are:

The build script creates Source RPMS from chef master. Y usually pipe
them to pkg-wizard build-bot (http://pkg-wizard.frameos.org/) to
create the bin RPMS, but it’s really up to you if you wanna use
rpmbuild instead.

Rgds.