Hi all,

I have received the following during the upgrade from katello 2.4 to 
katello 3.0

Installing             --- /etc/httpd/conf.d/25-puppet.confatell2015-12-08 
14 [99%] 
[........................................................................................................................................................
 
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]:
 
Failed to call refresh: /usr/sbin/foreman-rake db:migrate returned 1 
instead of one of [0]
 
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]:
 
/usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
Installing             Done                                               
[100%] 
[.........................................................................................................................................................]
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/foreman-installer/katello.log


Inspecting /var/log/foreman-installer/katello.log I see two things:
First this error at the migrate_foreman step:

[ INFO 2016-07-01 16:05:43 main] Upgrade Step: fix_katello_settings_file...
[ INFO 2016-07-01 16:05:43 main] Upgrade Step: migrate_foreman...
[DEBUG 2016-07-01 16:06:05 main] true

[ERROR 2016-07-01 16:07:41 main] rake aborted!
StandardError: An error has occurred, this and all later migrations 
canceled:

undefined method `update_attribute' for 
nil:NilClass/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/db/migrate/20160222143432_move_system_description_to_host.rb:14:in
 
`block in up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:52:in
 
`block (2 levels) in find_each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:52:in
 
`each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:52:in
 
`block in find_each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:125:in
 
`find_in_batches'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:51:in
 
`find_each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/querying.rb:9:in
 
`find_each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/db/migrate/20160222143432_move_system_description_to_host.rb:13:in
 
`up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in
 
`exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in
 
`block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in
 
`block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in
 
`with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in
 
`migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in
 
`migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in
 
`block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in
 
`block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in
 
`block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in
 
`within_new_transaction'
--


Then the foreman-rake db:migrate error further down

[ WARN 2016-07-01 16:11:32 main] 
 
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns:
 
Tasks: TOP => db:migrate
[ WARN 2016-07-01 16:11:32 main] 
 
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns:
 
(See full trace by running task with --trace)
[ WARN 2016-07-01 16:11:32 main] 
 
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns:
 
== 20160222143432 MoveSystemDescriptionToHost: migrating 
======================
[ WARN 2016-07-01 16:11:32 main] 
 
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns:
 
-- add_column(:hosts, :description, :text)
[ WARN 2016-07-01 16:11:32 main] 
 
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns:
 
   -> 0.0019s
[ERROR 2016-07-01 16:11:32 main] 
 
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]:
 
Failed to call refresh: /usr/sbin/foreman-rake db:migrate returned 1 
instead of one of [0]
[ERROR 2016-07-01 16:11:32 main] 
 
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]:
 
/usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
[ INFO 2016-07-01 16:11:32 main] 
/usr/share/ruby/vendor_ruby/puppet/util/errors.rb:106:in `fail'
[ INFO 2016-07-01 16:11:32 main] 
/usr/share/ruby/vendor_ruby/puppet/type/exec.rb:160:in `sync'
[ INFO 2016-07-01 16:11:32 main] 
/usr/share/ruby/vendor_ruby/puppet/type/exec.rb:583:in `refresh'


The installer is progressing (currently at import_subscriptions) but not 
sure what I should do about the above?

Thanks :-)
Dylan

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to