Skip to content
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

Repository archive settings does not support custom storage #21899

Closed
KoltesDigital opened this issue Nov 22, 2022 · 2 comments
Closed

Repository archive settings does not support custom storage #21899

KoltesDigital opened this issue Nov 22, 2022 · 2 comments
Labels
issue/duplicate The issue has already been reported.

Comments

@KoltesDigital
Copy link

Description

I configured a custom s3 storage and used it for lfs etc. and this is working. I discovered yesterday a new storage.repo-archive settings section, but now the custom storage can't be used.

app.ini extract

[lfs]
STORAGE_TYPE = s3

[storage.repo-archive]
STORAGE_TYPE = s3

[storage.s3]
STORAGE_TYPE            = minio
SERVE_DIRECT            = false
MINIO_ACCESS_KEY_ID     = ...
...

docker logs

2022/11/22 09:57:50 cmd/web.go:106:runWeb() [I] Starting Gitea on PID: 18
2022/11/22 09:57:50 cmd/web.go:157:runWeb() [I] Global init
2022/11/22 09:57:50 routers/init.go:104:GlobalInitInstalled() [I] Git Version: 2.36.2, Wire Protocol Version 2 Enabled (home: /app/gitea/data/home)
2022/11/22 09:57:50 routers/init.go:107:GlobalInitInstalled() [I] AppPath: /usr/local/bin/gitea
2022/11/22 09:57:50 routers/init.go:108:GlobalInitInstalled() [I] AppWorkPath: /app/gitea
2022/11/22 09:57:50 routers/init.go:109:GlobalInitInstalled() [I] Custom path: /data/gitea
2022/11/22 09:57:50 routers/init.go:110:GlobalInitInstalled() [I] Log path: /app/gitea/log
2022/11/22 09:57:50 routers/init.go:111:GlobalInitInstalled() [I] Configuration file: /data/gitea/conf/app.ini
2022/11/22 09:57:50 routers/init.go:112:GlobalInitInstalled() [I] Run Mode: Prod
2022/11/22 09:57:50 ...dules/setting/log.go:288:newLogService() [I] Gitea v1.17.3 built with GNU Make 4.3, go1.18.7 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2022/11/22 09:57:50 ...dules/setting/log.go:335:newLogService() [I] Gitea Log Mode: Console(Console:info)
2022/11/22 09:57:50 ...dules/setting/log.go:249:generateNamedLogger() [I] Router Log: Console(console:info)
2022/11/22 09:57:50 ...les/setting/cache.go:76:newCacheService() [I] Cache Service Enabled
2022/11/22 09:57:50 ...les/setting/cache.go:91:newCacheService() [I] Last Commit Cache Service Enabled
2022/11/22 09:57:50 ...s/setting/session.go:73:newSessionService() [I] Session Service Enabled
2022/11/22 09:57:50 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: minio
2022/11/22 09:57:50 ...les/storage/minio.go:91:NewMinioStorage() [I] Creating Minio storage at XYZ with base path attachments/
2022/11/22 09:57:51 ...s/storage/storage.go:170:initAvatars() [I] Initialising Avatar storage with type: minio
2022/11/22 09:57:51 ...les/storage/minio.go:91:NewMinioStorage() [I] Creating Minio storage at XYZ with base path avatars/
2022/11/22 09:57:51 ...s/storage/storage.go:188:initRepoAvatars() [I] Initialising Repository Avatar storage with type: minio
2022/11/22 09:57:51 ...les/storage/minio.go:91:NewMinioStorage() [I] Creating Minio storage at XYZ with base path repo-avatars/
2022/11/22 09:57:53 ...s/storage/storage.go:182:initLFS() [I] Initialising LFS storage with type: minio
2022/11/22 09:57:53 ...les/storage/minio.go:91:NewMinioStorage() [I] Creating Minio storage at XYZ with base path lfs/
2022/11/22 09:57:53 ...s/storage/storage.go:194:initRepoArchives() [I] Initialising Repository Archive storage with type: s3
2022/11/22 09:57:53 routers/init.go:57:mustInit() [F] code.gitea.io/gitea/modules/storage.Init failed: Unsupported storage type: s3

Gitea Version

v1.17.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?

Docker image gitea/gitea:1

Database

PostgreSQL

@lunny
Copy link
Member

lunny commented Jan 14, 2023

I will add some test and possible fix after #22405 merge.

@lunny
Copy link
Member

lunny commented Jan 14, 2023

duplicated with #20703

@lunny lunny closed this as completed Jan 14, 2023
@lunny lunny added issue/duplicate The issue has already been reported. and removed type/bug labels Jan 14, 2023
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
Development

No branches or pull requests

2 participants