Project

General

Profile

Actions

Bug #6109

closed

Clicking on "Monitor -> Tasks" generates an error

Added by Paul Calabro almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

ActiveRecord::StatementInvalid
PGError: ERROR: relation "foreman_tasks_tasks" does not exist LINE 4: WHERE a.attrelid = '"foreman_tasks_tasks"'::reg... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"foreman_tasks_tasks"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum 
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'
Actions #1

Updated by Ivan Necas almost 10 years ago

Hi,

Could you try running `foreman-rake db:migrate`. What was your installation procedure?

Actions #2

Updated by Paul Calabro almost 10 years ago

That resolved the issue!

Question: What does `foreman-rake db:migrate` do? When are you supposed to run that?

Thx,
Paul

Actions #3

Updated by Ivan Necas almost 10 years ago

the script runs pending database migrations, it's being run automatically by the installer or after the foreman package updates. So it puts the database into the latest version

Actions #4

Updated by Ivan Necas almost 10 years ago

  • Status changed from New to Closed
  • Assignee set to Ivan Necas
Actions #5

Updated by Dominic Cleal almost 10 years ago

Plugin RPMs should also run it if they add DB migrations or seeds, see also bootdisk.

Actions #6

Updated by Paul Calabro almost 10 years ago

Thanks for the clarifications!

Actions

Also available in: Atom PDF