<p><br>
On Aug 30, 2012 3:21 PM, "Andrei Vakhnin" <<a href="mailto:Andrey.A.Vakhnin@nasa.gov">Andrey.A.Vakhnin@nasa.gov</a>> wrote:<br>
><br>
> I've installed Foreman v.1.0 to work with my Ovirt 3.1 install on rhel6 machines.<br>
><br>
><br>
> foreman-ovirt-1.0.0-2.el6.noarch<br>
> rubygem-foremancli-1.0-1.el6.noarch<br>
> foreman-console-1.0.0-2.el6.noarch<br>
> foreman-release-1.0.0-1.el6.noarch<br>
> foreman-cli-1.0.0-2.el6.noarch<br>
> foreman-vmware-1.0.0-2.el6.noarch<br>
> foreman-sqlite-1.0.0-2.el6.noarch<br>
> foreman-ec2-1.0.0-2.el6.noarch<br>
> foreman-postgresql-1.0.0-2.el6.noarch<br>
> foreman-libvirt-1.0.0-2.el6.noarch<br>
> foreman-mysql-1.0.0-2.el6.noarch<br>
> foreman-mysql2-1.0.0-2.el6.noarch<br>
> foreman-proxy-1.0.0-2.el6.noarch<br>
> foreman-1.0.0-2.el6.noarch<br>
><br>
> When I attempt to start foreman I get following errors:<br>
><br>
> [root@dsrvr130 avakhnin]# /etc/init.d/foreman start<br>
> 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<br>
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11: warning: already initialized constant ENC_EUC<br>
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12: warning: already initialized constant ENC_SJIS<br>
> /usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13: warning: already initialized constant ENC_UTF8<br>
> /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/connection_specification.rb:62:in `establish_connection': production database is not configured (ActiveRecord::AdapterNotSpecified)<br>
> from /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/connection_specification.rb:55:in `establish_connection'<br>
> from /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/railtie.rb:59<br>
> from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'<br>
> from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'<br>
> from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/lazy_load_hooks.rb:26:in `on_load'<br>
> from /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/railtie.rb:57<br>
> from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:25:in `instance_exec'<br>
> from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:25:in `run'<br>
> from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:50:in `run_initializers'<br>
> from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:49:in `each'<br>
> from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:49:in `run_initializers'<br>
> from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:134:in `initialize!'<br>
> from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:in `send'<br>
> from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:in `method_missing'<br>
> from /usr/share/foreman/config/environment.rb:5<br>
> from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in `require'<br>
> from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in `require'<br>
> from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:225:in `load_dependency'<br>
> from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:597:in `new_constants_in'<br>
> from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:225:in `load_dependency'<br>
> from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in `require'<br>
> from /usr/share/foreman/<a href="http://config.ru:3">config.ru:3</a><br>
> from /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/builder.rb:46:in `instance_eval'<br>
> from /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/builder.rb:46:in `initialize'<br>
> from /usr/share/foreman/config.ru:1:in `new'<br>
> from /usr/share/foreman/<a href="http://config.ru:1">config.ru:1</a><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a></p>
<p>Did you define you databases in /usr/share/foreman/config/databases.yaml? May be symlinked to /etc/foreman/databases.yaml. error indicates no database adapter specified (sqlite, postgres, mysql, mysql2).</p>
<p>- Trey</p>