-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Error migrating repo-avatars to minio #28728
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
I looked around to see what is different between user avatars and repo avatars. One difference is that the The
So there are empty avatar strings in the repository table but not the user table. I think this may explain why I was able to migrate storage for user avatars, but not repository avatars. I think maybe the code is looking for non-NULL avatars, then concatenating the strings |
|
Hmm... are you sure? I think this |
Backport #28830 by @lunny Fix #28728 Co-authored-by: Lunny Xiao <[email protected]>
Automatically locked because of our CONTRIBUTING guidelines |
Backport go-gitea#28830 by @lunny Fix go-gitea#28728 Co-authored-by: Lunny Xiao <[email protected]> (cherry picked from commit cf9a416)
Description
I am testing the process of moving from local storage to AWS S3. I did this on a test machine:
This mostly worked. I am ignoring the "unsupported storage" errors for things that do not support minio... that's fair.
The problem is
repo-avatars
. Normal avatars migrated fine (and so did attachments and lfs), but repo-avatars gave me this error:Yes, it's a directory, but that shouldn't be a problem. Right?
Config:
The error message refers to the current storage path on the local disk, so here's what those folders look like:
Gitea Version
1.21.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/Infinoid/7bd96c126ad1245b013940de6fac118d
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
using official docker image with tag
1.21
Database
SQLite
The text was updated successfully, but these errors were encountered: