Upgraded and Now IP Blocking?

I’m a complete noob to all of this so please forgive me. I have successfully upgraded using the process on the release page for v3.3.0.

However, after restarting services and rebooting, Mastodon will not come up completely. I get the error page with the elephant smashing the keyboard (lol!)

tailing my syslog shows this when I attempt to connect:

Feb  9 16:33:12 mastodon bundle[949]: [a083a75b-e57c-4022-af32-c40fde74b9ea] ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR:  relation "ip_blocks" does not exist
Feb  9 16:33:12 mastodon bundle[949]: LINE 8:                WHERE a.attrelid = '"ip_blocks"'::regclass
Feb  9 16:33:12 mastodon bundle[949]:                                           ^
Feb  9 16:33:12 mastodon bundle[949]: :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
Feb  9 16:33:12 mastodon bundle[949]:                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
Feb  9 16:33:12 mastodon bundle[949]:                      c.collname, col_description(a.attrelid, a.attnum) AS comment
Feb  9 16:33:12 mastodon bundle[949]:                 FROM pg_attribute a
Feb  9 16:33:12 mastodon bundle[949]:                 LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
Feb  9 16:33:12 mastodon bundle[949]:                 LEFT JOIN pg_type t ON a.atttypid = t.oid
Feb  9 16:33:12 mastodon bundle[949]:                 LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
Feb  9 16:33:12 mastodon bundle[949]:                WHERE a.attrelid = '"ip_blocks"'::regclass
Feb  9 16:33:12 mastodon bundle[949]:                  AND a.attnum > 0 AND NOT a.attisdropped
Feb  9 16:33:12 mastodon bundle[949]:                ORDER BY a.attnum
Feb  9 16:33:12 mastodon bundle[949]: ):
Feb  9 16:33:12 mastodon bundle[949]: [a083a75b-e57c-4022-af32-c40fde74b9ea]
Feb  9 16:33:12 mastodon bundle[949]: [a083a75b-e57c-4022-af32-c40fde74b9ea] app/models/ip_block.rb:31:in `block in blocked?'
Feb  9 16:33:12 mastodon bundle[949]: [a083a75b-e57c-4022-af32-c40fde74b9ea] app/models/ip_block.rb:31:in `blocked?'
Feb  9 16:33:12 mastodon bundle[949]: [a083a75b-e57c-4022-af32-c40fde74b9ea] config/initializers/rack_attack.rb:46:in `block in <class:Attack>'

File bug report too: After 3.3.0 upgrade on 1-click install image: PG::UndefinedTable: ERROR: relation "ip_blocks" does not exist · Issue #15696 · tootsuite/mastodon · GitHub

Did bundle exec rails db:migrate help as suggested?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.