-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Upgrade from 1.20.0-rc0 to 1.20.0 fails: Deprecated fallback present #25915
Comments
The error message tells you explicitly what you need to do:
So, go to your |
Got the same problem as go-gitea#25915 when updating an instance. The `log.Fatal` should have been marked as breaking in go-gitea#23911. This PR adds a notice that the system is shutting down because of the deprecated setting.
same |
If you’re just using docker without any sort of config file how would you change it? Edit: My /data directory exists on a docker volume and the image won't start due to this error, it's a pretty breaking change for users who had their configs from previous installations. |
Same issue as above in regards to updated Docker |
Just also reproduced this -- pulling the 1.20 container breaks, whereas pinning to 1.20.0-rc0 makes it work again. So something screwed up in the built container. |
Having the same issue, did this to app.ini solved it: Old app.ini:
New app.ini:
|
what a weird change |
That fix does not work if you use the default container with no custom app.ini. |
Working after deprecated configuration update. |
So for anyone else who runs into this, my solution was to just remove LFS_CONTENT_PATH. Creating a [lfs] ini header and a PATH variable doesn't resolve the problem. It will still fail because of the deprecated LFS_CONTENT_PATH, despite the alternative existing. So I ended up just removing the LFS_CONTENT_PATH line from the [server] section and was able to pull/run 1.20.0 successfully. |
The cause and the solution is clear, but the container image just isn't up-to-date ;-) |
Yes. This warning is explicitly meant to notify admins that such config options no longer have any effect. After all, there are three ways to handle breaking config changes (that I see as viable):
Gitea currently chooses option Regarding the Docker users: |
That’s my exact scenario, my docker-compose has no app.ini supplied and the /data directory is just set to a docker volume. |
What config option is breaking the docker container exactly? |
Was able to update by rolling back to version 1.20.0-rc0 to be able to boot up the docker, then console in to edit the app.ini and added the [lfs] section and moving the PATH there while removing it from the [server] section. Now I am able to update and use the current docker image. [lfs] [server] |
You can edit the files in the volume even if the container is not running. |
Does |
yes
|
The setting is there for containers that have been created before the setting was removed. I finally found |
changing app.ini didn't help. going back to 1.18.0 did :( |
Why not? |
… file (#26094) (#26154) backport #26094 Temporily resolve #25915 Related #25994 This PR includes #26007 's changes but have a UI to prompt administrator about the deprecated settings as well as the log or console warning. Then users will have enough time to notice the problem and don't have surprise like before. <img width="1293" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/c33355f0-1ea7-4fb3-ad43-cd23cd15391d">
Description
I just did a docker pull of :latest and docker-compose down/up the container and I get this. I was able to resolve by pinning it to 1.20.0-rc0 but 1.20.0-rc1 and rc2 failed as well as :latest which is currently 1.20.0.
Attaching to gitea_web
gitea_web | 2023/07/16 22:51:24 ...s/setting/setting.go:180:loadRunModeFrom() [F] Gitea is not supposed to be run a
s root. Sorry. If you need to use privileged TCP ports please instead use setcap and the
cap_net_bind_service
permissiongitea_web | Server listening on :: port 22.
gitea_web | Server listening on 0.0.0.0 port 22.
gitea_web | 2023/07/16 22:51:24 ...g/config_provider.go:327:deprecatedSettingFatal() [F] Deprecated fallback
[serv er]
LFS_CONTENT_PATH
present. Use[lfs]
PATH
instead. This fallback will be/has been removed in v1.19.0gitea_web | Received signal 15; terminating.
gitea_web | 2023/07/16 22:51:24 ...s/setting/setting.go:180:loadRunModeFrom() [F] Gitea is not supposed to be run a
s root. Sorry. If you need to use privileged TCP ports please instead use setcap and the
cap_net_bind_service
permissiongitea_web | Server listening on :: port 22.
gitea_web | Server listening on 0.0.0.0 port 22.
gitea_web | 2023/07/16 22:51:25 ...g/config_provider.go:327:deprecatedSettingFatal() [F] Deprecated fallback
[serv er]
LFS_CONTENT_PATH
present. Use[lfs]
PATH
instead. This fallback will be/has been removed in v1.19.0gitea_web | Received signal 15; terminating.
gitea_web | 2023/07/16 22:51:25 ...s/setting/setting.go:180:loadRunModeFrom() [F] Gitea is not supposed to be run a
s root. Sorry. If you need to use privileged TCP ports please instead use setcap and the
cap_net_bind_service
permissiongitea_web | Server listening on :: port 22.
gitea_web | Server listening on 0.0.0.0 port 22.
gitea_web | 2023/07/16 22:51:25 ...g/config_provider.go:327:deprecatedSettingFatal() [F] Deprecated fallback
[serv er]
LFS_CONTENT_PATH
present. Use[lfs]
PATH
instead. This fallback will be/has been removed in v1.19.0gitea_web | Received signal 15; terminating.
gitea_web | 2023/07/16 22:51:26 ...s/setting/setting.go:180:loadRunModeFrom() [F] Gitea is not supposed to be run a
s root. Sorry. If you need to use privileged TCP ports please instead use setcap and the
cap_net_bind_service
permissiongitea_web | Server listening on :: port 22.
gitea_web | Server listening on 0.0.0.0 port 22.
gitea_web | 2023/07/16 22:51:26 ...g/config_provider.go:327:deprecatedSettingFatal() [F] Deprecated fallback
[serv er]
LFS_CONTENT_PATH
present. Use[lfs]
PATH
instead. This fallback will be/has been removed in v1.19.0gitea_web | Received signal 15; terminating.
Gitea Version
1.20.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
1.20.0
Operating System
EL8
How are you running Gitea?
docker
Database
None
The text was updated successfully, but these errors were encountered: