Project

General

Profile

Bug #6109

Clicking on "Monitor -> Tasks" generates an error

Added by Paul Calabro over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
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'

History

#1 Updated by Ivan Necas over 6 years ago

Hi,

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

#2 Updated by Paul Calabro over 6 years ago

That resolved the issue!

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

Thx,
Paul

#3 Updated by Ivan Necas over 6 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

#4 Updated by Ivan Necas over 6 years ago

  • Status changed from New to Closed
  • Assignee set to Ivan Necas

#5 Updated by Dominic Cleal over 6 years ago

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

#6 Updated by Paul Calabro over 6 years ago

Thanks for the clarifications!

Also available in: Atom PDF