Skip to content

2.3.0

Compare
Choose a tag to compare
@fs5m8 fs5m8 released this 04 Jan 01:37
· 1284 commits to develop since this release
0220701

To Update

以下を実施してください

  • Areionskey 再起動

docker-compose.yml の PostgreSQL デフォルトバージョンを 11.2 から 15.x に,Redis デフォルトバージョンを 4.0.x から 6.2.x に変更しました.付属の docker-compose.yml で直接実行している場合は,環境に合わせて 書き換え または アップデートを実施してください.

✨Improvements

🐛Fixes

  • desktop/crop: ボタン類のフォーマットを他のウインドウと統一するように変更 by @fs5m8 67a1a4e 67a1a4e
  • 参照置換 api/admin/show-user -> api/users/show by @fs5m8 dbbe3f6
  • avatar/cat: ネコミミをアバター画像の平均色となるように変更 by @fs5m8 cd97f08
  • autocomplete: 画像を中央揃えに変更 by @fs5m8 8be6e0d
  • report: admin を通報可能に変更 by @atsu1125 85e5ff8
  • note: リアクション数合計をタイムラインではなく 当該の投稿の詳細画面に表示するように変更 by @fs5m8 5965173
  • explore: 検索結果に「もっと表示」を表示しないように変更 by @fs5m8 73905c7
  • desktop/header: サインアウト時はゲームを表示しないよう変更 by @fs5m8 8082e1d
  • mobile/emoji-picker: 出現する位置を調整 by @fs5m8 0e0dec7
  • CSS: backdrop-filter を削除 by @fs5m8 a6f9120
  • admin: moderator の権限の変更と,合わせて frontend の調整 by @atsu1125 6fb511d 3ca49f3 4a9c814 77751a0
  • その他 overflow, transparency などの調整
  • 言語ファイルの更新
  • 依存関係,ワークフローファイル,テストファイルの更新

How to upgrade PostgreSQL on Docker

Part 1 - Backup DB from PostgreSQL 11.2

# Shutdown app containers (keeping db online)
$ docker-compose stop web

# Create backup of areionskey db to local file
$ docker-compose exec db pg_dumpall -U example-misskey-user > ~/11.2.backup

# Shutdown db container
$ docker-compose down --remove-orphans

# Move Old db volume
$ sudo mv db ~/11.2db

Part 2 - Import DB to PostgreSQL 15

# Checkout for Areionskey 
$ git fetch && VERSION=$(curl -s https://api.github.com/repos/sakura-tel/areionskey/releases/latest | grep tag_name | cut -d '"' -f 4) && echo "Latest Areionskey version is $VERSION" && git checkout ${VERSION}

# Boot the new DB - PostgreSQL 15
$ docker-compose up -d db

# Import the backup
$ cat ~/11.2.backup | docker-compose exec -T db psql -U example-misskey-user -d misskey

Part 3 - Confirm import of DB has no serious errors

$ docker-compose logs db and confirm there are not any errors in the import stage. Below is a list of known errors, and their resolution.

Error 1

db_1 | ERROR: invalid input syntax for type <something>

These errors are bad and need to be investigated.

Running vacuumdb has apparently resolved these issues. Please read the optional command as an alternative to step 1.

Error 2

db_1 | LOG:  checkpoints are occurring too frequently (20 seconds apart)
db_1 | HINT:  Consider increasing the configuration parameter "max_wal_size".

These errors can be ignored.

Part 4 - Upgrade Areionskey

  • Follow standard Upgrade notes.

Alternative Step 1 - Vacuum DB before backup

# Shutdown app containers (keeping db online)
$ docker-compose stop web

# Vacuum your db (untested command)
## Note: If you believe your 11.2 DB might be corrupted or experience errors with the importing stage, 
$ docker-compose exec db pg_dumpall -U example-misskey-user > ~/11.2.novacuum.backup
$ docker-compose exec db vacuumdb -U example-misskey-user --all --full --analyze --verbose 
$ docker-compose exec db pg_dumpall -U example-misskey-user > ~/11.2.backup

# Shutdown db container
$ docker-compose down --remove-orphans