mastodon 2.8.4 → 2.9.0

***************************************************
* mastodon 指定タグ取得(2,8.4 → 2.9.0)
* mastodon user
***************************************************
cd /home/mastodon/live
git describe –tags # v2.8.4
git fetch
git stash
git checkout v2.9.0

***************************************************
* mastodon アップグレード(2.9.0)
* mastodon user
* アップデート前に熟読すること!!
* https://github.com/tootsuite/mastodon/releases
***************************************************
gem update –system
bundle install && yarn install
RAILS_ENV=production bundle exec rails db:migrate
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 次のエラーが起きた場合はDBサーバを再起動後に再度実行
+
+ # systemctl restart postgresql-11.service
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+WARNING: you don’t own a lock of type ExclusiveLock
+rails aborted!
+ActiveRecord::ConcurrentMigrationError:
+
+Failed to release advisory lock
+
+gems/activerecord-5.2.3/lib/active_record/migration.rb:1366:in `with_advisory_lock’
+gems/activerecord-5.2.3/lib/active_record/migration.rb:1210:in `migrate’
+gems/chewy-5.0.0/lib/chewy/railtie.rb:37:in `block in migrate’
+gems/chewy-5.0.0/lib/chewy/strategy.rb:70:in `wrap’
+gems/chewy-5.0.0/lib/chewy.rb:201:in `strategy’
+gems/chewy-5.0.0/lib/chewy/railtie.rb:37:in `migrate’
+gems/activerecord-5.2.3/lib/active_record/migration.rb:1036:in `up’
+gems/activerecord-5.2.3/lib/active_record/migration.rb:1011:in `migrate’
+gems/activerecord-5.2.3/lib/active_record/tasks/database_tasks.rb:172:in `migrate’
+gems/strong_migrations-0.4.0/lib/strong_migrations/database_tasks.rb:4:in `migrate’
+gems/activerecord-5.2.3/lib/active_record/railties/databases.rake:60:in `block (2 levels) in
+gems/railties-5.2.3/lib/rails/commands/rake/rake_command.rb:23:in `block in perform’
+gems/railties-5.2.3/lib/rails/commands/rake/rake_command.rb:20:in `perform’
+gems/railties-5.2.3/lib/rails/command.rb:48:in `invoke’
+gems/railties-5.2.3/lib/rails/commands.rb:18:in `

+gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require’
+gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi’
+gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register’
+gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi’
+gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require’
+gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require’
+gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency’
+gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require’
+
+bin/rails:4:in `


+Tasks: TOP => db:migrate
+(See full trace by running task with –trace)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

RAILS_ENV=production bundle exec rails assets:precompile

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\ mastodon 再起動
\ root
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
systemctl start mastodon-{web,sidekiq,streaming} redis nginx

***************************************************
* mastodon キャッシュノクリア
* mastodon user
***************************************************
RAILS_ENV=production bin/tootctl cache clear

コメントする

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください