500 errors after 2.6.1 upgrade


#1

I upgraded to 2.6.1 with no errors from the command line. The webpage loads, but once you login, everything 500s. You can visit local user profiles okay e.g. /web/accounts/1

Everything else, including navigating to admin/dashboard, or any other timeline. Going to Preferences just goes to the generic " We’re sorry, but something went wrong on our end" page.

I have a lot of stuff in syslog. A couple of things stand out:

Nov  6 00:19:32 squid bundle[6062]: [c352ba15-e30a-4809-a3b0-1fba177844e2] method=GET path=/api/v1/timelines/home format=html controller=Api::V1::Timelines::HomeController action=show status=500 error='ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "status_stats" does not exist
Nov  6 00:22:35 squid npm[6049]: ERR! error: column users.chosen_languages does not exist

Nov 06 00:57:56 squid bundle[6062]: [f515e4d0-e4f9-4f47-a120-67bf529167b9] ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR:  relation "status_stats" does not exist
Nov 06 00:57:56 squid bundle[6062]: LINE 8:                WHERE a.attrelid = '"status_stats"'::regclass
Nov 06 00:57:56 squid bundle[6062]:                                           ^
Nov 06 00:57:56 squid bundle[6062]: :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
Nov 06 00:57:56 squid bundle[6062]:                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
Nov 06 00:57:56 squid bundle[6062]:                      c.collname, col_description(a.attrelid, a.attnum) AS comment
Nov 06 00:57:56 squid bundle[6062]:                 FROM pg_attribute a
Nov 06 00:57:56 squid bundle[6062]:                 LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
Nov 06 00:57:56 squid bundle[6062]:                 LEFT JOIN pg_type t ON a.atttypid = t.oid
Nov 06 00:57:56 squid bundle[6062]:                 LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
Nov 06 00:57:56 squid bundle[6062]:                WHERE a.attrelid = '"status_stats"'::regclass
Nov 06 00:57:56 squid bundle[6062]:                  AND a.attnum > 0 AND NOT a.attisdropped
Nov 06 00:57:56 squid bundle[6062]:                ORDER BY a.attnum
Nov 06 00:57:56 squid bundle[6062]: ):

Other wise, there’re a bunch of messages:

Nov  6 00:48:42 squid bundle[6062]: [a798b577-9d09-4ed4-8d8a-976da878a542] app/controllers/application_controller.rb:116:in `map'
Nov  6 00:48:42 squid bundle[6062]: [a798b577-9d09-4ed4-8d8a-976da878a542] app/controllers/application_controller.rb:116:in `cache_collection'
Nov  6 00:48:42 squid bundle[6062]: [a798b577-9d09-4ed4-8d8a-976da878a542] app/controllers/api/v1/timelines/home_controller.rb:26:in `cached_home_statuses'
Nov  6 00:48:42 squid bundle[6062]: [a798b577-9d09-4ed4-8d8a-976da878a542] app/controllers/api/v1/timelines/home_controller.rb:22:in `load_statuses'
Nov  6 00:48:42 squid bundle[6062]: [a798b577-9d09-4ed4-8d8a-976da878a542] app/controllers/api/v1/timelines/home_controller.rb:11:in `show'

#2

Did you run RAILS_ENV=production bundle exec rake db:migrate?


#3

:man_facepalming:t2: I cannot believe I missed that step.
Running now. Thank you!