Project

General

Profile

Actions

Bug #31088

closed

'relation "permissions" does not exist' error during new 2.2 version installation

Added by Frédéric Praca over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Plugin integration
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When trying to install the 2.2 version on a CentOS 8.1, foreman-rake db:migrate fails with error

PG::UndefinedTable: ERROR: relation “permissions” does not exist
.

This looks similar to an older bug, #22065

There is a post on this also.


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #22065: Plugin tests with Rails 5.1 fail with relation "permissions" does not existClosedOndřej Pražák12/23/2017Actions
Related to Foreman - Bug #30821: ActiveModel::UnknownAttributeError: unknown attribute 'name' for PermissionClosedOndřej EzrActions
Actions #1

Updated by Ewoud Kohl van Wijngaarden over 3 years ago

  • Related to Bug #22065: Plugin tests with Rails 5.1 fail with relation "permissions" does not exist added
Actions #2

Updated by Ewoud Kohl van Wijngaarden over 3 years ago

  • Related to Bug #30821: ActiveModel::UnknownAttributeError: unknown attribute 'name' for Permission added
Actions #3

Updated by Frédéric Praca over 3 years ago

Seems that the problem comes from monitoring plugin which launches its database migration scripts before the Foreman ones.

Actions #4

Updated by Tomer Brisker over 3 years ago

  • Category set to Plugin integration
Actions #5

Updated by Tomer Brisker over 3 years ago

  • Status changed from New to Resolved
  • Pull request https://github.com/theforeman/foreman_monitoring/pull/76 added

The issue was in the monitoring plugin's migration.

Actions

Also available in: Atom PDF