Actions
Bug #6109
closedClicking on "Monitor -> Tasks" generates an error
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'
Updated by Ivan Necas almost 10 years ago
Hi,
Could you try running `foreman-rake db:migrate`. What was your installation procedure?
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
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
Updated by Ivan Necas almost 10 years ago
- Status changed from New to Closed
- Assignee set to Ivan Necas
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