Fedora 28 ppc64le GEM Install - undefined method `actions' for nil:NilClass

Hi All,

I have been attempting to get Foreman to run on Fedora 28 ppc64le. After giving up with missing dependencies I went down the Ruby route. I’ve managed to get Foreman to load via git clone and bundle build. However I cannot manage to add Katello.

I’ve added to bundler.d/Gemfile.local.rb
gem ‘rdoc’
gem ‘katello’

ran bundle update with no errors, however when I attempting to start the web server again, I get the following:

./bin/rails s -e production
/home/foreman/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
/home/foreman/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
=> Booting WEBrick
=> Rails 5.1.6 application starting in production on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
Apipie cache enabled but not present yet. Run apipie:cache rake task to speed up API calls.
Exiting
Traceback (most recent call last):
        73: from ./bin/rails:3:in `<main>'
        72: from ./bin/rails:3:in `load'
        71: from /home/foreman/foreman/bin/spring:13:in `<top (required)>'
        70: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:70:in `require'
        69: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:70:in `require'
        68: from /usr/share/gems/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
        67: from /usr/share/gems/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
        66: from /usr/share/gems/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
        65: from /usr/share/gems/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
        64: from /usr/share/gems/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
        63: from /usr/share/gems/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
        62: from /usr/share/gems/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
        61: from /home/foreman/foreman/bin/rails:9:in `<top (required)>'
        60: from /home/foreman/foreman/bin/rails:9:in `require'
        59: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands.rb:16:in `<top (required)>'
        58: from /usr/share/gems/gems/railties-5.1.6/lib/rails/command.rb:44:in `invoke'
        57: from /usr/share/gems/gems/railties-5.1.6/lib/rails/command/base.rb:63:in `perform'
        56: from /usr/share/gems/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
        55: from /usr/share/gems/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
        54: from /usr/share/gems/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
        53: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:130:in `perform'
        52: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:130:in `tap'
        51: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:135:in `block in perform'
        50: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:44:in `start'
        49: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/server.rb:283:in `start'
        48: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/server.rb:354:in `wrapped_app'
        47: from /usr/share/gems/gems/railties-5.1.6/lib/rails/commands/server/server_command.rb:24:in `app'
        46: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/server.rb:219:in `app'
        45: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/server.rb:319:in `build_app_and_options_from_config'
        44: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/builder.rb:40:in `parse_file'
        43: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/builder.rb:49:in `new_from_string'
        42: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/builder.rb:49:in `eval'
        41: from config.ru:in `<main>'
        40: from config.ru:in `new'
        39: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/builder.rb:55:in `initialize'
        38: from /usr/local/share/gems/gems/rack-2.0.5/lib/rack/builder.rb:55:in `instance_eval'
        37: from config.ru:5:in `block in <main>'
        36: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
        35: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
        34: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
        33: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        32: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        31: from /home/foreman/foreman/config/environment.rb:5:in `<top (required)>'
        30: from /usr/share/gems/gems/railties-5.1.6/lib/rails/railtie.rb:185:in `method_missing'
        29: from /usr/share/gems/gems/railties-5.1.6/lib/rails/railtie.rb:185:in `public_send'
        28: from /usr/share/gems/gems/railties-5.1.6/lib/rails/application.rb:353:in `initialize!'
        27: from /usr/share/gems/gems/railties-5.1.6/lib/rails/initializable.rb:58:in `run_initializers'
        26: from /usr/share/ruby/tsort.rb:205:in `tsort_each'
        25: from /usr/share/ruby/tsort.rb:226:in `tsort_each'
        24: from /usr/share/ruby/tsort.rb:347:in `each_strongly_connected_component'
        23: from /usr/share/ruby/tsort.rb:347:in `call'
        22: from /usr/share/ruby/tsort.rb:347:in `each'
        21: from /usr/share/ruby/tsort.rb:349:in `block in each_strongly_connected_component'
        20: from /usr/share/ruby/tsort.rb:431:in `each_strongly_connected_component_from'
        19: from /usr/share/ruby/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        18: from /usr/share/ruby/tsort.rb:228:in `block in tsort_each'
        17: from /usr/share/gems/gems/railties-5.1.6/lib/rails/initializable.rb:59:in `block in run_initializers'
        16: from /usr/share/gems/gems/railties-5.1.6/lib/rails/initializable.rb:30:in `run'
        15: from /usr/share/gems/gems/railties-5.1.6/lib/rails/initializable.rb:30:in `instance_exec'
        14: from /home/foreman/.gem/ruby/gems/katello-3.7.0/lib/katello/engine.rb:61:in `block in <class:Engine>'
        13: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
        12: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
        11: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
        10: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
         9: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
         8: from /home/foreman/.gem/ruby/gems/katello-3.7.0/lib/katello/permissions.rb:1:in `<top (required)>'
         7: from /home/foreman/.gem/ruby/gems/katello-3.7.0/lib/katello/permissions.rb:1:in `each'
         6: from /home/foreman/.gem/ruby/gems/katello-3.7.0/lib/katello/permissions.rb:2:in `block in <top (required)>'
         5: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
         4: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
         3: from /usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
         2: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
         1: from /usr/local/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/foreman/.gem/ruby/gems/katello-3.7.0/lib/katello/permissions/organization_permissions.rb:3:in `<top (required)>': undefined method `actions' for nil:NilClass (NoMethodError)

Trying to get to the bottom of it but not getting anywhere so any advice is appreciated!!

Hello this needs probably a @katello expert but this does not look like some problem with your architecture but rather with taxonomy. Have you enabled org/loc/login in settings.yaml? Katello requires that. Also you need to migrate and seed the database - seed is particularly important to create some basic data structures.

Hi,

Thanks for the response. I hadn’t actually done org or loc in setting.yaml but i have now:

head config/settings.yaml

:unattended: true
:login: true
:require_ssl: false
:locations_enabled: true
:organizations_enabled: true

I had been getting a similar error when doing a rake but since changing those settings I now get the following:

== 20141209103005 DisownForemanTemplates: migrating ===========================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

Invalid single-table inheritance type: ProvisioningTemplate is not a subclass of DisownForemanTemplates::FakeConfigTemplate
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/inheritance.rb:203:in `find_sti_class'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/inheritance.rb:177:in `discriminate_class_for_record'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/persistence.rb:67:in `instantiate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/querying.rb:50:in `block (2 levels) in find_by_sql'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/result.rb:55:in `block in each'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/result.rb:55:in `each'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/result.rb:55:in `each'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/querying.rb:50:in `map'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/querying.rb:50:in `block in find_by_sql'
/home/foreman/.gem/ruby/gems/activesupport-5.1.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/querying.rb:49:in `find_by_sql'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/statement_cache.rb:107:in `execute'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/core.rb:219:in `find_by'
/home/foreman/.gem/ruby/gems/katello-3.7.0/db/migrate/20141209103005_disown_foreman_templates.rb:24:in `block in update_templates_attributes'
/home/foreman/.gem/ruby/gems/katello-3.7.0/db/migrate/20141209103005_disown_foreman_templates.rb:23:in `each'
/home/foreman/.gem/ruby/gems/katello-3.7.0/db/migrate/20141209103005_disown_foreman_templates.rb:23:in `update_templates_attributes'
/home/foreman/.gem/ruby/gems/katello-3.7.0/db/migrate/20141209103005_disown_foreman_templates.rb:11:in `up'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:795:in `exec_migration'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:776:in `block (2 levels) in migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:775:in `block in migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:408:in `with_connection'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:774:in `migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:953:in `migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1230:in `block in execute_migration_in_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1298:in `block in ddl_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/transactions.rb:210:in `transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1298:in `ddl_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1229:in `execute_migration_in_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1201:in `block in migrate_without_lock'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1200:in `each'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1200:in `migrate_without_lock'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1150:in `migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1007:in `up'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:985:in `migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/tasks/database_tasks.rb:171:in `migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/home/foreman/.gem/ruby/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli/exec.rb:74:in `load'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli/exec.rb:74:in `kernel_load'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli/exec.rb:28:in `run'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli.rb:424:in `exec'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli.rb:27:in `dispatch'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli.rb:18:in `start'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/exe/bundle:30:in `block in <top (required)>'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/exe/bundle:22:in `<top (required)>'
/home/foreman/bin/bundle:23:in `load'
/home/foreman/bin/bundle:23:in `<main>'

Caused by:
ActiveRecord::SubclassNotFound: Invalid single-table inheritance type: ProvisioningTemplate is not a subclass of DisownForemanTemplates::FakeConfigTemplate
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/inheritance.rb:203:in `find_sti_class'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/inheritance.rb:177:in `discriminate_class_for_record'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/persistence.rb:67:in `instantiate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/querying.rb:50:in `block (2 levels) in find_by_sql'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/result.rb:55:in `block in each'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/result.rb:55:in `each'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/result.rb:55:in `each'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/querying.rb:50:in `map'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/querying.rb:50:in `block in find_by_sql'
/home/foreman/.gem/ruby/gems/activesupport-5.1.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/querying.rb:49:in `find_by_sql'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/statement_cache.rb:107:in `execute'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/core.rb:219:in `find_by'
/home/foreman/.gem/ruby/gems/katello-3.7.0/db/migrate/20141209103005_disown_foreman_templates.rb:24:in `block in update_templates_attributes'
/home/foreman/.gem/ruby/gems/katello-3.7.0/db/migrate/20141209103005_disown_foreman_templates.rb:23:in `each'
/home/foreman/.gem/ruby/gems/katello-3.7.0/db/migrate/20141209103005_disown_foreman_templates.rb:23:in `update_templates_attributes'
/home/foreman/.gem/ruby/gems/katello-3.7.0/db/migrate/20141209103005_disown_foreman_templates.rb:11:in `up'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:795:in `exec_migration'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:776:in `block (2 levels) in migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:775:in `block in migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:408:in `with_connection'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:774:in `migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:953:in `migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1230:in `block in execute_migration_in_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1298:in `block in ddl_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/transactions.rb:210:in `transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1298:in `ddl_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1229:in `execute_migration_in_transaction'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1201:in `block in migrate_without_lock'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1200:in `each'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1200:in `migrate_without_lock'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1150:in `migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:1007:in `up'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/migration.rb:985:in `migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/tasks/database_tasks.rb:171:in `migrate'
/home/foreman/.gem/ruby/gems/activerecord-5.1.6/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/home/foreman/.gem/ruby/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli/exec.rb:74:in `load'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli/exec.rb:74:in `kernel_load'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli/exec.rb:28:in `run'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli.rb:424:in `exec'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli.rb:27:in `dispatch'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/cli.rb:18:in `start'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/exe/bundle:30:in `block in <top (required)>'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/home/foreman/.gem/ruby/gems/bundler-1.16.4/exe/bundle:22:in `<top (required)>'
/home/foreman/bin/bundle:23:in `load'
/home/foreman/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate

So I did a little more fiddling and ran:

bundle exec rake db:migrate
bundle exec rake db:seed assets:precompile locale:pack webpack:compile

and that then worked. So giving the RAILS argument was not helping. Started it up and it so far looks to be working. Thanks for the steer on the the config.yaml.

Only issue I seem to be having now is creating an organization

“undefined method `registry_name_pattern’ for #”

when I try to create.