glitch-soc / mastodon

A glitchy but lovable microblogging server
https://glitch-soc.github.io/docs/
GNU Affero General Public License v3.0
704 stars 182 forks source link

ActiveModel::UnknownAttributeError (unknown attribute 'content_type' for Status.): when trying to load any pages #2130

Closed itzzengay closed 1 year ago

itzzengay commented 1 year ago

Steps to reproduce the problem

  1. Setup Mastodon by following the official docs
  2. Migrate to Glitch-Soc by following the official docs
  3. Go to any page while being logged in
  4. ActiveModel::UnknownAttributeError (unknown attribute 'content_type' for Status.): will be spit out in the logs for the mastodon-web service.

Expected behaviour

Migration should have been successful

Actual behaviour

500 Internal Server Errors when attempting to view any pages

Detailed description

Expanded log for this issue:

Mar 09 19:37:17 plus.st bundle[298641]: [47847ea3-3594-450d-8c40-7be6c9a5ac9e]
Mar 09 19:37:17 plus.st bundle[298641]: [47847ea3-3594-450d-8c40-7be6c9a5ac9e] app/controllers/concerns/cache_concern.rb:34:in `cache_collection'
Mar 09 19:37:17 plus.st bundle[298641]: [47847ea3-3594-450d-8c40-7be6c9a5ac9e] app/controllers/activitypub/collections_controller.rb:23:in `block in set_items'
Mar 09 19:37:17 plus.st bundle[298641]: [47847ea3-3594-450d-8c40-7be6c9a5ac9e] app/controllers/activitypub/collections_controller.rb:71:in `for_signed_account'
Mar 09 19:37:17 plus.st bundle[298641]: [47847ea3-3594-450d-8c40-7be6c9a5ac9e] app/controllers/activitypub/collections_controller.rb:23:in `set_items'
Mar 09 19:37:17 plus.st bundle[298641]: [47847ea3-3594-450d-8c40-7be6c9a5ac9e] lib/mastodon/rack_middleware.rb:9:in `call'
Mar 09 19:37:17 plus.st bundle[298641]: [83573e5a-65b5-4644-88dc-1aea7a09c113] method=GET path=/.well-known/host-meta format=xml controller=WellKnown::HostMetaController action=show status=200 duration=0.65 view=0.33 db=0.00
Mar 09 19:37:17 plus.st bundle[298641]: [a0c76d88-ecb3-43bb-a8f8-7874c9ae40f3] method=GET path=/.well-known/webfinger format=xml controller=WellKnown::WebfingerController action=show status=200 duration=2.73 view=1.00 db=0.24
Mar 09 19:37:17 plus.st bundle[298641]: [b0b83b8b-b848-4b7d-96cd-96678fa83dc6] method=GET path=/users/itzzenxx format=json controller=AccountsController action=show status=200 duration=7.29 view=0.22 db=0.34 key=https://vibewave.space/internal/fetch#main-key
Mar 09 19:37:17 plus.st bundle[298641]: [23ab5751-a917-4b42-97d2-235b472a12f4] method=GET path=/users/itzzenxx/collections/featured format=json controller=ActivityPub::CollectionsController action=show status=500 error='ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR:  column statuses.local_only does not exist
Mar 09 19:37:17 plus.st bundle[298641]: LINE 1: ... IS NULL AND "status_pins"."account_id" = $1 AND ("statuses"...
Mar 09 19:37:17 plus.st bundle[298641]:                                                              ^
Mar 09 19:37:17 plus.st bundle[298641]: ' duration=6.68 view=0.00 db=0.67 key=https://vibewave.space/internal/fetch#main-key
Mar 09 19:37:17 plus.st bundle[298641]: [23ab5751-a917-4b42-97d2-235b472a12f4]
Mar 09 19:37:17 plus.st bundle[298641]: [23ab5751-a917-4b42-97d2-235b472a12f4] ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR:  column statuses.local_only does not exist
Mar 09 19:37:17 plus.st bundle[298641]: LINE 1: ... IS NULL AND "status_pins"."account_id" = $1 AND ("statuses"...
Mar 09 19:37:17 plus.st bundle[298641]:                                                              ^
Mar 09 19:37:17 plus.st bundle[298641]: ):

Specifications

Mastodon 4.1.0 Ruby 3.2.1 Node.js 19.7.0

ClearlyClaire commented 1 year ago

It seems you may not have run bundle exec rails db:migrate, it errorred out, or you forgot to restart the services afterwards.

itzzengay commented 1 year ago

I did run that command, ran it again just to make sure and gave no output. The issue persists even after I restart the services.

ClearlyClaire commented 1 year ago

Are you using docker or something like that? Is your installation perhaps split into multiple servers? If so, are you sure the glitch-soc code is checked out where you ran bundle exec rails db:migrate? The columns that are reported as not existing should definitely be added by glitch-soc migrations.

itzzengay commented 1 year ago

I'm not using docker, nor is this installation split into multiple servers. I did make sure to run git checkout glitch-soc/main before running the other commands for the migration.

ClearlyClaire commented 1 year ago

What happens if you do RAILS_LOG_LEVEL=debug bundle exec rails db:migrate:up VERSION=20171210213213?

itzzengay commented 1 year ago

Here is the output:

[mastodon@plus live]$ RAILS_LOG_LEVEL=debug bundle exec rails db:migrate:up VERSION=20171210213213
   (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
   (0.1ms)  SELECT pg_try_advisory_lock(78736240045650285)
   (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
  ActiveRecord::InternalMetadata Load (0.2ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2  [["key", "environment"], ["LIMIT", 1]]
   (0.2ms)  SELECT pg_advisory_unlock(78736240045650285)
ClearlyClaire commented 1 year ago

It seems like it behaves as if the migrations had been run, without actually running it… not sure in which situation it would do that. Have you previously tried running glitch-soc or another fork?

itzzengay commented 1 year ago

I have tried to migrate to glitch-soc before, but with the same issues, so I migrated back to upstream mastodon before I decided to try again a few days later.

ClearlyClaire commented 1 year ago

Alright. What happens if you do bundle exec rails db:migrate:down VERSION=20171210213213?

itzzengay commented 1 year ago

Here is the output:

[mastodon@plus live]$ bundle exec rails db:migrate:down VERSION=20171210213213
Migrating to AddLocalOnlyFlagToStatuses (20171210213213)
== 20171210213213 AddLocalOnlyFlagToStatuses: reverting =======================
[strong_migrations] DANGER: No lock timeout set
-- remove_column(:statuses, :local_only, :boolean)
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::UndefinedColumn: ERROR:  column "local_only" of relation "statuses" does not exist
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:49:in `exec'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:49:in `block (2 levels) in execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block in execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:696:in `block (2 levels) in log'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:695:in `block in log'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:687:in `log'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:654:in `remove_column'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:929:in `block in method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:897:in `block in say_with_time'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:897:in `say_with_time'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:918:in `method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/migration.rb:13:in `block in method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/checker.rb:339:in `perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/migration.rb:12:in `method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration/command_recorder.rb:126:in `block in replay'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration/command_recorder.rb:125:in `each'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration/command_recorder.rb:125:in `replay'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:741:in `revert'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:865:in `exec_migration'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:851:in `block (2 levels) in migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:850:in `block in migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in `with_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:849:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/migration.rb:5:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy/railtie.rb:28:in `block in migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy/strategy.rb:59:in `wrap'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy.rb:154:in `strategy'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy/railtie.rb:28:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1037:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1329:in `block in execute_migration_in_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1380:in `block in ddl_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/transactions.rb:209:in `transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1380:in `ddl_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1328:in `execute_migration_in_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1290:in `run_without_lock'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1243:in `block in run'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1401:in `block in with_advisory_lock'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1416:in `block in with_advisory_lock_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in `with_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1416:in `with_advisory_lock_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1397:in `with_advisory_lock'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1243:in `run'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1100:in `run'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/railties/databases.rake:214:in `block (3 levels) in <top (required)>'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/command.rb:50:in `invoke'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands.rb:18:in `<top (required)>'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'

Caused by:
ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR:  column "local_only" of relation "statuses" does not exist
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:49:in `exec'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:49:in `block (2 levels) in execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block in execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:696:in `block (2 levels) in log'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:695:in `block in log'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:687:in `log'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:654:in `remove_column'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:929:in `block in method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:897:in `block in say_with_time'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:897:in `say_with_time'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:918:in `method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/migration.rb:13:in `block in method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/checker.rb:339:in `perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/migration.rb:12:in `method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration/command_recorder.rb:126:in `block in replay'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration/command_recorder.rb:125:in `each'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration/command_recorder.rb:125:in `replay'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:741:in `revert'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:865:in `exec_migration'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:851:in `block (2 levels) in migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:850:in `block in migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in `with_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:849:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/migration.rb:5:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy/railtie.rb:28:in `block in migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy/strategy.rb:59:in `wrap'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy.rb:154:in `strategy'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy/railtie.rb:28:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1037:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1329:in `block in execute_migration_in_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1380:in `block in ddl_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/transactions.rb:209:in `transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1380:in `ddl_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1328:in `execute_migration_in_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1290:in `run_without_lock'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1243:in `block in run'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1401:in `block in with_advisory_lock'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1416:in `block in with_advisory_lock_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in `with_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1416:in `with_advisory_lock_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1397:in `with_advisory_lock'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1243:in `run'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1100:in `run'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/railties/databases.rake:214:in `block (3 levels) in <top (required)>'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/command.rb:50:in `invoke'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands.rb:18:in `<top (required)>'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'

Caused by:
PG::UndefinedColumn: ERROR:  column "local_only" of relation "statuses" does not exist
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:49:in `exec'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:49:in `block (2 levels) in execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block in execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:696:in `block (2 levels) in log'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:695:in `block in log'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:687:in `log'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:654:in `remove_column'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:929:in `block in method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:897:in `block in say_with_time'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:897:in `say_with_time'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:918:in `method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/migration.rb:13:in `block in method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/checker.rb:339:in `perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/migration.rb:12:in `method_missing'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration/command_recorder.rb:126:in `block in replay'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration/command_recorder.rb:125:in `each'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration/command_recorder.rb:125:in `replay'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:741:in `revert'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:865:in `exec_migration'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:851:in `block (2 levels) in migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:850:in `block in migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in `with_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:849:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/strong_migrations-0.7.9/lib/strong_migrations/migration.rb:5:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy/railtie.rb:28:in `block in migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy/strategy.rb:59:in `wrap'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy.rb:154:in `strategy'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/chewy-7.2.7/lib/chewy/railtie.rb:28:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1037:in `migrate'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1329:in `block in execute_migration_in_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1380:in `block in ddl_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activesupport-6.1.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/transactions.rb:209:in `transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1380:in `ddl_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1328:in `execute_migration_in_transaction'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1290:in `run_without_lock'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1243:in `block in run'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1401:in `block in with_advisory_lock'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1416:in `block in with_advisory_lock_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in `with_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1416:in `with_advisory_lock_connection'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1397:in `with_advisory_lock'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1243:in `run'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/migration.rb:1100:in `run'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/railties/databases.rake:214:in `block (3 levels) in <top (required)>'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/command.rb:50:in `invoke'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-6.1.7.2/lib/rails/commands.rb:18:in `<top (required)>'
/opt/mastodon/live/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
Tasks: TOP => db:migrate:down
(See full trace by running task with --trace)
ClearlyClaire commented 1 year ago

oh, this is really annoying… wait a moment, I'm trying to come up with something to make Rails run the glitch-soc migrations it is pretending to have run…

ClearlyClaire commented 1 year ago

Can you run ActiveRecord::SchemaMigration.where(version: ['20171210213213', '20190512200918', '20220209175231']).delete_all in a Rails console (bundle exec rails c) and try bundle exec rails db:migrate again?

itzzengay commented 1 year ago

Here is the output:

[mastodon@plus live]$ bundle exec rails c
Chewy console strategy is `urgent`
Loading production environment (Rails 6.1.7.2)
irb(main):001:0> ActiveRecord::SchemaMigration.where(version: ['20171210213213', '201905122009
18', '20220209175231']).delete_all
=> 3
irb(main):002:0>
[mastodon@plus live]$ bundle exec rails db:migrate
Migrating to AddLocalOnlyFlagToStatuses (20171210213213)
== 20171210213213 AddLocalOnlyFlagToStatuses: migrating =======================
[strong_migrations] DANGER: No lock timeout set
-- add_column(:statuses, :local_only, :boolean)
   -> 0.0011s
== 20171210213213 AddLocalOnlyFlagToStatuses: migrated (0.0016s) ==============

Migrating to AddContentTypeToStatuses (20190512200918)
== 20190512200918 AddContentTypeToStatuses: migrating =========================
[strong_migrations] DANGER: No lock timeout set
-- add_column(:statuses, :content_type, :string)
   -> 0.0006s
== 20190512200918 AddContentTypeToStatuses: migrated (0.0010s) ================

Migrating to AddContentTypeToStatusEdits (20220209175231)
== 20220209175231 AddContentTypeToStatusEdits: migrating ======================
[strong_migrations] DANGER: No lock timeout set
-- add_column(:status_edits, :content_type, :string)
   -> 0.0007s
== 20220209175231 AddContentTypeToStatusEdits: migrated (0.0009s) =============

[mastodon@plus live]$
ClearlyClaire commented 1 year ago

That seems much better! Does restarting the services work, now?

itzzengay commented 1 year ago

Yes! Things seem to be working well now. Thank you so much!

ClearlyClaire commented 1 year ago

You're welcome. I wonder why Rails considered those migrations as done, though, I'll need to investigate that.