Unable to start foreman - what am I missing

> Hi All,
>
> I need some urgent help on below exception.
>
> I am installing foreman 1.0.2 version and trying to integrate with
> puppet 3.0.2 . i have configured foreman to use mysql as database. When
> i try to start foreman service, it is throwing below error message.
>
> [root@rhel56-host foreman]# service foreman start
> Starting foreman:
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10:
> warning: already initialized constant ENC_NONE
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11:
> warning: already initialized constant ENC_EUC
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12:
> warning: already initialized constant ENC_SJIS
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13:
> warning: already initialized constant ENC_UTF8
> /usr/share/foreman/app/models/archlinux.rb:1:in `const_missing':
> uninitialized constant Operatingsystem (NameError)
> from /usr/share/foreman/app/models/archlinux.rb:1
[snip]
> from /usr/share/foreman/config.ru:1
> [FAILED]
>
> Below is my overall configuration and component versions:
>
> rubyversion => 1.8.7
> puppetversion => 3.0.2

^ This is the problem. Foreman 1.0 is unsupported with Puppet 3.x, you
need to either use Puppet 2.x (e.g. 2.7.20) or Foreman 1.1. 1.1 is
currently in release candidate status, but by all accounts is pretty
much stable.

You'll find yum repositories at http://yum.theforeman.org/rc if you want
to try it out. Puppet 2.7 is available from the Puppet Labs repo
(yum.puppetlabs.com) and 2.6 is in EPEL - a yum downgrade with a
specific version number should work.

··· On 18/01/13 12:52, Rajeev Kumar wrote:


Dominic Cleal
Red Hat Engineering