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

After update to version 1.20.0 Gitea refused to start #25995

Closed
veita opened this issue Jul 19, 2023 · 8 comments · Fixed by #26451
Closed

After update to version 1.20.0 Gitea refused to start #25995

veita opened this issue Jul 19, 2023 · 8 comments · Fixed by #26451
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea

Comments

@veita
Copy link

veita commented Jul 19, 2023

Description

  • Update from Gitea 1.19.4 to 1.20.0
  • Gitea deployed as a Systemd service on Debian 12

Start with systemctl start gitea fails.

The log configured in app.ini does not give any hint about the cause of the error (neither did journalctl).

Starting Gitea interactively from the terminal revealed the cause:

$ GITEA_WORK_DIR=/var/lib/gitea/ /usr/local/bin/gitea web -c /etc/gitea/app.ini
2023/07/19 19:48:36 ...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

This information should probably also be written to configured log file. Also "v1.19.0" in the error message does not seem to be correct. And it may be added to the list of breaking changes (https://github.com/go-gitea/gitea/releases/tag/v1.20.0).

Gitea Version

1.20.0

Can you reproduce the bug on the Gitea demo site?

No

How are you running Gitea?

Download from GitHub; run as a Systemd service.

Database

PostgreSQL

@why0why0why
Copy link

Try to modify app.ini from

[server]
LFS_CONTENT_PATH=xxxxx

to

[lfs]
PATH=xxxxx

@lunny lunny added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed type/bug labels Jul 20, 2023
@lunny lunny closed this as completed Jul 20, 2023
@veita
Copy link
Author

veita commented Jul 20, 2023

@lunny This bug report is about missing log entries, incorrect information and the incomplete change log, which may prevent people from finding the configuration error easily.

This information should probably also be written to configured log file. Also "v1.19.0" in the error message does not seem to be correct. And it may be added to the list of breaking changes (https://github.com/go-gitea/gitea/releases/tag/v1.20.0).

@veita
Copy link
Author

veita commented Jul 20, 2023

@DaveRabelink
Copy link

Be aware that you have to remove or comment (using ;) the old setting.
Even when the new setting is in place, Gitea will not start if the old setting is still there.
(which is a defect IMHO as it should ignore not used settings in all cases).

@Johnson90512
Copy link

Can this also be added to the upgrade documentation? I just ran into this issue while upgrading and took a lot of searching to find this post.

@jme147
Copy link

jme147 commented Aug 10, 2023

@jme147
Copy link

jme147 commented Aug 10, 2023

I tried to create a pull request to update the installation/upgrade instructions, but couldn't create a request due to not being a collaborator. Can someone add the above file to a pull request?

@lunny
Copy link
Member

lunny commented Aug 11, 2023

Can this also be added to the upgrade documentation? I just ran into this issue while upgrading and took a lot of searching to find this post.

Reasonable. I think we can add a step for upgrade which is check your admin panel top bar. Some deprecated configurations will be displayed there, if you couldn't resolve them, Gitea may cannot started after upgrade. I will create a PR for that.

lunny added a commit that referenced this issue Aug 11, 2023
…ions (#26451)

fix
#25995 (comment)

---------

Co-authored-by: silverwind <me@silverwind.io>
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Aug 11, 2023
silverwind added a commit that referenced this issue Aug 11, 2023
…ions (#26451) (#26452)

Backport #26451 by @lunny

fix
#25995 (comment)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants