Skip to content

Errors in logs on deploy #21

@jaromil

Description

@jaromil

Trying a deploy on heroku right after git push and before rake run this error appears in the logs:

2014-07-12T10:13:50.495828+00:00 app[web.1]: LINE 5:                WHERE a.attrelid = '"polls"'::regclass
2014-07-12T10:13:50.428955+00:00 app[web.1]: Processing by PollsController#new as */*
2014-07-12T10:13:50.495827+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR:  relation "polls" does not exist
2014-07-12T10:13:50.495821+00:00 app[web.1]: F, [2014-07-12T10:13:50.495702 #11] FATAL -- : 
2014-07-12T10:13:50.495834+00:00 app[web.1]:                 FROM pg_attribute a LEFT JOIN pg_attrdef d
2014-07-12T10:13:50.495829+00:00 app[web.1]:                                           ^
2014-07-12T10:13:50.495832+00:00 app[web.1]:                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2014-07-12T10:13:50.495831+00:00 app[web.1]: :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2014-07-12T10:13:50.495843+00:00 app[web.1]: 
2014-07-12T10:13:50.495835+00:00 app[web.1]:                   ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2014-07-12T10:13:50.495838+00:00 app[web.1]:                ORDER BY a.attnum
2014-07-12T10:13:50.495841+00:00 app[web.1]:   app/controllers/polls_controller.rb:15:in `new'
2014-07-12T10:13:50.495837+00:00 app[web.1]:                  AND a.attnum > 0 AND NOT a.attisdropped
2014-07-12T10:13:50.495840+00:00 app[web.1]: ):
2014-07-12T10:13:50.495836+00:00 app[web.1]:                WHERE a.attrelid = '"polls"'::regclass
2014-07-12T10:13:50.495842+00:00 app[web.1]: 
2014-07-12T10:13:50.489129+00:00 app[web.1]:                 FROM pg_attribute a LEFT JOIN pg_attrdef d
2014-07-12T10:13:50.489130+00:00 app[web.1]:                   ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2014-07-12T10:13:50.489135+00:00 app[web.1]: 
2014-07-12T10:13:50.489117+00:00 app[web.1]: PG::UndefinedTable: ERROR:  relation "polls" does not exist
2014-07-12T10:13:50.489123+00:00 app[web.1]: LINE 5:                WHERE a.attrelid = '"polls"'::regclass
2014-07-12T10:13:50.489124+00:00 app[web.1]:                                           ^
2014-07-12T10:13:50.489126+00:00 app[web.1]: :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2014-07-12T10:13:50.489127+00:00 app[web.1]:                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2014-07-12T10:13:50.489132+00:00 app[web.1]:                  AND a.attnum > 0 AND NOT a.attisdropped
2014-07-12T10:13:50.489134+00:00 app[web.1]:                ORDER BY a.attnum
2014-07-12T10:13:50.489723+00:00 app[web.1]: Completed 500 Internal Server Error in 59ms
2014-07-12T10:13:50.489131+00:00 app[web.1]:                WHERE a.attrelid = '"polls"'::regclass

This is not blocking, going on it all works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions