Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to gitea/gitea:1.20 #1

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Update to gitea/gitea:1.20 #1

merged 1 commit into from
Jul 20, 2023

Conversation

aoirint
Copy link
Owner

@aoirint aoirint commented Jul 20, 2023

Gitea 1.19のインスタンスを1.20に更新すると、以下のようなエラーが出て起動しません。

>...g/config_provider.go:327:deprecatedSettingFatal() [F] Deprecated fallback `[server]` `LFS_CONTENT_PATH` present. Use `[lfs]` `PATH` instead. This fallback will be/has been removed in v1.19.0
> Received signal 15; terminating.

/data/gitea/conf/app.iniに破壊的変更があり、以下のように書き換える必要があります。

変更前

[server]
LFS_CONTENT_PATH = /data/git/lfs

変更後

[lfs]
PATH = /data/git/lfs

LFS関連の設定はほかに、LFS_START_SERVERLFS_JWT_SECRETなどがありますが、[lfs]に移動されたのはLFS_CONTENT_PATH だけのようです。

このエラーは、以下のdeprecatedSettingFatal(rootCfg, "server", "LFS_CONTENT_PATH", "lfs", "PATH", "v1.19.0")で発生しており、

以下のPRで、起動時にLFS storageを正常に初期化するために、log.Fatalを呼び出すdeprecatedSettingFatalとともに実装されました。

@aoirint aoirint merged commit 1fb19ff into main Jul 20, 2023
@aoirint aoirint deleted the patch-gitea-1.20 branch July 20, 2023 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant