Project

General

Profile

Bug #31088

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

Added by Frédéric Praca about 1 month ago. Updated 4 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Plugin integration
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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

Related to Foreman - Bug #22065: Plugin tests with Rails 5.1 fail with relation "permissions" does not existClosed2017-12-23
Related to Foreman - Bug #30821: ActiveModel::UnknownAttributeError: unknown attribute 'name' for PermissionClosed

History

#1 Updated by Ewoud Kohl van Wijngaarden about 1 month ago

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

#2 Updated by Ewoud Kohl van Wijngaarden about 1 month ago

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

#3 Updated by Frédéric Praca about 1 month ago

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

#4 Updated by Tomer Brisker about 1 month ago

  • Category set to Plugin integration

#5 Updated by Tomer Brisker 4 days 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.

Also available in: Atom PDF