Hi all!
I’m seeing an unsupported storage error when trying to migrate my gitea data from local to minio. Please find the output below. Does anyone have an idea where I’m going wrong?
Thanks!
❯ sudo -E -u gitea gitea -c /local-storage/gitea/custom/conf/app.ini migrate-storage -s minio --minio-endpoint minio.omitted-domain.com --minio-access-key-id $AWS_ACCESS_KEY_ID --minio-secret-access-key $AWS_SECRET_ACCESS_KEY --minio-bucket gitea --minio-use-ssl true --minio-checksum-algorithm CRC64NVME --minio-bucket-lookup-type auto -t attachments -t lfs -t avatars -t repo-avatars -t repo-archivers -t packages -t actions-log -t actions-artifacts
2025/05/31 17:18:42 ...d/migrate_storage.go:224:runMigrateStorage() [I] AppPath: /nix/store/vd09v0r640jips9b5bwlgabs52hs6pvf-gitea-1.23.8/bin/gitea
2025/05/31 17:18:42 ...d/migrate_storage.go:225:runMigrateStorage() [I] AppWorkPath: /local-storage/gitea
2025/05/31 17:18:42 ...d/migrate_storage.go:226:runMigrateStorage() [I] Custom path: /local-storage/gitea/custom
2025/05/31 17:18:42 ...d/migrate_storage.go:227:runMigrateStorage() [I] Log path: /local-storage/gitea/log
2025/05/31 17:18:42 ...d/migrate_storage.go:228:runMigrateStorage() [I] Configuration file: /local-storage/gitea/custom/conf/app.ini
2025/05/31 17:18:42 ...2@v2.27.5/command.go:269:Run() [I] PING DATABASE postgres
2025/05/31 17:18:43 ...2@v2.27.5/command.go:269:Run() [W] Table oauth2_application Column confidential_client db default is true, struct default is TRUE
2025/05/31 17:18:43 ...2@v2.27.5/command.go:269:Run() [W] Table oauth2_application Column skip_secondary_authorization db default is false, struct default is FALSE
2025/05/31 17:18:43 ...2@v2.27.5/command.go:269:Run() [W] Table system_setting Column version db default is , struct default is 1
2025/05/31 17:18:43 ...2@v2.27.5/command.go:269:Run() [W] Table user Column max_repo_creation db default is '-1', struct default is -1
2025/05/31 17:18:44 ...2@v2.27.5/command.go:269:Run() [W] Table label Column archived_unix db default is , struct default is NULL
2025/05/31 17:18:44 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: local
2025/05/31 17:18:44 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /local-storage/gitea/data/attachments
2025/05/31 17:18:44 ...s/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: local
2025/05/31 17:18:44 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /local-storage/gitea/data/avatars
2025/05/31 17:18:44 ...s/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: local
2025/05/31 17:18:44 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /local-storage/gitea/data/repo-avatars
2025/05/31 17:18:44 ...s/storage/storage.go:186:initLFS() [I] Initialising LFS storage with type: local
2025/05/31 17:18:44 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /local-storage/gitea/data/lfs
2025/05/31 17:18:44 ...s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local
2025/05/31 17:18:44 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /local-storage/gitea/data/repo-archive
2025/05/31 17:18:44 ...s/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: local
2025/05/31 17:18:44 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /local-storage/gitea/data/packages
2025/05/31 17:18:44 ...s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local
2025/05/31 17:18:44 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /local-storage/gitea/data/actions_log
2025/05/31 17:18:44 ...s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local
2025/05/31 17:18:44 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /local-storage/gitea/data/actions_artifacts
2025/05/31 17:18:44 ...les/storage/minio.go:86:NewMinioStorage() [I] Creating Minio storage at minio.omitted-domain.com:gitea with base path
Command error: unsupported storage:
Oh and covering basic debugging for minio, I’ve already validated that the access key is functional and the policies which are being used are copied from another bucket being used for a different server which are working.