ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: insert or update on table "services" violates foreign key constr...
https://sentry.gitlab.net/gitlab/gitlabcom/issues/1194819/
PG::ForeignKeyViolation: ERROR: insert or update on table "services" violates foreign key constraint "fk_71cce407f9"
DETAIL: Key (project_id)=(16357237) is not present in table "projects".
active_record/connection_adapters/postgresql_adapter.rb:611:in `async_exec_params'
@connection.exec_params(sql, type_casted_binds)
active_record/connection_adapters/postgresql_adapter.rb:611:in `block (2 levels) in exec_no_cache'
@connection.exec_params(sql, type_casted_binds)
active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
yield
active_support/concurrency/share_lock.rb:187:in `yield_shares'
yield
active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
@lock.yield_shares(compatible: [:load]) do
...
(108 additional frame(s) were not displayed)
ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: insert or update on table "services" violates foreign key constraint "fk_71cce407f9"
DETAIL: Key (project_id)=(16357237) is not present in table "projects".
: INSERT INTO "services" ("type", "project_id", "created_at", "updated_at", "active", "properties", "category", "pipeline_events", "job_events") VALUES ('PrometheusService', 16357237, '2020-01-25 03:46:27.696223', '2020-01-25 03:46:27.696223', TRUE, '{}', 'monitoring', TRUE, TRUE) RETURNING "id"
PG::ForeignKeyViolation: ERROR: insert or update on table "services" violates foreign key constraint "fk_71cce407f9"
DETAIL: Key (project_id)=(16357237) is not present in table "projects".
: INSERT INTO "services" ("type", "project_id", "created_at", "updated_at", "active", "properties", "category", "pipeline_events", "job_events") VALUES ('PrometheusService', 16357237, '2020-01-25 03:46:27.696223', '2020-01-25 03:46:27.696223', TRUE, '{}', 'monitoring', TRUE, TRUE) RETURNING "id"