Closed crowesn closed 3 years ago
Describe the bug On docker local and curly 502 Bad Gateway after build on main branch.
ActiveRecord::RecordInvalid: Validation failed: Profile version has already been taken /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/validations.rb:80:in `raise_validation_error' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/validations.rb:52:in `save!' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:315:in `block in save!' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `synchronize' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:212:in `transaction' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:385:in `with_transaction_returning_status' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:315:in `save!' /opt/bundle/ruby/2.7.0/gems/activerecord-5.2.4.4/lib/active_record/suppressor.rb:48:in `save!' /opt/bundle/ruby/2.7.0/bundler/gems/allinson_flex-c6ec00e90b90/app/services/allinson_flex/allinson_flex_constructor.rb:26:in `find_or_create_from' /opt/bundle/ruby/2.7.0/bundler/gems/allinson_flex-c6ec00e90b90/app/services/allinson_flex/importer.rb:29:in `construct' /opt/bundle/ruby/2.7.0/bundler/gems/allinson_flex-c6ec00e90b90/app/services/allinson_flex/importer.rb:49:in `generate_from_hash' /opt/bundle/ruby/2.7.0/bundler/gems/allinson_flex-c6ec00e90b90/app/services/allinson_flex/importer.rb:41:in `generate_from_yaml_file' /opt/bundle/ruby/2.7.0/bundler/gems/allinson_flex-c6ec00e90b90/app/services/allinson_flex/importer.rb:19:in `load_profile_from_path' /opt/hyrax/lib/tasks/metadata_profile.rake:6:in `block (2 levels) in <main>' /opt/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `load' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `kernel_load' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in `run' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in `exec' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/libexec/bundle:46:in `block in <top (required)>' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors' /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/libexec/bundle:34:in `<top (required)>' /opt/rh/rh-ruby27/root/usr/local/bin/bundle:23:in `load' /opt/rh/rh-ruby27/root/usr/local/bin/bundle:23:in `<main>' Tasks: TOP => metadata_profile:load_default (See full trace by running task with --trace)
Describe the bug On docker local and curly 502 Bad Gateway after build on main branch.