-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Error downloading release files after upgrade to 1.20.3 (HTTP code 500) #26864
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
Comments
Could you post the configuration information for the |
Thanks for the quick response @CaiCandong
|
|
@techknowlogick Changing to absolute path seems to fix the variable as seen in startup logs:
Older release files can now be downloaded, but newer releases fail (these seem to be stored in
|
You can move over manually first, which will allow your service to be available. I'm still locating this bug. @mppha |
fyi, all our releases are now available after setting the config to |
@mppha glad to hear. |
I asked @lunny about this, and he said that the path is relative to the AppDataPath, so maybe we should update the config docs and |
This change was caused by #26271. Although I do not understand the code about it now, it is clear that it does that to fix a bug. But it is breaking change.
|
Yes, this was a break change. |
This change was caused by #26271, for configuration as below: ``` [attachment] ENABLE = true PATH = data/attachments MAX_SIZE = 100 MAX_FILES = 5 ``` Before #26271, the resolved path is ${AppWorkPath}/${attachments.PATH} (such as `/var/lib/gitea/data/attachments`) After #26271, the resolved path is ${AppDataPath}/${attachments.PATH} (such as `/var/lib/gitea/data/data/attachments`) Fix #26864 Follow #26271
This change was caused by go-gitea#26271, for configuration as below: ``` [attachment] ENABLE = true PATH = data/attachments MAX_SIZE = 100 MAX_FILES = 5 ``` Before go-gitea#26271, the resolved path is ${AppWorkPath}/${attachments.PATH} (such as `/var/lib/gitea/data/attachments`) After go-gitea#26271, the resolved path is ${AppDataPath}/${attachments.PATH} (such as `/var/lib/gitea/data/data/attachments`) Fix go-gitea#26864 Follow go-gitea#26271
Backport #26883 This change was caused by #26271, for configuration as below: ``` [attachment] ENABLE = true PATH = data/attachments MAX_SIZE = 100 MAX_FILES = 5 ``` Before #26271, the resolved path is ${AppWorkPath}/${attachments.PATH} (such as `/var/lib/gitea/data/attachments`) After #26271, the resolved path is ${AppDataPath}/${attachments.PATH} (such as `/var/lib/gitea/data/data/attachments`) Fix #26864 Follow #26271
Description
After upgrading 1.19.0 -> 1.20.3, the following error is shown when trying to download a release file:
Looking at the startup logs it seems that the attachments path is different despite using the same configuration.
Before upgrade:
After upgrade:
Gitea Version
1.20.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Prebuilt binary (https://dl.gitea.com/gitea/1.20.3/gitea-1.20.3-linux-amd64) on RHEL8.8 with systemd.
Service file based on https://github.com/go-gitea/gitea/blob/main/contrib/systemd/gitea.service
Database
None
The text was updated successfully, but these errors were encountered: