While upgrading CFME from 3.2 to 4.1, rake db:migrate command fails.

Solution Verified - Updated -

Issue

  • While upgrading CFME from 3.2 to 4.1, 'rake db:migrate' command fails.
  • Command bin/rake db:migrate was aborted with following error:

    -- Converting BinaryBlob report results to a serialized hash
    rake aborted!
    StandardError: An error has occurred, this and all later migrations canceled:
    
    unexpected format of report attribute encountered, '""'/var/www/miq/vmdb/db/migrate/20150625220141_fix_serialized_reports_for_rails_four.rb:14:in `serialize_report_to_hash'
    /var/www/miq/vmdb/db/migrate/20150625220141_fix_serialized_reports_for_rails_four.rb:138:in `block (2 levels) in up'
    /opt/rh/cfme-gemset/gems/activerecord-5.0.0.1/lib/active_record/relation/batches.rb:59:in `block (2 levels) in find_each'
    /opt/rh/cfme-gemset/gems/activerecord-5.0.0.1/lib/active_record/relation/batches.rb:59:in `each'
    /opt/rh/cfme-gemset/gems/activerecord-5.0.0.1/lib/active_record/relation/batches.rb:59:in `block in find_each'
    /opt/rh/cfme-gemset/gems/activerecord-5.0.0.1/lib/active_record/relation/batches.rb:121:in `block in find_in_batches'
    /opt/rh/cfme-gemset/gems/activerecord-5.0.0.1/lib/active_record/relation/batches.rb:214:in `block in in_batches'"
    

Environment

  • Red Hat CloudForms upgrading from 3.x to 4.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content