How to fix 'Remote execution features' is invalid

Problem:
foreman-rake db:seed terminates in error. With the error message :
ActiveRecord::RecordInvalid: Validation failed: Remote execution features is invalid
How do you get rid of this message ?
I’ll add that this is an old installation back from 1.24 through 2.5.

Expected outcome:
foreman-rake db:seed
Foreman and Proxy versions:
foreman 2.5.4 - foreman-proxy 2.5.4 also
Foreman and Proxy plugin versions:
foreman-2.5.4-1.el7.noarch
foreman-cli-2.5.4-1.el7.noarch
foreman-console-2.5.4-1.el7.noarch
foreman-debug-2.5.4-1.el7.noarch
foreman-dynflow-sidekiq-2.5.4-1.el7.noarch
foreman-ec2-2.5.4-1.el7.noarch
foreman-installer-2.5.4-1.el7.noarch
foreman-ovirt-2.5.4-1.el7.noarch
foreman-postgresql-2.5.4-1.el7.noarch
foreman-proxy-2.5.4-1.el7.noarch
foreman-selinux-2.5.4-1.el7.noarch
foreman-service-2.5.4-1.el7.noarch
foreman-telemetry-2.5.4-1.el7.noarch
foreman-vmware-2.5.4-1.el7.noarch
tfm-rubygem-foreman-tasks-4.1.5-1.fm2_5.el7.noarch
tfm-rubygem-foreman-tasks-core-0.3.6-1.fm2_5.el7.noarch
tfm-rubygem-foreman_ansible-6.3.4-1.fm2_5.el7.noarch
tfm-rubygem-foreman_discovery-17.0.1-1.fm2_5.el7.noarch
tfm-rubygem-foreman_hooks-0.3.17-2.fm2_5.el7.noarch
tfm-rubygem-foreman_hooks-doc-0.3.17-2.fm2_5.el7.noarch
tfm-rubygem-foreman_puppet-0.1.0-1.fm2_5.el7.noarch
tfm-rubygem-foreman_remote_execution-4.5.6-1.fm2_5.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.4.8-1.el7.noarch

Distribution and version:
Centos 7
Other relevant data:
foreman-rake db:seed --trace
/usr/share/foreman is not writable.
Bundler will use /tmp/bundler20211027-1515-zqtgci1515' as your home directory temporarily. ** Invoke db:seed (first_time) ** Invoke db:load_config (first_time) ** Invoke environment (first_time) ** Execute environment API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache. ** Execute db:load_config ** Execute db:seed ** Invoke db:abort_if_pending_migrations (first_time) ** Invoke db:load_config ** Execute db:abort_if_pending_migrations ** Invoke dynflow:abort_if_pending_migrations (first_time) ** Invoke environment ** Execute dynflow:abort_if_pending_migrations User with login admin already exists, not seeding as admin. rake aborted! ActiveRecord::RecordInvalid: Validation failed: Remote execution features is invalid /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/validations.rb:80:in raise_validation_error’
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/validations.rb:53:in save!' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:318:in block in save!’
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:375:in block in with_transaction_returning_status' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:278:in transaction’
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:212:in transaction' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:366:in with_transaction_returning_status’
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:318:in save!' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/suppressor.rb:48:in save!’
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-4.5.6/app/models/job_template.rb:68:in import_raw!' /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-6.3.4/db/seeds.d/75_job_templates.rb:19:in block (4 levels) in <top (required)>’
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-6.3.4/db/seeds.d/75_job_templates.rb:17:in each' /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-6.3.4/db/seeds.d/75_job_templates.rb:17:in block (3 levels) in <top (required)>’
/opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in without_auditing' /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-6.3.4/db/seeds.d/75_job_templates.rb:15:in block (2 levels) in <top (required)>’
/opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in without_auditing' /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-6.3.4/db/seeds.d/75_job_templates.rb:6:in block in <top (required)>’
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in as' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:114:in as_anonymous_admin’
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-6.3.4/db/seeds.d/75_job_templates.rb:5:in <top (required)>' /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:318:in load’
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:318:in block in load' /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:291:in load_dependency’
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:318:in load' /usr/share/foreman/app/services/foreman_seeder.rb:51:in block (3 levels) in execute’
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in as' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:114:in as_anonymous_admin’
/usr/share/foreman/app/services/foreman_seeder.rb:50:in block (2 levels) in execute' /usr/share/foreman/app/services/foreman_seeder.rb:44:in each’
/usr/share/foreman/app/services/foreman_seeder.rb:44:in block in execute' /usr/share/foreman/lib/foreman/advisory_lock_manager.rb:20:in block in with_transaction_lock’
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in block in transaction' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:280:in block in within_new_transaction’
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize' /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt’
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize' /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt’
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:278:in within_new_transaction’
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in transaction' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:212:in transaction’
/usr/share/foreman/lib/foreman/advisory_lock_manager.rb:17:in with_transaction_lock' /usr/share/foreman/app/services/foreman_seeder.rb:38:in execute’
/usr/share/foreman/db/seeds.rb:14:in <top (required)>' /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:318:in load’
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:318:in block in load' /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:291:in load_dependency’
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:318:in load' /usr/share/foreman/config/initializers/0_print_time_spent.rb:38:in block in load’
/usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in benchmark' /usr/share/foreman/config/initializers/0_print_time_spent.rb:38:in load’
/opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/engine.rb:559:in load_seed' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/tasks/database_tasks.rb:440:in load_seed’
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/databases.rake:331:in block (2 levels) in <top (required)>' /opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:281:in block in execute’
/opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:281:in each' /opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:281:in execute’
/opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:219:in block in invoke_with_call_chain' /opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in synchronize’
/opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in invoke_with_call_chain' /opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:188:in invoke’
/opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:160:in invoke_task' /opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:116:in block (2 levels) in top_level’
/opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:116:in each' /opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:116:in block in top_level’
/opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:125:in run_with_threads' /opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:110:in top_level’
/opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:83:in block in run' /opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:186:in standard_exception_handling’
/opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:80:in run' /opt/rh/rh-ruby27/root/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in <top (required)>’
/opt/rh/rh-ruby27/root/usr/bin/rake:23:in load' /opt/rh/rh-ruby27/root/usr/bin/rake:23:in
Tasks: TOP => db:seed

Hello, no one has any hint to give ? I’m upping this question once. If it’s a FAQ I didn’t find any information for how to solve it. I’m at this time clueless.

Why do you want to run this in the first place? It’s part of foreman-installer and it’s probably better to let foreman-installer run it at the appropriate time…