Broken master: /spec/lib/gitlab/lets_encrypt/client_spec.rb
From https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/279449986:
Failures:
1) Gitlab::LetsEncrypt::Client#new_order ensures account registration
Failure/Error: application_settings.update(lets_encrypt_private_key: OpenSSL::PKey::RSA.new(4096).to_pem)
ActiveRecord::StatementInvalid:
PG::UndefinedColumn: ERROR: record "new" has no field "allow_local_requests_from_hooks_and_services"
CONTEXT: PL/pgSQL function trigger_981a520d34e5() line 3 at assignment
: INSERT INTO "application_settings" ("default_projects_limit", "signup_enabled", "gravatar_enabled", "created_at", "updated_at", "restricted_visibility_levels", "default_project_visibility", "default_snippet_visibility", "import_sources", "default_group_visibility", "repository_checks_enabled", "health_check_access_token", "repository_storages", "sign_in_text_html", "help_page_text_html", "shared_runners_text_html", "after_sign_up_text_html", "dsa_key_restriction", "plantuml_enabled", "unique_ips_limit_per_user", "unique_ips_limit_time_window", "default_artifacts_expire_in", "elasticsearch_url", "uuid", "cached_markdown_version", "mirror_max_capacity", "mirror_capacity_threshold", "password_authentication_enabled_for_web", "commit_email_hostname", "runners_registration_token_encrypted", "encrypted_lets_encrypt_private_key", "encrypted_lets_encrypt_private_key_iv", "id") VALUES (42, TRUE, TRUE, '2019-08-24 19:43:32.453931', '2019-08-24 19:43:32.453931', '--- []
', 0, 0, '---
- github
- bitbucket
- bitbucket_server
- gitlab
- google_code
- fogbugz
- git
- gitlab_project
- gitea
- manifest
- phabricator
', 0, TRUE, 'ssDNRttYn9SqNapFYP3G', '---
- default
', '', '', '', '', 0, FALSE, 10, 3600, '30 days', 'http://elastic:changeme@docker.elastic.co-elasticsearch-elasticsearch:9200', 'd88cad5d-78bd-46e8-a497-ee670068c445', 1048576, 30, 15, TRUE, 'users.noreply.localhost', 'qFvtYCDr9ZVRxVJUzf7yW56CmpIf6OvV4x90aY9iqBtYqdG8', 'XwI1NCLfg/negavM5PwVS7DAKI3Gg/R1a1TE7hcWWC7C4pT86ooI/708gJO3
84iHHt11jw7qJbq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SMhUbn2TSbqMVI60B+Mv
EL/PgM5/bf721n/hTgEjsgyDpLF1Vb0=
', 'uqWlJWYC+Gn2BJK0
', 1) RETURNING "id"
Shared Example Group: "ensures account registration" called from ./spec/lib/gitlab/lets_encrypt/client_spec.rb:80
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:611:in `async_exec_params'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:611:in `block (2 levels) in exec_no_cache'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:610:in `block in exec_no_cache'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log'
# /usr/local/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:609:in `exec_no_cache'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:596:in `execute_and_clear'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:81:in `exec_query'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:130:in `exec_insert'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:115:in `exec_insert'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:162:in `insert'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/query_cache.rb:21:in `insert'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:187:in `_insert_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:734:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/counter_cache.rb:184:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/locking/optimistic.rb:70:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/attribute_methods/dirty.rb:140:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/callbacks.rb:346:in `block in _create_record'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:132:in `run_callbacks'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:816:in `_run_create_callbacks'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/callbacks.rb:346:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/timestamp.rb:102:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:705:in `create_or_update'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/callbacks.rb:342:in `block in create_or_update'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:132:in `run_callbacks'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:816:in `_run_save_callbacks'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/callbacks.rb:342:in `create_or_update'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:275:in `save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/validations.rb:46:in `save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:310:in `block (2 levels) in save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:212:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:310:in `block in save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:325:in `rollback_active_record_state!'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:309:in `save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/suppressor.rb:44:in `save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:428:in `block in update'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:212:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:426:in `update'
# ./lib/gitlab/lets_encrypt/client.rb:79:in `block in generate_private_key'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/locking/pessimistic.rb:84:in `block in with_lock'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
# /usr/local/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:212:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:301:in `transaction'
# ./lib/gitlab/database.rb:300:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/locking/pessimistic.rb:82:in `with_lock'
# ./lib/gitlab/lets_encrypt/client.rb:77:in `generate_private_key'
# ./lib/gitlab/lets_encrypt/client.rb:46:in `block in private_key'
# ./lib/gitlab/utils/strong_memoize.rb:30:in `strong_memoize'
# ./lib/gitlab/lets_encrypt/client.rb:44:in `private_key'
# ./lib/gitlab/lets_encrypt/client.rb:40:in `acme_client'
# ./lib/gitlab/lets_encrypt/client.rb:62:in `ensure_account'
# ./lib/gitlab/lets_encrypt/client.rb:12:in `new_order'
# ./spec/lib/gitlab/lets_encrypt/client_spec.rb:73:in `block (3 levels) in <top (required)>'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:317:in `block (2 levels) in let'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:157:in `block (3 levels) in fetch_or_store'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:157:in `fetch'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:157:in `block (2 levels) in fetch_or_store'
# ./vendor/ruby/2.6.0/gems/rspec-support-3.8.2/lib/rspec/support/reentrant_mutex.rb:23:in `synchronize'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:156:in `block in fetch_or_store'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:155:in `fetch'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:155:in `fetch_or_store'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:317:in `block in let'
# ./spec/lib/gitlab/lets_encrypt/client_spec.rb:21:in `block (3 levels) in <top (required)>'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:257:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:257:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:503:in `block in with_around_and_singleton_context_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:460:in `block in with_around_example_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:464:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:604:in `block in run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:345:in `call'
# ./vendor/ruby/2.6.0/gems/rspec-rails-3.8.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:450:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:450:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:373:in `execute_with'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:606:in `block (2 levels) in run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:345:in `call'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:450:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:450:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:373:in `execute_with'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:606:in `block (2 levels) in run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:345:in `call'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:607:in `run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:464:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:460:in `with_around_example_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:503:in `with_around_and_singleton_context_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:254:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:633:in `block in run_examples'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:629:in `map'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:629:in `run_examples'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:595:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:596:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:596:in `map'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:596:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:116:in `block (3 levels) in run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:116:in `map'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:116:in `block (2 levels) in run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/configuration.rb:2008:in `with_suite_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:111:in `block in run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/reporter.rb:74:in `report'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:110:in `run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:87:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:71:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:45:in `invoke'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/exe/rspec:4:in `<top (required)>'
# ./vendor/ruby/2.6.0/bin/rspec:23:in `load'
# ./vendor/ruby/2.6.0/bin/rspec:23:in `<top (required)>'
# /usr/local/lib/ruby/2.6.0/bundler/cli/exec.rb:74:in `load'
# /usr/local/lib/ruby/2.6.0/bundler/cli/exec.rb:74:in `kernel_load'
# /usr/local/lib/ruby/2.6.0/bundler/cli/exec.rb:28:in `run'
# /usr/local/lib/ruby/2.6.0/bundler/cli.rb:463:in `exec'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
# /usr/local/lib/ruby/2.6.0/bundler/cli.rb:27:in `dispatch'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
# /usr/local/lib/ruby/2.6.0/bundler/cli.rb:18:in `start'
# /usr/local/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:30:in `block in <top (required)>'
# /usr/local/lib/ruby/2.6.0/bundler/friendly_errors.rb:124:in `with_friendly_errors'
# /usr/local/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:22:in `<top (required)>'
# /usr/local/bin/bundle:23:in `load'
# /usr/local/bin/bundle:23:in `<main>'
# ------------------
# --- Caused by: ---
# PG::UndefinedColumn:
# ERROR: record "new" has no field "allow_local_requests_from_hooks_and_services"
# CONTEXT: PL/pgSQL function trigger_981a520d34e5() line 3 at assignment
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:611:in `async_exec_params'
2) Gitlab::LetsEncrypt::Client#new_order generates and stores private key and initialize acme client with it
Failure/Error: application_settings.update(lets_encrypt_private_key: OpenSSL::PKey::RSA.new(4096).to_pem)
ActiveRecord::StatementInvalid:
PG::UndefinedColumn: ERROR: record "new" has no field "allow_local_requests_from_hooks_and_services"
CONTEXT: PL/pgSQL function trigger_981a520d34e5() line 3 at assignment
: INSERT INTO "application_settings" ("default_projects_limit", "signup_enabled", "gravatar_enabled", "created_at", "updated_at", "restricted_visibility_levels", "default_project_visibility", "default_snippet_visibility", "import_sources", "default_group_visibility", "repository_checks_enabled", "health_check_access_token", "repository_storages", "sign_in_text_html", "help_page_text_html", "shared_runners_text_html", "after_sign_up_text_html", "dsa_key_restriction", "plantuml_enabled", "unique_ips_limit_per_user", "unique_ips_limit_time_window", "default_artifacts_expire_in", "elasticsearch_url", "uuid", "cached_markdown_version", "mirror_max_capacity", "mirror_capacity_threshold", "password_authentication_enabled_for_web", "commit_email_hostname", "runners_registration_token_encrypted", "encrypted_lets_encrypt_private_key", "encrypted_lets_encrypt_private_key_iv", "id") VALUES (42, TRUE, TRUE, '2019-08-24 19:43:35.677571', '2019-08-24 19:43:35.677571', '--- []
', 0, 0, '---
- github
- bitbucket
- bitbucket_server
- gitlab
- google_code
- fogbugz
- git
- gitlab_project
- gitea
- manifest
- phabricator
', 0, TRUE, 'sJweyKBd3_xtHBWkb6o4', '---
- default
', '', '', '', '', 0, FALSE, 10, 3600, '30 days', 'http://elastic:changeme@docker.elastic.co-elasticsearch-elasticsearch:9200', '3c164909-4aaa-4bf5-a6c5-59098a1776f2', 1048576, 30, 15, TRUE, 'users.noreply.localhost', 'jHvyaS27uo8mrmpPharyb/qMkfF/OMowfzl9NgVwxIQ1TTNz', 'XR5dQMzQqIhCb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z/HGn980sTmtXpT/qfKs0cwo0EAd2jsXQWb5WkZr6qe/zFckmA
3oodJI8q7dcajBsOklrx/eAFlDZhIb265t0VnjuyLvm7b2i/UbWMaUmhwlqt
SsdsT3Pf5HUNBgpWuENazBOtJi/GktE=
', '23z77TAy0ZDNvHar
', 1) RETURNING "id"
Shared Example Group: "ensures account registration" called from ./spec/lib/gitlab/lets_encrypt/client_spec.rb:80
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:611:in `async_exec_params'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:611:in `block (2 levels) in exec_no_cache'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:610:in `block in exec_no_cache'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log'
# /usr/local/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:609:in `exec_no_cache'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:596:in `execute_and_clear'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:81:in `exec_query'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:130:in `exec_insert'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:115:in `exec_insert'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:162:in `insert'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/query_cache.rb:21:in `insert'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:187:in `_insert_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:734:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/counter_cache.rb:184:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/locking/optimistic.rb:70:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/attribute_methods/dirty.rb:140:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/callbacks.rb:346:in `block in _create_record'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:132:in `run_callbacks'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:816:in `_run_create_callbacks'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/callbacks.rb:346:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/timestamp.rb:102:in `_create_record'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:705:in `create_or_update'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/callbacks.rb:342:in `block in create_or_update'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:132:in `run_callbacks'
# ./vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:816:in `_run_save_callbacks'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/callbacks.rb:342:in `create_or_update'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:275:in `save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/validations.rb:46:in `save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:310:in `block (2 levels) in save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:212:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:310:in `block in save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:325:in `rollback_active_record_state!'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:309:in `save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/suppressor.rb:44:in `save'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:428:in `block in update'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:212:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:426:in `update'
# ./lib/gitlab/lets_encrypt/client.rb:79:in `block in generate_private_key'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/locking/pessimistic.rb:84:in `block in with_lock'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
# /usr/local/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:212:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:301:in `transaction'
# ./lib/gitlab/database.rb:300:in `transaction'
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/locking/pessimistic.rb:82:in `with_lock'
# ./lib/gitlab/lets_encrypt/client.rb:77:in `generate_private_key'
# ./lib/gitlab/lets_encrypt/client.rb:46:in `block in private_key'
# ./lib/gitlab/utils/strong_memoize.rb:30:in `strong_memoize'
# ./lib/gitlab/lets_encrypt/client.rb:44:in `private_key'
# ./lib/gitlab/lets_encrypt/client.rb:40:in `acme_client'
# ./lib/gitlab/lets_encrypt/client.rb:62:in `ensure_account'
# ./lib/gitlab/lets_encrypt/client.rb:12:in `new_order'
# ./spec/lib/gitlab/lets_encrypt/client_spec.rb:73:in `block (3 levels) in <top (required)>'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:317:in `block (2 levels) in let'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:157:in `block (3 levels) in fetch_or_store'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:157:in `fetch'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:157:in `block (2 levels) in fetch_or_store'
# ./vendor/ruby/2.6.0/gems/rspec-support-3.8.2/lib/rspec/support/reentrant_mutex.rb:23:in `synchronize'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:156:in `block in fetch_or_store'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:155:in `fetch'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:155:in `fetch_or_store'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/memoized_helpers.rb:317:in `block in let'
# ./spec/lib/gitlab/lets_encrypt/client_spec.rb:32:in `block (3 levels) in <top (required)>'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:257:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:257:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:503:in `block in with_around_and_singleton_context_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:460:in `block in with_around_example_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:464:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:604:in `block in run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:345:in `call'
# ./vendor/ruby/2.6.0/gems/rspec-rails-3.8.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:450:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:450:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:373:in `execute_with'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:606:in `block (2 levels) in run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:345:in `call'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:450:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:450:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:373:in `execute_with'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:606:in `block (2 levels) in run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:345:in `call'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:607:in `run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:464:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:460:in `with_around_example_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:503:in `with_around_and_singleton_context_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:254:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:633:in `block in run_examples'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:629:in `map'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:629:in `run_examples'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:595:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:596:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:596:in `map'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example_group.rb:596:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:116:in `block (3 levels) in run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:116:in `map'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:116:in `block (2 levels) in run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/configuration.rb:2008:in `with_suite_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:111:in `block in run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/reporter.rb:74:in `report'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:110:in `run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:87:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:71:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:45:in `invoke'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/exe/rspec:4:in `<top (required)>'
# ./vendor/ruby/2.6.0/bin/rspec:23:in `load'
# ./vendor/ruby/2.6.0/bin/rspec:23:in `<top (required)>'
# /usr/local/lib/ruby/2.6.0/bundler/cli/exec.rb:74:in `load'
# /usr/local/lib/ruby/2.6.0/bundler/cli/exec.rb:74:in `kernel_load'
# /usr/local/lib/ruby/2.6.0/bundler/cli/exec.rb:28:in `run'
# /usr/local/lib/ruby/2.6.0/bundler/cli.rb:463:in `exec'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
# /usr/local/lib/ruby/2.6.0/bundler/cli.rb:27:in `dispatch'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
# /usr/local/lib/ruby/2.6.0/bundler/cli.rb:18:in `start'
# /usr/local/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:30:in `block in <top (required)>'
# /usr/local/lib/ruby/2.6.0/bundler/friendly_errors.rb:124:in `with_friendly_errors'
# /usr/local/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:22:in `<top (required)>'
# /usr/local/bin/bundle:23:in `load'
# /usr/local/bin/bundle:23:in `<main>'
# ------------------
# --- Caused by: ---
# PG::UndefinedColumn:
# ERROR: record "new" has no field "allow_local_requests_from_hooks_and_services"
# CONTEXT: PL/pgSQL function trigger_981a520d34e5() line 3 at assignment
# ./vendor/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:611:in `async_exec_params'
/cc: @rpereira2