Skip to content

Commit

Permalink
Fix: [Installer] インストーラーが「データベースをアップグレードしています…」でフリーズする問題を修正
Browse files Browse the repository at this point in the history
Aerich を 0.6.3 から更新した結果、なんらかの相互作用?で SQLite データベースが閉じられずに無限にロックしてしまっているのが原因だが、結構前のバージョンから起動時に自動で DB マイグレーションを実行するようにしてあるので、単に当該処理を削除することで対応した
ref: tortoise/aerich#384
  • Loading branch information
tsukumijima committed Feb 16, 2025
1 parent 2ee9c73 commit 627e303
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions installer/Installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,17 +668,6 @@ def Installer(version: str) -> None:
if result is False:
return # 処理中断

# ***** データベースのアップグレード *****

result = RunSubprocess(
'データベースをアップグレードしています…',
[python_executable_path, '-m', 'poetry', 'run', 'aerich', 'upgrade'],
cwd = install_path / 'server/', # カレントディレクトリを KonomiTV サーバーのベースディレクトリに設定
error_message = 'データベースのアップグレード中に予期しないエラーが発生しました。'
)
if result is False:
return # 処理中断

# Linux-Docker: docker-compose.yaml を生成し、Docker イメージをビルド
elif platform_type == 'Linux-Docker':

Expand Down
11 changes: 0 additions & 11 deletions installer/Updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,17 +403,6 @@ def Updater(version: str) -> None:
if result is False:
return # 処理中断

# ***** データベースのアップグレード *****

result = RunSubprocess(
'データベースをアップグレードしています…',
[python_executable_path, '-m', 'poetry', 'run', 'aerich', 'upgrade'],
cwd = update_path / 'server/', # カレントディレクトリを KonomiTV サーバーのベースディレクトリに設定
error_message = 'データベースのアップグレード中に予期しないエラーが発生しました。'
)
if result is False:
return # 処理中断

# Linux-Docker: Docker イメージを再ビルド
elif platform_type == 'Linux-Docker':

Expand Down

0 comments on commit 627e303

Please sign in to comment.