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

fix install 500 error #21497

Closed
wants to merge 1 commit into from

Conversation

a1012112796
Copy link
Member

@a1012112796 a1012112796 commented Oct 18, 2022

- can't get specific settings from database before
  install becaucse of no database
- should not ``db.UnsetDefaultEngine()`` in ``SubmitInstall``
  because it will be used soon.

Signed-off-by: a1012112796 <[email protected]>
@@ -385,7 +385,6 @@ func SubmitInstall(ctx *context.Context) {
ctx.RenderWithErr(ctx.Tr("install.invalid_db_setting", err), tplInstall, &form)
return
}
db.UnsetDefaultEngine()
Copy link
Member Author

@a1012112796 a1012112796 Oct 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woder why unset? is it necessary? how about move it to line 583 (before srv.Shutdown() ). thanks

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 18, 2022
@a1012112796 a1012112796 added type/bug skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Oct 18, 2022
@a1012112796 a1012112796 deleted the zzc/dev/fix_install branch October 18, 2022 11:18
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants