Skip to content

Instantly share code, notes, and snippets.

@ehelms
Created June 18, 2021 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehelms/0b9155f431173185b3f5a4cbb3164bf1 to your computer and use it in GitHub Desktop.
Save ehelms/0b9155f431173185b3f5a4cbb3164bf1 to your computer and use it in GitHub Desktop.
ActiveRecord::RecordInvalid: Validation failed: Provider type translation missing: en.activerecord.errors.models.job_template.attributes.provider_type.uniq
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/validations.rb:80:in `raise_validation_error'
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/validations.rb:53:in `save!'
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:318:in `block in save!'
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:375:in `block in with_transaction_returning_status'
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:278:in `transaction'
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:212:in `transaction'
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:366:in `with_transaction_returning_status'
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:318:in `save!'
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/suppressor.rb:48:in `save!'
/home/vagrant/foreman_remote_execution/app/models/job_template.rb:68:in `import_raw!'
/home/vagrant/katello/db/seeds.d/75-job_templates.rb:10:in `block (3 levels) in <main>'
/home/vagrant/katello/db/seeds.d/75-job_templates.rb:6:in `each'
/home/vagrant/katello/db/seeds.d/75-job_templates.rb:6:in `block (2 levels) in <main>'
/home/vagrant/foreman/.vendor/ruby/2.7.0/gems/audited-4.10.0/lib/audited/auditor.rb:395:in `without_auditing'
/home/vagrant/katello/db/seeds.d/75-job_templates.rb:3:in `block in <main>'
/home/vagrant/foreman/app/models/concerns/foreman/thread_session.rb:108:in `as'
/home/vagrant/foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin'
/home/vagrant/katello/db/seeds.d/75-job_templates.rb:2:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment