Red Hat Satellite upgrade fails with error Validation failed: Name has already been taken at db:seed stage

Solution Verified - Updated -


  • Satellite upgrade is failing and the following errors are observed in /var/log/foreman-installer/satellite.log:

    [DEBUG 2021-04-04T23:00:20 main] Exit with status code: 6 (signal was 6)
    [ERROR 2021-04-04T23:00:20 main] Errors encountered during run:
    [ERROR 2021-04-04T23:00:20 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: '/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0]
    [ERROR 2021-04-04T23:00:20 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: '/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0]
  • Following errors observed while running command foreman-rake db:seed --trace:

    Seeding /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-
    Seeding /usr/share/foreman/db/seeds.d/070-provisioning_templates.rb
    rake aborted!
    Unable to update template Kickstart default PXELinux: Name has already been taken
    /usr/share/foreman/lib/seed_helper.rb:129:in `import_raw_template'
    /usr/share/foreman/lib/seed_helper.rb:138:in `block in import_templates'
    /usr/share/foreman/lib/seed_helper.rb:137:in `each'
    /usr/share/foreman/lib/seed_helper.rb:137:in `import_templates'


  • Red Hat Satellite 6.x

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