Cannot access existing S3 bucket after upgrade from v8.3.0 to V9.0.0 #469
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Having upgraded from v8.3.0 to v9.0.0, I can no longer access the existing S3 bucket I used with v8.3.0. The bucket is in a Google cloud project. Any suggestions appreciated.
This is the storage config used:
Here is the log:
You need to remove all storage types from the sections and only leace the storage general section
UPDATE: I have realized that specifying MINIO_LOCATION is only needed when a bucket is to be created. I will remove it from my config, as my bucket exists.
Original post:
My bucket is not in the default location us-east-1. I have added this to fix it (How come it worked without in v8.3.0?):
Gitea now reports a permission problem. The credentials are the ones I successfully used in v8.3.0:
Are you suggesting that inherited config from the previous version of Gitea should be deleted?
I have only configured the general storage section as seen below.
UPDATE: Removed MINIO_LOCATION.
It looks to me like Gitea wants to re-create my existing bucket:
Even if I set STORAGE_TYPE: local, Gitea still wants to create that bucket??
Config:
Log:
On the first look this looks like an issue from Gitea upstream to me as we didn't do any changes on the
storage
section or related actions. In the endminio.go
is executed with the values provided.Assuming that you didn't yet do a successful 1.20 init + DB upgrade: does it work with the 1.19.4 image? This would proof that the chart is not the issue but that it's an upstream one.
Could you paste all your storage configurations? From v1.20, storage inherit becomes more strict.
These are the values I use with the v9.0.0 chart:
EDIT by pat-s: put into details block
I dumped my 1.20.0 database and reinstalled. Changing the Gitea version to 1.19.4 in chart 9.0.0 makes the minio storage work again:
Thus, the problem would seem to be unrelated to the chart.
I created an issue here: https://github.com/go-gitea/gitea/issues/25984
Thanks for confirming!