Project

General

Profile

Bug #28767

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

Added by Eric Helms 9 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Database
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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

Related to Foreman - Bug #27380: 'duplicate key value violates unique constraint "index_roles_on_name"' when installing 6.5.0Closed

Associated revisions

Revision 5eabb004 (diff)
Added by Eric Helms 9 months ago

Fixes #28767: Drop extra transaction from plugin Role creation

History

#1 Updated by Eric Helms 9 months ago

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

#2 Updated by The Foreman Bot 9 months ago

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

#3 Updated by The Foreman Bot 9 months ago

  • Fixed in Releases 2.0.0 added

#4 Updated by Eric Helms 9 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Tomer Brisker 8 months ago

  • Category set to Database

Also available in: Atom PDF