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 over 4 years ago. Updated about 4 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 #1

Updated by Eric Helms over 4 years ago

  • Related to Bug #27380: 'duplicate key value violates unique constraint "index_roles_on_name"' when installing 6.5.0 added
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7362 added
Actions #3

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 2.0.0 added
Actions #4

Updated by Eric Helms over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Tomer Brisker about 4 years ago

  • Category set to Database
Actions

Also available in: Atom PDF