Error after updating from .4 to 1.0.1, puppet 3.0

Hi Matt,

This issue is actually caused by Puppet 3, not the Foreman upgrade
directly. There is an open pull request (
https://github.com/theforeman/foreman/pull/166) that needs some work, but
fixes this issue. I recommend downgrading to 2.7.19 if that's an option; if
not give the patch a go and report back :slight_smile:

-Sam

路路路 On Fri, Oct 5, 2012 at 3:51 PM, Matt Warren wrote:

Relatively novice puppet and foreman user. I鈥檓 using foreman mostly for
puppet reporting at this point.

Running on cents 5.8 running into errors. Any ideas?

I upgraded:

  • puppet-server-3.0.0-1.el5
  • foreman-sqlite-1.0.1-1.el5
  • foreman-vmware-1.0.1-1.el5
  • foreman-release-1.0.1-1.el5
  • foreman-1.0.1-1.el5
  • foreman-ec2-1.0.1-1.el5
  • foreman-proxy-1.0.0-3.el5
  • and a boatload of ruby updates (ruby 1.8.7 (2012-06-29 patchlevel
  1. [x86_64-linux])

Tried running the db migrate per
Upgrade instructions - Foreman
with

rake db:migrate RAILS_ENV=鈥減roduction鈥

I also found ref to running as foreman user and have tried this:
su - foreman -s /bin/bash -c /usr/share/foreman/extras/**dbmigrate

When run I get:
Libvirt binding are missing - hypervisor management is disabled
/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
rake aborted!
Error converting value for param 鈥榟ostcert鈥: Error converting value for
param 鈥榗ertdir鈥: Error converting value for param 鈥榮sldir鈥: Could not find
value for $confdir

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

If I try to start the service i get:

service foreman start

Starting foreman: Libvirt binding are missing - hypervisor management is
disabled
/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/lib/ruby/site_ruby/1.8/puppet/settings.rb:252:in convert': Error converting value for param 'hostcert': Error converting value for param 'certdir': Error converting value for param 'ssldir': Could not find value for $confdir (Puppet::Settings::InterpolationError) from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:ingsub鈥
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:in convert' from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:971:invalue鈥
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:249:in convert' from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:ingsub鈥
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:in convert' from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:971:invalue鈥
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:249:in convert' from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:ingsub鈥
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:in convert' from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:971:invalue鈥
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:66:in []' from /usr/share/foreman/lib/foreman/default_settings/loader.rb:42:inload鈥
from
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in
transaction' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/transactions.rb:207:intransaction鈥
from /usr/share/foreman/lib/foreman/default_settings/loader.rb:28:in load' from /usr/share/foreman/config/initializers/foreman.rb:4 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:236:inload鈥
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:236:in
load' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:227:inload_dependency鈥
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:236:in
load' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:201 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:200:ineach鈥
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:200
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:25:in
instance_exec' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:25:inrun鈥
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:50:in
run_initializers' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:49:ineach鈥
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:49:in
run_initializers' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:134:ininitialize!'
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:in
send' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:inmethod_missing鈥
from /usr/share/foreman/config/environment.rb:5
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in
require' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:inrequire鈥
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:225:in
load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:597:innew_constants_in鈥
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:225:in
load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:inrequire鈥
from /usr/share/foreman/config.ru:3
from /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/builder.rb:46:in
instance_eval' from /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/builder.rb:46:ininitialize鈥
from /usr/share/foreman/config.ru:1:in `new鈥
from /usr/share/foreman/config.ru:1
[FAILED]


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/VqrLFA06It0J.
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.