Unable to install foreman, which gem versions work?

Hello everyone,

I'm trying to install foreman on a SLES 11 SP 1 Linux VM.

I've got a working rvm (1.10.0) installation (under /home/michael), am
using ruby-1.9.3-p0, created a new directory (under /users/michael/dev/
git/foreman) and gemset for just forman and am following the
development install howto in the Wiki .

I've had to use a few tricks to get the installation going, and am
wondering if this is "normal" or whether I'm doing something wrong (am
I using the wrong version? wrong gem version? wrong steps?).

Ok, I've disabled the ruby-debug entries because linecache19 throws
errors due to a missing "vm_core.h" (I'm assuming this is not
critical). I've also disabled the mysql and postgres entries in the
Gemfile, because I just want to test with sqlite first.

Taking out these gems from the gemfile, enables me to install all the
gems described in the Gemfile.

Next I tried setting up the DB (sqlite3) using "RAILS_ENV=production
rake db:migrate" which died horribly on the table Bookmarks (it
doesn't understand the "Bookmark.find_or_create" statements). Once I
commented out these 5 statements, deleted the sqlite prod db file and
reran db:migrate it succeeded in creating the db.

I've created/copied the config/settings file, now if I run
"RAILS_ENV=production rails s", I get the output below. Any help is
appreciated!

With kind regards,

Michael

Error Message:

michael@tmv1399:/users/michael/dev/git/foreman $ RAILS_ENV=production
rails s
/home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:239:in block in require': iconv will be deprecated in the future, use String#encode instead. /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ lib/ruby_parser_extras.rb:10: warning: already initialized constant ENC_NONE /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ lib/ruby_parser_extras.rb:11: warning: already initialized constant ENC_EUC /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ lib/ruby_parser_extras.rb:12: warning: already initialized constant ENC_SJIS /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ lib/ruby_parser_extras.rb:13: warning: already initialized constant ENC_UTF8 => Booting WEBrick => Rails 3.0.10 application starting in production on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:inparse': can't convert nil into String (TypeError)
from /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/
psych.rb:154:in parse_stream' from /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/ psych.rb:125:inparse'
from /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/
psych.rb:112:in load' from /users/michael/dev/git/foreman/app/models/setting.rb: 64:indefault'
from /users/michael/dev/git/foreman/app/models/setting.rb:
53:in value=' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activerecord-3.0.10/lib/active_record/base.rb:1565:inblock in
attributes='
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activerecord-3.0.10/lib/active_record/base.rb:1561:in each' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activerecord-3.0.10/lib/active_record/base.rb:1561:inattributes='
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activerecord-3.0.10/lib/active_record/base.rb:1412:in initialize' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activerecord-3.0.10/lib/active_record/validations.rb:32:innew'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activerecord-3.0.10/lib/active_record/validations.rb:32:in create!' from /users/michael/dev/git/foreman/lib/foreman/ default_settings/loader.rb:13:increate'
from /users/michael/dev/git/foreman/lib/foreman/
default_settings/loader.rb:57:in block (2 levels) in load' from /users/michael/dev/git/foreman/lib/foreman/ default_settings/loader.rb:46:ineach'
from /users/michael/dev/git/foreman/lib/foreman/
default_settings/loader.rb:46:in block in load' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activerecord-3.0.10/lib/active_record/connection_adapters/abstract/ database_statements.rb:139:intransaction'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activerecord-3.0.10/lib/active_record/transactions.rb:207:in
transaction' from /users/michael/dev/git/foreman/lib/foreman/ default_settings/loader.rb:24:inload'
from /users/michael/dev/git/foreman/config/initializers/
foreman.rb:28:in <top (required)>' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activesupport-3.0.10/lib/active_support/dependencies.rb:235:inload'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:235:in block in load' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activesupport-3.0.10/lib/active_support/dependencies.rb:227:inload_dependency'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:235:in load' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/engine.rb:201:inblock (2 levels) in
<class:Engine>'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/engine.rb:200:in each&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/engine.rb:200:inblock in <class:Engine>'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/initializable.rb:25:in instance_exec&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/initializable.rb:25:inrun'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/initializable.rb:50:in block in run_initializers&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/initializable.rb:49:ineach'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/initializable.rb:49:in run_initializers&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/application.rb:134:ininitialize!'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/application.rb:77:in method_missing&#39; from /users/michael/dev/git/foreman/config/environment.rb:5:in<top (required)>'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:239:in
require&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activesupport-3.0.10/lib/active_support/dependencies.rb:239:inblock
in require'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:225:in block in load_dependency&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activesupport-3.0.10/lib/active_support/dependencies.rb:593:innew_constants_in'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:225:in
load_dependency&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activesupport-3.0.10/lib/active_support/dependencies.rb:239:inrequire'
from /users/michael/dev/git/foreman/config.ru:3:in block in &lt;main&gt;&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/builder.rb:46:ininstance_eval'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
rack-1.2.5/lib/rack/builder.rb:46:in initialize&#39; from /users/michael/dev/git/foreman/config.ru:1:innew'
from /users/michael/dev/git/foreman/config.ru:1:in &lt;main&gt;&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/builder.rb:35:ineval'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
rack-1.2.5/lib/rack/builder.rb:35:in parse_file&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/server.rb:162:inapp'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
rack-1.2.5/lib/rack/server.rb:253:in wrapped_app&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/server.rb:204:instart'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/commands/server.rb:65:in start&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/commands.rb:30:inblock in <top
(required)>'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/commands.rb:27:in tap&#39; from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/commands.rb:27:in<top (required)>'
from script/rails:6:in require&#39; from script/rails:6:in<main>'
michael@tmv1399:/users/michael/dev/git/foreman $

Installed gems:

abstract (1.0.0)
actionmailer (3.0.10)
actionpack (3.0.10)
activemodel (3.0.10)
activerecord (3.0.10)
activeresource (3.0.10)
activesupport (3.0.10)
acts_as_audited (2.0.0)
ancestry (1.2.4)
archive-tar-minitar (0.5.2)
arel (2.0.10)
builder (2.1.2)
bundler (1.0.22, 1.0.21)
columnize (0.3.6)
erubis (2.6.6)
facter (1.6.5)
i18n (0.5.0)
jquery-rails (1.0.19)
json (1.6.5)
mail (2.2.19)
metaclass (0.0.1)
mime-types (1.17.2)
mocha (0.10.4)
net-ldap (0.3.1)
polyglot (0.3.3)
puppet (2.7.9)
rack (1.2.5)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.10)
railties (3.0.10)
rake (0.9.2.2)
rdoc (3.12)
rest-client (1.6.7)
rr (1.0.4)
ruby-libvirt (0.4.0)
ruby2ruby (1.3.1)
ruby_core_source (0.1.5)
ruby_parser (2.3.1)
scoped_search (2.3.6)
sexp_processor (3.0.10)
shoulda (2.11.3)
sqlite3 (1.3.5)
thor (0.14.6)
treetop (1.4.10)
tzinfo (0.3.31)
virt (0.2.1)
will_paginate (3.0.3)

I'm using SLES11 SP1 and needed to use ruby18 to have foreman work.
I'd love to know what's needed to get it working on 1.9.2.

Here is where I am at:

ruby18 -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

gem18 list

*** LOCAL GEMS ***

activemodel (3.0.10)
activerecord (3.0.10)
activesupport (3.0.10)
arel (2.0.10)
builder (2.1.2)
daemon_controller (0.2.6)
fastthread (1.0.7)
file-tail (1.0.5)
i18n (0.5.0)
json (1.6.1)
mime-types (1.16)
mysql (2.8.1)
passenger (3.0.9)
rack (1.2.1)
rake (0.8.7)
rdoc (3.11, 2.5.11)
rdoc-data (2.5.3)
rest-client (1.6.7)
spruz (0.2.5)
sys-admin (1.5.6)
tzinfo (0.3.30)

Hope it helps,
Jake

··· On Feb 22, 10:56 am, Michael K wrote: > Hello everyone, > > I'm trying to install foreman on a SLES 11 SP 1 Linux VM. > > I've got a working rvm (1.10.0) installation (under /home/michael), am > using ruby-1.9.3-p0, created a new directory (under /users/michael/dev/ > git/foreman) and gemset for just forman and am following the > development install howto in the Wiki . > > I've had to use a few tricks to get the installation going, and am > wondering if this is "normal" or whether I'm doing something wrong (am > I using the wrong version? wrong gem version? wrong steps?). > > Ok, I've disabled the ruby-debug entries because linecache19 throws > errors due to a missing "vm_core.h" (I'm assuming this is not > critical). I've also disabled the mysql and postgres entries in the > Gemfile, because I just want to test with sqlite first. > > Taking out these gems from the gemfile, enables me to install all the > gems described in the Gemfile. > > Next I tried setting up the DB (sqlite3) using "RAILS_ENV=production > rake db:migrate" which died horribly on the table Bookmarks (it > doesn't understand the "Bookmark.find_or_create" statements). Once I > commented out these 5 statements, deleted the sqlite prod db file and > reran db:migrate it succeeded in creating the db. > > I've created/copied the config/settings file, now if I run > "RAILS_ENV=production rails s", I get the output below. Any help is > appreciated! > > With kind regards, > > Michael > > Error Message: > > michael@tmv1399:/users/michael/dev/git/foreman $ RAILS_ENV=production > rails s > /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `block > in require': iconv will be deprecated in the future, use String#encode > instead. > /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ > lib/ruby_parser_extras.rb:10: warning: already initialized constant > ENC_NONE > /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ > lib/ruby_parser_extras.rb:11: warning: already initialized constant > ENC_EUC > /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ > lib/ruby_parser_extras.rb:12: warning: already initialized constant > ENC_SJIS > /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ > lib/ruby_parser_extras.rb:13: warning: already initialized constant > ENC_UTF8 > => Booting > WEBrick > => Rails 3.0.10 application starting in production onhttp://0.0.0.0:3000 > => Call with -d to > detach > => Ctrl-C to shutdown > server > Exiting > /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in > `parse': can't convert nil into String (TypeError) > from /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/ > psych.rb:154:in `parse_stream' > from /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/ > psych.rb:125:in `parse' > from /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/ > psych.rb:112:in `load' > from /users/michael/dev/git/foreman/app/models/setting.rb: > 64:in `default' > from /users/michael/dev/git/foreman/app/models/setting.rb: > 53:in `value=' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activerecord-3.0.10/lib/active_record/base.rb:1565:in `block in > attributes=' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activerecord-3.0.10/lib/active_record/base.rb:1561:in `each' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activerecord-3.0.10/lib/active_record/base.rb:1561:in `attributes=' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activerecord-3.0.10/lib/active_record/base.rb:1412:in `initialize' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activerecord-3.0.10/lib/active_record/validations.rb:32:in `new' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activerecord-3.0.10/lib/active_record/validations.rb:32:in `create!' > from /users/michael/dev/git/foreman/lib/foreman/ > default_settings/loader.rb:13:in `create' > from /users/michael/dev/git/foreman/lib/foreman/ > default_settings/loader.rb:57:in `block (2 levels) in load' > from /users/michael/dev/git/foreman/lib/foreman/ > default_settings/loader.rb:46:in `each' > from /users/michael/dev/git/foreman/lib/foreman/ > default_settings/loader.rb:46:in `block in load' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activerecord-3.0.10/lib/active_record/connection_adapters/abstract/ > database_statements.rb:139:in `transaction' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activerecord-3.0.10/lib/active_record/transactions.rb:207:in > `transaction' > from /users/michael/dev/git/foreman/lib/foreman/ > default_settings/loader.rb:24:in `load' > from /users/michael/dev/git/foreman/config/initializers/ > foreman.rb:28:in `' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:235:in `load' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:235:in `block > in load' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:227:in > `load_dependency' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:235:in `load' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/engine.rb:201:in `block (2 levels) in > ' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/engine.rb:200:in `each' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/engine.rb:200:in `block in ' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/initializable.rb:25:in `instance_exec' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/initializable.rb:25:in `run' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/initializable.rb:50:in `block in > run_initializers' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/initializable.rb:49:in `each' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/initializable.rb:49:in `run_initializers' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/application.rb:134:in `initialize!' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/application.rb:77:in `method_missing' > from /users/michael/dev/git/foreman/config/environment.rb:5:in > `' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:239:in > `require' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `block > in require' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:225:in `block > in load_dependency' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:593:in > `new_constants_in' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:225:in > `load_dependency' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > activesupport-3.0.10/lib/active_support/dependencies.rb:239:in > `require' > from /users/michael/dev/git/foreman/config.ru:3:in `block in > ' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > rack-1.2.5/lib/rack/builder.rb:46:in `instance_eval' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > rack-1.2.5/lib/rack/builder.rb:46:in `initialize' > from /users/michael/dev/git/foreman/config.ru:1:in `new' > from /users/michael/dev/git/foreman/config.ru:1:in `' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > rack-1.2.5/lib/rack/builder.rb:35:in `eval' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > rack-1.2.5/lib/rack/builder.rb:35:in `parse_file' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > rack-1.2.5/lib/rack/server.rb:162:in `app' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > rack-1.2.5/lib/rack/server.rb:253:in `wrapped_app' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > rack-1.2.5/lib/rack/server.rb:204:in `start' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/commands/server.rb:65:in `start' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/commands.rb:30:in `block in (required)>' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/commands.rb:27:in `tap' > from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ > railties-3.0.10/lib/rails/commands.rb:27:in `' > from script/rails:6:in `require' > from script/rails:6:in `' > michael@tmv1399:/users/michael/dev/git/foreman $ > > Installed gems: > > abstract (1.0.0) > actionmailer (3.0.10) > actionpack (3.0.10) > activemodel (3.0.10) > activerecord (3.0.10) > activeresource (3.0.10) > activesupport (3.0.10) > acts_as_audited (2.0.0) > ancestry (1.2.4) > archive-tar-minitar (0.5.2) > arel (2.0.10) > builder (2.1.2) > bundler (1.0.22, 1.0.21) > columnize (0.3.6) > erubis (2.6.6) > facter (1.6.5) > i18n (0.5.0) > jquery-rails (1.0.19) > json (1.6.5) > mail (2.2.19) > metaclass (0.0.1) > mime-types (1.17.2) > mocha (0.10.4) > net-ldap (0.3.1) > polyglot (0.3.3) > puppet (2.7.9) > rack (1.2.5) > rack-mount (0.6.14) > rack-test (0.5.7) > rails (3.0.10) > railties (3.0.10) > rake (0.9.2.2) > rdoc ... > > read more »

> Hello everyone,
>
> I'm trying to install foreman on a SLES 11 SP 1 Linux VM.
>
> I've got a working rvm (1.10.0) installation (under /home/michael), am
> using ruby-1.9.3-p0, created a new directory (under /users/michael/dev/
> git/foreman) and gemset for just forman and am following the
> development install howto in the Wiki .

Foreman is mostly tested and developed using 1.87, I do know that
people use it with 1.9x, but as most distributions dont support it, we
kinda got stuck on 1.87 for now.

if you are using the develop branch, then a simple bundle install
should take care of everything.

Ohad

··· On Wed, Feb 22, 2012 at 6:56 PM, Michael K wrote:

I’ve had to use a few tricks to get the installation going, and am
wondering if this is “normal” or whether I’m doing something wrong (am
I using the wrong version? wrong gem version? wrong steps?).

Ok, I’ve disabled the ruby-debug entries because linecache19 throws
errors due to a missing “vm_core.h” (I’m assuming this is not
critical). I’ve also disabled the mysql and postgres entries in the
Gemfile, because I just want to test with sqlite first.

Taking out these gems from the gemfile, enables me to install all the
gems described in the Gemfile.

Next I tried setting up the DB (sqlite3) using “RAILS_ENV=production
rake db:migrate” which died horribly on the table Bookmarks (it
doesn’t understand the “Bookmark.find_or_create” statements). Once I
commented out these 5 statements, deleted the sqlite prod db file and
reran db:migrate it succeeded in creating the db.

I’ve created/copied the config/settings file, now if I run
"RAILS_ENV=production rails s", I get the output below. Any help is
appreciated!

With kind regards,

Michael

Error Message:

michael@tmv1399:/users/michael/dev/git/foreman $ RAILS_ENV=production
rails s
/home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:239:in block in require': iconv will be deprecated in the future, use String#encode instead. /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ lib/ruby_parser_extras.rb:10: warning: already initialized constant ENC_NONE /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ lib/ruby_parser_extras.rb:11: warning: already initialized constant ENC_EUC /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ lib/ruby_parser_extras.rb:12: warning: already initialized constant ENC_SJIS /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ruby_parser-2.3.1/ lib/ruby_parser_extras.rb:13: warning: already initialized constant ENC_UTF8 => Booting WEBrick => Rails 3.0.10 application starting in production on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:inparse’: can’t convert nil into String (TypeError)
from /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/
psych.rb:154:in parse_stream' from /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/ psych.rb:125:inparse’
from /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/
psych.rb:112:in load' from /users/michael/dev/git/foreman/app/models/setting.rb: 64:indefault’
from /users/michael/dev/git/foreman/app/models/setting.rb:
53:in value=' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activerecord-3.0.10/lib/active_record/base.rb:1565:inblock in
attributes='
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activerecord-3.0.10/lib/active_record/base.rb:1561:in each' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activerecord-3.0.10/lib/active_record/base.rb:1561:inattributes='
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activerecord-3.0.10/lib/active_record/base.rb:1412:in initialize' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activerecord-3.0.10/lib/active_record/validations.rb:32:innew’
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activerecord-3.0.10/lib/active_record/validations.rb:32:in create!' from /users/michael/dev/git/foreman/lib/foreman/ default_settings/loader.rb:13:increate’
from /users/michael/dev/git/foreman/lib/foreman/
default_settings/loader.rb:57:in block (2 levels) in load' from /users/michael/dev/git/foreman/lib/foreman/ default_settings/loader.rb:46:ineach’
from /users/michael/dev/git/foreman/lib/foreman/
default_settings/loader.rb:46:in block in load' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activerecord-3.0.10/lib/active_record/connection_adapters/abstract/ database_statements.rb:139:intransaction’
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activerecord-3.0.10/lib/active_record/transactions.rb:207:in
transaction' from /users/michael/dev/git/foreman/lib/foreman/ default_settings/loader.rb:24:inload’
from /users/michael/dev/git/foreman/config/initializers/
foreman.rb:28:in <top (required)>' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activesupport-3.0.10/lib/active_support/dependencies.rb:235:inload’
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:235:in block in load' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activesupport-3.0.10/lib/active_support/dependencies.rb:227:inload_dependency’
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:235:in load' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/engine.rb:201:inblock (2 levels) in
class:Engine
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/engine.rb:200:in each' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/engine.rb:200:inblock in class:Engine
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/initializable.rb:25:in instance_exec' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/initializable.rb:25:inrun’
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/initializable.rb:50:in block in run_initializers' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/initializable.rb:49:ineach’
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/initializable.rb:49:in run_initializers' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/application.rb:134:ininitialize!'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
railties-3.0.10/lib/rails/application.rb:77:in method_missing' from /users/michael/dev/git/foreman/config/environment.rb:5:in<top (required)>'
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:239:in
require' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activesupport-3.0.10/lib/active_support/dependencies.rb:239:inblock
in require’
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:225:in block in load_dependency' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activesupport-3.0.10/lib/active_support/dependencies.rb:593:innew_constants_in’
from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/
activesupport-3.0.10/lib/active_support/dependencies.rb:225:in
load_dependency' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ activesupport-3.0.10/lib/active_support/dependencies.rb:239:inrequire’
from /users/michael/dev/git/foreman/config.ru:3:in `block in

' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/builder.rb:46:in `instance_eval' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/builder.rb:46:in `initialize' from /users/michael/dev/git/foreman/config.ru:1:in `new' from /users/michael/dev/git/foreman/config.ru:1:in `' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/builder.rb:35:in `eval' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/builder.rb:35:in `parse_file' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/server.rb:162:in `app' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/server.rb:253:in `wrapped_app' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ rack-1.2.5/lib/rack/server.rb:204:in `start' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/commands/server.rb:65:in `start' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/commands.rb:30:in `block in ' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/commands.rb:27:in `tap' from /home/michael/.rvm/gems/ruby-1.9.3-p0@foreman/gems/ railties-3.0.10/lib/rails/commands.rb:27:in `' from script/rails:6:in `require' from script/rails:6:in `' michael@tmv1399:/users/michael/dev/git/foreman $

Installed gems:

abstract (1.0.0)
actionmailer (3.0.10)
actionpack (3.0.10)
activemodel (3.0.10)
activerecord (3.0.10)
activeresource (3.0.10)
activesupport (3.0.10)
acts_as_audited (2.0.0)
ancestry (1.2.4)
archive-tar-minitar (0.5.2)
arel (2.0.10)
builder (2.1.2)
bundler (1.0.22, 1.0.21)
columnize (0.3.6)
erubis (2.6.6)
facter (1.6.5)
i18n (0.5.0)
jquery-rails (1.0.19)
json (1.6.5)
mail (2.2.19)
metaclass (0.0.1)
mime-types (1.17.2)
mocha (0.10.4)
net-ldap (0.3.1)
polyglot (0.3.3)
puppet (2.7.9)
rack (1.2.5)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.10)
railties (3.0.10)
rake (0.9.2.2)
rdoc (3.12)
rest-client (1.6.7)
rr (1.0.4)
ruby-libvirt (0.4.0)
ruby2ruby (1.3.1)
ruby_core_source (0.1.5)
ruby_parser (2.3.1)
scoped_search (2.3.6)
sexp_processor (3.0.10)
shoulda (2.11.3)
sqlite3 (1.3.5)
thor (0.14.6)
treetop (1.4.10)
tzinfo (0.3.31)
virt (0.2.1)
will_paginate (3.0.3)


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.

Hello Ohad, Hello Jake,

Thanks for your quick response… I'll give 1.8.7-p352 a try and
report back with the results.

Hello Ohad, Hello Jake,

Ok, "downgrading" to 1.8.7-p352 did the trick… Once again I
deactivated the Development, MySQL and Postgres Entries in the
Gemfile, bundle install worked, rake db:migrate worked (no errors this
time on Bookmarks). The ICONV message is still there, but "rails s"
just works, and foreman works also :slight_smile:

Thanks again for your help!

For all others struggling with the same question, I'm now using rvm +
ruby 1.8.7-p352, here is a list of my gems:

abstract (1.0.0)
actionmailer (3.0.10)
actionpack (3.0.10)
activemodel (3.0.10)
activerecord (3.0.10)
activeresource (3.0.10)
activesupport (3.0.10)
acts_as_audited (2.0.0)
ancestry (1.2.4)
arel (2.0.10)
builder (2.1.2)
bundler (1.0.22, 1.0.21)
erubis (2.6.6)
facter (1.6.5)
i18n (0.5.0)
jquery-rails (1.0.19)
json (1.6.5)
mail (2.2.19)
metaclass (0.0.1)
mime-types (1.17.2)
mocha (0.10.4)
net-ldap (0.3.1)
polyglot (0.3.3)
puppet (2.7.11)
rack (1.2.5)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.10)
railties (3.0.10)
rake (0.9.2.2)
rdoc (3.12)
rest-client (1.6.7)
rr (1.0.4)
ruby-libvirt (0.4.0)
ruby2ruby (1.3.1)
ruby_parser (2.3.1)
scoped_search (2.3.6)
sexp_processor (3.0.10)
shoulda (2.11.3)
sqlite3 (1.3.5)
thor (0.14.6)
treetop (1.4.10)
tzinfo (0.3.31)
virt (0.2.1)
will_paginate (3.0.3)

BTW, I thought about this more yesterday and I think only 1 thing held
me back from using 1.9.2, which is I use a certificate to connect to
our AD for authentication which required editing a file. The change I
made seemed to stop working going to 1.9.2 although I think I know how
to address the issue now and just haven't been able to find the time
to try it out.

Anyways, glad you got it working!

Regards,
Jake

··· On Feb 23, 3:51 am, Michael K wrote: > Hello Ohad, Hello Jake, > > Ok, "downgrading" to 1.8.7-p352 did the trick... Once again I > deactivated the Development, MySQL and Postgres Entries in the > Gemfile, bundle install worked, rake db:migrate worked (no errors this > time on Bookmarks). The ICONV message is still there, but "rails s" > just works, and foreman works also :-) > > Thanks again for your help! > > For all others struggling with the same question, I'm now using rvm + > ruby 1.8.7-p352, here is a list of my gems: > > abstract (1.0.0) > actionmailer (3.0.10) > actionpack (3.0.10) > activemodel (3.0.10) > activerecord (3.0.10) > activeresource (3.0.10) > activesupport (3.0.10) > acts_as_audited (2.0.0) > ancestry (1.2.4) > arel (2.0.10) > builder (2.1.2) > bundler (1.0.22, 1.0.21) > erubis (2.6.6) > facter (1.6.5) > i18n (0.5.0) > jquery-rails (1.0.19) > json (1.6.5) > mail (2.2.19) > metaclass (0.0.1) > mime-types (1.17.2) > mocha (0.10.4) > net-ldap (0.3.1) > polyglot (0.3.3) > puppet (2.7.11) > rack (1.2.5) > rack-mount (0.6.14) > rack-test (0.5.7) > rails (3.0.10) > railties (3.0.10) > rake (0.9.2.2) > rdoc (3.12) > rest-client (1.6.7) > rr (1.0.4) > ruby-libvirt (0.4.0) > ruby2ruby (1.3.1) > ruby_parser (2.3.1) > scoped_search (2.3.6) > sexp_processor (3.0.10) > shoulda (2.11.3) > sqlite3 (1.3.5) > thor (0.14.6) > treetop (1.4.10) > tzinfo (0.3.31) > virt (0.2.1) > will_paginate (3.0.3)