Postgresql error: uninitialized constant Chef::Recipe::PGError


#1

I posted this on IRC and confirmed I’m not the only one seeing it, so I’m
expanding the net and re-posting here.

[Mon, 25 Jun 2012 11:12:57 -0700] ERROR: bash[assign-postgres-password]
(postgresql::server line 58) has had an error
[Mon, 25 Jun 2012 11:12:57 -0700] ERROR: bash[assign-postgres-password]
(/var/chef/cache/cookbooks/postgresql/recipes/server.rb:58:in `from_file’) had
an error:
bash[assign-postgres-password] (postgresql::server line 58) had an error:
NameError: uninitialized constant Chef::Recipe::PGError

This is a current chef & repo config:

nimuser@chef:~/chef-repo/cookbooks$ dpkg -l | grep chef
ii chef 10.12.0-1 A
systems integration framework, built to bring the benefits of configuration
management to your entire infrastructure.
ii chef-expander 10.12.0-1 A
systems integration framework, built to bring the benefits of configuration
management to your entire infrastructure.
ii chef-server 10.12.0-1 A
meta-gem to install all server components of the Chef configuration management
system
ii chef-server-api 10.12.0-1 A
systems integration framework, built to bring the benefits of configuration
management to your entire infrastructure.
ii chef-server-webui 10.12.0-1 A
systems integration framework, built to bring the benefits of configuration
management to your entire infrastructure.
ii chef-solr 10.12.0-1 Manages
search indexes of Chef node attributes using SOLR


#2

Hello,

It would appear that the postgresql cookbook hasn’t been updated w/
chef_gem resource to install gem into the embedded VM for usage inside
of the recipe

HTH:


Please file a bug and/or adjust your code locally (gem_package =>
chef_gem), conversely, a Gem.clear_paths and so on before the actual
usage of the PG gem would cause this not to occur.

–AJ

On 26 June 2012 10:41, bruce.edge@gmail.com wrote:

I posted this on IRC and confirmed I’m not the only one seeing it, so I’m
expanding the net and re-posting here.

[Mon, 25 Jun 2012 11:12:57 -0700] ERROR: bash[assign-postgres-password]
(postgresql::server line 58) has had an error
[Mon, 25 Jun 2012 11:12:57 -0700] ERROR: bash[assign-postgres-password]
(/var/chef/cache/cookbooks/postgresql/recipes/server.rb:58:in `from_file’) had
an error:
bash[assign-postgres-password] (postgresql::server line 58) had an error:
NameError: uninitialized constant Chef::Recipe::PGError

This is a current chef & repo config:

nimuser@chef:~/chef-repo/cookbooks$ dpkg -l | grep chef
ii chef 10.12.0-1 A
systems integration framework, built to bring the benefits of configuration
management to your entire infrastructure.
ii chef-expander 10.12.0-1 A
systems integration framework, built to bring the benefits of configuration
management to your entire infrastructure.
ii chef-server 10.12.0-1 A
meta-gem to install all server components of the Chef configuration management
system
ii chef-server-api 10.12.0-1 A
systems integration framework, built to bring the benefits of configuration
management to your entire infrastructure.
ii chef-server-webui 10.12.0-1 A
systems integration framework, built to bring the benefits of configuration
management to your entire infrastructure.
ii chef-solr 10.12.0-1 Manages
search indexes of Chef node attributes using SOLR