Hi Kennon, Are you sharing storeconfig database?
The error complains about an environment table already in the database? the error actually comes from puppet migrations (regardless to foreman), so its quite strange that you get this error. Maybe you can try out first without storeconfigs (if you did) and see if you get the same error. cheers, Ohad On Wed, Sep 30, 2009 at 5:44 AM, Kennon <[email protected]> wrote: > > Hi Ohad, > I'm having an installation issue on an CentOS 5 machine... I haven't > seen this issue mentioned before - am I missing something? > > Thanks! > > -kennon > > $ RAILS_ENV=production rake db:migrate --trace > (in /var/home/l_kkwok/foreman) > ** Invoke db:migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Execute db:migrate > == CreateHosts: migrating > ==================================================== > == AddCreatedAtToAllTables: migrating > ======================================== > -- add_column("schema_migrations", :created_at, :datetime) > -> 0.0006s > == AddCreatedAtToAllTables: migrated (0.0124s) > =============================== > > == RemoveDuplicatedIndexOnAllTables: migrating > =============================== > == RemoveDuplicatedIndexOnAllTables: migrated (0.0076s) > ====================== > > == AddEnvironmentToHost: migrating > =========================================== > -- add_column(:hosts, :environment, :string) > rake aborted! > An error has occurred, this and all later migrations canceled: > > Could not migrate database: An error has occurred, this and all later > migrations canceled: > > SQLite3::SQLException: duplicate column name: environment: ALTER TABLE > "hosts" ADD "environment" varchar(255) > /usr/lib/ruby/site_ruby/1.8/puppet/rails.rb:106:in `migrate' > ./db/migrate//20090714132448_create_hosts.rb:9:in > `up_without_benchmarks' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:282:in `send' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:282:in `migrate' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:282:in `migrate' > (__DELEGATION__):2:in `__send__' > (__DELEGATION__):2:in `migrate' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:486:in `migrate' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:560:in `call' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:560:in `ddl_transaction' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/database_statements.rb:136:in > `transaction' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > transactions.rb:182:in `transaction' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:560:in `ddl_transaction' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:485:in `migrate' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:472:in `each' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:472:in `migrate' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:400:in `up' > /var/home/l_kkwok/foreman/vendor/rails/activerecord/lib/active_record/ > migration.rb:383:in `migrate' > /var/home/l_kkwok/foreman/vendor/rails/railties/lib/tasks/ > databases.rake:116 > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in > `call' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in > `execute' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in > `each' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in > `execute' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:597:in > `invoke_with_call_chain' > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > `invoke_with_call_chain' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:583:in > `invoke' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in > `invoke_task' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in > `top_level' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in > `each' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in > `top_level' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exception_handling' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in > `top_level' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in > `run' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exception_handling' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in > `run' > /var/home/l_kkwok/.gem/ruby/1.8/gems/rake-0.8.7/bin/rake:31 > /usr/bin/rake:19:in `load' > /usr/bin/rake:19 > > > On Sep 21, 6:10 am, Ohad Levy <[email protected]> wrote: > > Hello All, > > > > I'm happy to announce the next stable release of Foreman, main new > features > > include: > > > > - Integration of Puppet Reports, once enabled you would see a real > time > > overview of all of yours hosts status. > > - Improved support for multiple Puppet Masters (e.g. import facts and > > reports from remote serves over http) > > - Simplified migration from existing external nodes setup, now its > > possible to import your existing classifier data into Foreman. > > > > For a complete change log, please visit: > http://theforeman.org/projects/changelog/foreman > > For feature requests, bugs, wiki etc, visit:http://theforeman.org > > > > If you already have Foreman installed, make sure you go throughhttp:// > theforeman.org/wiki/foreman/Upgrade_instructions. > > > > Cheers, > > Ohad > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
