Postgres and foreman

Hi,

I have setup postgres9.1 server along with the required RPMs and
trying to setup foreman on centos6. I have created the required
database under postgres and now when i do

cd /usr/share/foreman

rake db:migrate RAILS_ENV="production"

I get the following message

NOTE: Gem.source_index is deprecated, use Specification. It will be
removed on or after 2011-11-01.
Gem.source_index called from /usr/share/foreman/config/…/vendor/rails/
railties/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It
will be removed on or after 2011-11-01.
Gem::SourceIndex#refresh! called from /usr/share/foreman/config/…/
vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:34.
NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement.
It will be removed on or after 2011-11-01.
Gem::SourceIndex#load_gems_in called from /usr/lib/ruby/site_ruby/1.8/
rubygems/source_index.rb:322.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/
rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use
Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/
rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use
Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/
rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use
Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/
rubygems/source_index.rb:91.
rake aborted!
undefined method `name' for "actionmailer":String

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

Following is the gem list

actionmailer (3.2.1, 3.2.0)
actionpack (3.2.1, 3.2.0)
activemodel (3.2.1, 3.2.0)
activerecord (3.2.1, 3.2.0)
activeresource (3.2.1, 3.2.0)
activesupport (3.2.1, 3.2.0)
arel (3.0.0)
builder (3.0.0)
bundler (1.0.21)
daemon_controller (0.2.6)
diff-lcs (1.1.3)
erubis (2.7.0)
fastthread (1.0.7)
highline (1.6.11)
hike (1.2.1)
hoe (2.13.0)
hoe-highline (0.0.1)
hoe-mercurial (1.3.1)
i18n (0.6.0)
journey (1.0.1, 1.0.0)
json (1.6.5)
mail (2.4.1)
mime-types (1.17.2)
multi_json (1.0.4)
passenger (3.0.11)
pg (0.12.2)
polyglot (0.3.3)
postgres-pr (0.6.3)
rack (1.4.1, 1.1.0)
rack-cache (1.1)
rack-ssl (1.3.2)
rack-test (0.6.1)
railties (3.2.1, 3.2.0)
rake (0.9.2.2)
rake-compiler (0.8.0)
rdoc (3.12)
rest-client (1.6.7)
rspec (2.8.0)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
rspec-mocks (2.8.0)
ruby2ruby (1.3.1)
ruby_parser (2.3.1)
safemode (0.0.2)
sexp_processor (3.0.10)
sprockets (2.1.2)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)

database.yaml

··· ---------------------

production:
adapter: postgresql
database: foreman
username: foreman
password: secret
host: localhost

Am i missing something in configuration?. Can anyone point me out to
some documentation for configuring foreman with postgresql.

Regards,
Kevin

Hi,

Postgres and foreman normally works just fine, which version are you running?

note that your rubygem version might be a bit too new (i think it
should work with the 0.5 / develop branch).

Ohad

··· On Sun, Jan 29, 2012 at 1:58 PM, linuxbsdfreak wrote: > Hi, > > I have setup postgres9.1 server along with the required RPMs and > trying to setup foreman on centos6. I have created the required > database under postgres and now when i do > > cd /usr/share/foreman > > rake db:migrate RAILS_ENV="production" > > I get the following message > > NOTE: Gem.source_index is deprecated, use Specification. It will be > removed on or after 2011-11-01. > Gem.source_index called from /usr/share/foreman/config/../vendor/rails/ > railties/lib/rails/gem_dependency.rb:21. > NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It > will be removed on or after 2011-11-01. > Gem::SourceIndex#refresh! called from /usr/share/foreman/config/../ > vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:34. > NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement. > It will be removed on or after 2011-11-01. > Gem::SourceIndex#load_gems_in called from /usr/lib/ruby/site_ruby/1.8/ > rubygems/source_index.rb:322. > Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ > rubygems/source_index.rb:91. > NOTE: Gem::SourceIndex#add_spec is deprecated, use > Specification.add_spec. It will be removed on or after 2011-11-01. > Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ > rubygems/source_index.rb:91. > NOTE: Gem::SourceIndex#add_spec is deprecated, use > Specification.add_spec. It will be removed on or after 2011-11-01. > Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ > rubygems/source_index.rb:91. > NOTE: Gem::SourceIndex#add_spec is deprecated, use > Specification.add_spec. It will be removed on or after 2011-11-01. > Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ > rubygems/source_index.rb:91. > rake aborted! > undefined method `name' for "actionmailer":String > > Tasks: TOP => db:migrate => environment > (See full trace by running task with --trace) > > Following is the gem list > > actionmailer (3.2.1, 3.2.0) > actionpack (3.2.1, 3.2.0) > activemodel (3.2.1, 3.2.0) > activerecord (3.2.1, 3.2.0) > activeresource (3.2.1, 3.2.0) > activesupport (3.2.1, 3.2.0) > arel (3.0.0) > builder (3.0.0) > bundler (1.0.21) > daemon_controller (0.2.6) > diff-lcs (1.1.3) > erubis (2.7.0) > fastthread (1.0.7) > highline (1.6.11) > hike (1.2.1) > hoe (2.13.0) > hoe-highline (0.0.1) > hoe-mercurial (1.3.1) > i18n (0.6.0) > journey (1.0.1, 1.0.0) > json (1.6.5) > mail (2.4.1) > mime-types (1.17.2) > multi_json (1.0.4) > passenger (3.0.11) > pg (0.12.2) > polyglot (0.3.3) > postgres-pr (0.6.3) > rack (1.4.1, 1.1.0) > rack-cache (1.1) > rack-ssl (1.3.2) > rack-test (0.6.1) > railties (3.2.1, 3.2.0) > rake (0.9.2.2) > rake-compiler (0.8.0) > rdoc (3.12) > rest-client (1.6.7) > rspec (2.8.0) > rspec-core (2.8.0) > rspec-expectations (2.8.0) > rspec-mocks (2.8.0) > ruby2ruby (1.3.1) > ruby_parser (2.3.1) > safemode (0.0.2) > sexp_processor (3.0.10) > sprockets (2.1.2) > thor (0.14.6) > tilt (1.3.3) > treetop (1.4.10) > tzinfo (0.3.31) > > database.yaml > --------------------- > > production: > adapter: postgresql > database: foreman > username: foreman > password: secret > host: localhost > > Am i missing something in configuration?. Can anyone point me out to > some documentation for configuring foreman with postgresql. >

try updating your gem version.

sudo gem update --system 1.4.2

gem --version

Corey Osman
corey@logicminds.biz
678-348-0582 (Pacific Time)

Green IT and Datacenter Automation Specialist

··· On Jan 30, 2012, at 10:47 AM, Ohad Levy wrote:

On Sun, Jan 29, 2012 at 1:58 PM, linuxbsdfreak linuxbsdfreak@gmail.com wrote:

Hi,

I have setup postgres9.1 server along with the required RPMs and
trying to setup foreman on centos6. I have created the required
database under postgres and now when i do

cd /usr/share/foreman

rake db:migrate RAILS_ENV=“production”

I get the following message

NOTE: Gem.source_index is deprecated, use Specification. It will be
removed on or after 2011-11-01.
Gem.source_index called from /usr/share/foreman/config/…/vendor/rails/
railties/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It
will be removed on or after 2011-11-01.
Gem::SourceIndex#refresh! called from /usr/share/foreman/config/…/
vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:34.
NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement.
It will be removed on or after 2011-11-01.
Gem::SourceIndex#load_gems_in called from /usr/lib/ruby/site_ruby/1.8/
rubygems/source_index.rb:322.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/
rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use
Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/
rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use
Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/
rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use
Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/
rubygems/source_index.rb:91.
rake aborted!
undefined method `name’ for “actionmailer”:String

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

Following is the gem list

actionmailer (3.2.1, 3.2.0)
actionpack (3.2.1, 3.2.0)
activemodel (3.2.1, 3.2.0)
activerecord (3.2.1, 3.2.0)
activeresource (3.2.1, 3.2.0)
activesupport (3.2.1, 3.2.0)
arel (3.0.0)
builder (3.0.0)
bundler (1.0.21)
daemon_controller (0.2.6)
diff-lcs (1.1.3)
erubis (2.7.0)
fastthread (1.0.7)
highline (1.6.11)
hike (1.2.1)
hoe (2.13.0)
hoe-highline (0.0.1)
hoe-mercurial (1.3.1)
i18n (0.6.0)
journey (1.0.1, 1.0.0)
json (1.6.5)
mail (2.4.1)
mime-types (1.17.2)
multi_json (1.0.4)
passenger (3.0.11)
pg (0.12.2)
polyglot (0.3.3)
postgres-pr (0.6.3)
rack (1.4.1, 1.1.0)
rack-cache (1.1)
rack-ssl (1.3.2)
rack-test (0.6.1)
railties (3.2.1, 3.2.0)
rake (0.9.2.2)
rake-compiler (0.8.0)
rdoc (3.12)
rest-client (1.6.7)
rspec (2.8.0)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
rspec-mocks (2.8.0)
ruby2ruby (1.3.1)
ruby_parser (2.3.1)
safemode (0.0.2)
sexp_processor (3.0.10)
sprockets (2.1.2)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)

database.yaml

production:
adapter: postgresql
database: foreman
username: foreman
password: secret
host: localhost

Am i missing something in configuration?. Can anyone point me out to
some documentation for configuring foreman with postgresql.

Hi,

Postgres and foreman normally works just fine, which version are you running?

note that your rubygem version might be a bit too new (i think it
should work with the 0.5 / develop branch).

Ohad


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.

Hi,

I am using foreman-0.4.2-0.1.noarch.rpm.

Regards,
Kevin

··· On 30 Jan., 19:51, Corey Osman wrote: > try updating your gem version. > > sudo gem update --system 1.4.2 > > gem --version > > Corey Osman > co...@logicminds.biz > 678-348-0582 (Pacific Time) > > Green IT and Datacenter Automation Specialist > > On Jan 30, 2012, at 10:47 AM, Ohad Levy wrote: > > > On Sun, Jan 29, 2012 at 1:58 PM, linuxbsdfreak wrote: > >> Hi, > > >> I have setup postgres9.1 server along with the required RPMs and > >> trying to setup foreman on centos6. I have created the required > >> database under postgres and now when i do > > >> cd /usr/share/foreman > > >> rake db:migrate RAILS_ENV="production" > > >> I get the following message > > >> NOTE: Gem.source_index is deprecated, use Specification. It will be > >> removed on or after 2011-11-01. > >> Gem.source_index called from /usr/share/foreman/config/../vendor/rails/ > >> railties/lib/rails/gem_dependency.rb:21. > >> NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It > >> will be removed on or after 2011-11-01. > >> Gem::SourceIndex#refresh! called from /usr/share/foreman/config/../ > >> vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:34. > >> NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement. > >> It will be removed on or after 2011-11-01. > >> Gem::SourceIndex#load_gems_in called from /usr/lib/ruby/site_ruby/1.8/ > >> rubygems/source_index.rb:322. > >> Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ > >> rubygems/source_index.rb:91. > >> NOTE: Gem::SourceIndex#add_spec is deprecated, use > >> Specification.add_spec. It will be removed on or after 2011-11-01. > >> Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ > >> rubygems/source_index.rb:91. > >> NOTE: Gem::SourceIndex#add_spec is deprecated, use > >> Specification.add_spec. It will be removed on or after 2011-11-01. > >> Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ > >> rubygems/source_index.rb:91. > >> NOTE: Gem::SourceIndex#add_spec is deprecated, use > >> Specification.add_spec. It will be removed on or after 2011-11-01. > >> Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ > >> rubygems/source_index.rb:91. > >> rake aborted! > >> undefined method `name' for "actionmailer":String > > >> Tasks: TOP => db:migrate => environment > >> (See full trace by running task with --trace) > > >> Following is the gem list > > >> actionmailer (3.2.1, 3.2.0) > >> actionpack (3.2.1, 3.2.0) > >> activemodel (3.2.1, 3.2.0) > >> activerecord (3.2.1, 3.2.0) > >> activeresource (3.2.1, 3.2.0) > >> activesupport (3.2.1, 3.2.0) > >> arel (3.0.0) > >> builder (3.0.0) > >> bundler (1.0.21) > >> daemon_controller (0.2.6) > >> diff-lcs (1.1.3) > >> erubis (2.7.0) > >> fastthread (1.0.7) > >> highline (1.6.11) > >> hike (1.2.1) > >> hoe (2.13.0) > >> hoe-highline (0.0.1) > >> hoe-mercurial (1.3.1) > >> i18n (0.6.0) > >> journey (1.0.1, 1.0.0) > >> json (1.6.5) > >> mail (2.4.1) > >> mime-types (1.17.2) > >> multi_json (1.0.4) > >> passenger (3.0.11) > >> pg (0.12.2) > >> polyglot (0.3.3) > >> postgres-pr (0.6.3) > >> rack (1.4.1, 1.1.0) > >> rack-cache (1.1) > >> rack-ssl (1.3.2) > >> rack-test (0.6.1) > >> railties (3.2.1, 3.2.0) > >> rake (0.9.2.2) > >> rake-compiler (0.8.0) > >> rdoc (3.12) > >> rest-client (1.6.7) > >> rspec (2.8.0) > >> rspec-core (2.8.0) > >> rspec-expectations (2.8.0) > >> rspec-mocks (2.8.0) > >> ruby2ruby (1.3.1) > >> ruby_parser (2.3.1) > >> safemode (0.0.2) > >> sexp_processor (3.0.10) > >> sprockets (2.1.2) > >> thor (0.14.6) > >> tilt (1.3.3) > >> treetop (1.4.10) > >> tzinfo (0.3.31) > > >> database.yaml > >> --------------------- > > >> production: > >> adapter: postgresql > >> database: foreman > >> username: foreman > >> password: secret > >> host: localhost > > >> Am i missing something in configuration?. Can anyone point me out to > >> some documentation for configuring foreman with postgresql. > > > Hi, > > > Postgres and foreman normally works just fine, which version are you running? > > > note that your rubygem version might be a bit too new (i think it > > should work with the 0.5 / develop branch). > > > Ohad > > > -- > > You received this message because you are subscribed to the Google Groups "Foreman users" group. > > To post to this group, send email to foreman-users@googlegroups.com. > > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.

> Hi,
>
> I am using foreman-0.4.2-0.1.noarch.rpm.

so I'm guessing that your rubygem is too new, can you use your os
distribution rubygem version? (rpm etc)

Ohad

··· On Mon, Jan 30, 2012 at 9:21 PM, linuxbsdfreak wrote: > > Regards, > Kevin > > On 30 Jan., 19:51, Corey Osman wrote: >> try updating your gem version. >> >> sudo gem update --system 1.4.2 >> >> gem --version >> >> Corey Osman >> co...@logicminds.biz >> 678-348-0582 (Pacific Time) >> >> Green IT and Datacenter Automation Specialist >> >> On Jan 30, 2012, at 10:47 AM, Ohad Levy wrote: >> >> > On Sun, Jan 29, 2012 at 1:58 PM, linuxbsdfreak wrote: >> >> Hi, >> >> >> I have setup postgres9.1 server along with the required RPMs and >> >> trying to setup foreman on centos6. I have created the required >> >> database under postgres and now when i do >> >> >> cd /usr/share/foreman >> >> >> rake db:migrate RAILS_ENV="production" >> >> >> I get the following message >> >> >> NOTE: Gem.source_index is deprecated, use Specification. It will be >> >> removed on or after 2011-11-01. >> >> Gem.source_index called from /usr/share/foreman/config/../vendor/rails/ >> >> railties/lib/rails/gem_dependency.rb:21. >> >> NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It >> >> will be removed on or after 2011-11-01. >> >> Gem::SourceIndex#refresh! called from /usr/share/foreman/config/../ >> >> vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:34. >> >> NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement. >> >> It will be removed on or after 2011-11-01. >> >> Gem::SourceIndex#load_gems_in called from /usr/lib/ruby/site_ruby/1.8/ >> >> rubygems/source_index.rb:322. >> >> Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ >> >> rubygems/source_index.rb:91. >> >> NOTE: Gem::SourceIndex#add_spec is deprecated, use >> >> Specification.add_spec. It will be removed on or after 2011-11-01. >> >> Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ >> >> rubygems/source_index.rb:91. >> >> NOTE: Gem::SourceIndex#add_spec is deprecated, use >> >> Specification.add_spec. It will be removed on or after 2011-11-01. >> >> Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ >> >> rubygems/source_index.rb:91. >> >> NOTE: Gem::SourceIndex#add_spec is deprecated, use >> >> Specification.add_spec. It will be removed on or after 2011-11-01. >> >> Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/ >> >> rubygems/source_index.rb:91. >> >> rake aborted! >> >> undefined method `name' for "actionmailer":String >> >> >> Tasks: TOP => db:migrate => environment >> >> (See full trace by running task with --trace) >> >> >> Following is the gem list >> >> >> actionmailer (3.2.1, 3.2.0) >> >> actionpack (3.2.1, 3.2.0) >> >> activemodel (3.2.1, 3.2.0) >> >> activerecord (3.2.1, 3.2.0) >> >> activeresource (3.2.1, 3.2.0) >> >> activesupport (3.2.1, 3.2.0) >> >> arel (3.0.0) >> >> builder (3.0.0) >> >> bundler (1.0.21) >> >> daemon_controller (0.2.6) >> >> diff-lcs (1.1.3) >> >> erubis (2.7.0) >> >> fastthread (1.0.7) >> >> highline (1.6.11) >> >> hike (1.2.1) >> >> hoe (2.13.0) >> >> hoe-highline (0.0.1) >> >> hoe-mercurial (1.3.1) >> >> i18n (0.6.0) >> >> journey (1.0.1, 1.0.0) >> >> json (1.6.5) >> >> mail (2.4.1) >> >> mime-types (1.17.2) >> >> multi_json (1.0.4) >> >> passenger (3.0.11) >> >> pg (0.12.2) >> >> polyglot (0.3.3) >> >> postgres-pr (0.6.3) >> >> rack (1.4.1, 1.1.0) >> >> rack-cache (1.1) >> >> rack-ssl (1.3.2) >> >> rack-test (0.6.1) >> >> railties (3.2.1, 3.2.0) >> >> rake (0.9.2.2) >> >> rake-compiler (0.8.0) >> >> rdoc (3.12) >> >> rest-client (1.6.7) >> >> rspec (2.8.0) >> >> rspec-core (2.8.0) >> >> rspec-expectations (2.8.0) >> >> rspec-mocks (2.8.0) >> >> ruby2ruby (1.3.1) >> >> ruby_parser (2.3.1) >> >> safemode (0.0.2) >> >> sexp_processor (3.0.10) >> >> sprockets (2.1.2) >> >> thor (0.14.6) >> >> tilt (1.3.3) >> >> treetop (1.4.10) >> >> tzinfo (0.3.31) >> >> >> database.yaml >> >> --------------------- >> >> >> production: >> >> adapter: postgresql >> >> database: foreman >> >> username: foreman >> >> password: secret >> >> host: localhost >> >> >> Am i missing something in configuration?. Can anyone point me out to >> >> some documentation for configuring foreman with postgresql. >> >> > Hi, >> >> > Postgres and foreman normally works just fine, which version are you running? >> >> > note that your rubygem version might be a bit too new (i think it >> > should work with the 0.5 / develop branch). >> >> > Ohad >> >> > -- >> > You received this message because you are subscribed to the Google Groups "Foreman users" group. >> > To post to this group, send email to foreman-users@googlegroups.com. >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To post to this group, send email to foreman-users@googlegroups.com. > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en. >