Project

General

Profile

Actions

Bug #28767

closed

Installer can fail at apipie:cache:index step due to race condition with plugin role loading`

Added by Eric Helms almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Database
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The error we see in nightly test runs transiently:

[ WARN 2020-01-14T16:32:53 main]  /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]/returns:
[ WARN 2020-01-14T16:32:53 main]  /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]/returns: Caused by:
[ WARN 2020-01-14T16:32:53 main]  /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]/returns: PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_roles_on_name" 
[ WARN 2020-01-14T16:32:53 main]  /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]/returns: DETAIL:  Key (name)=(Tasks Manager) already exists.
[ WARN 2020-01-14T16:32:53 main]  /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]/returns: /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:603:in `async_exec'

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #27380: 'duplicate key value violates unique constraint "index_roles_on_name"' when installing 6.5.0ClosedOndřej PražákActions
Actions

Also available in: Atom PDF