External storage (s3) error #12833

Closed
opened 2025-11-02 10:22:23 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @TristanWasTaken on GitHub (Apr 12, 2024).

Description

I'm using the internal docker hostname as domain in the gitea config (in this case minio-node-1, see log gist for my app.ini config)
which throws the error

Endpoint: does not follow ip address or domain name standards

The fix from #27171 (message) (which is the same issue, but was closed without the main issue ever being fixed) of removing sub-sections of storage worked for me.

On a fresh install of Gitea 1.20.0, removing those other sections (attachement, lfs, picture, storage.package) worked.

It should either 1. be documented or fixed by either 2. not validating the domain and/or only check if it resolves or 3. throw a specific error that the sections have to be removed

Gitea Version

1.21.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/TristanWasTaken/4ba82356a03645af1ebc888772a1f2fa

Screenshots

No response

Git Version

No response

Operating System

Docker

How are you running Gitea?

docker gitea/gitea:1.21.3

Database

None

Originally created by @TristanWasTaken on GitHub (Apr 12, 2024). ### Description I'm using the internal docker hostname as domain in the gitea config (in this case `minio-node-1`, see log gist for my app.ini config) which throws the error > Endpoint: does not follow ip address or domain name standards The fix from #27171 ([message](https://github.com/go-gitea/gitea/issues/27171#issuecomment-1744936046)) (which is the same issue, but was closed without the main issue ever being fixed) of removing sub-sections of `storage` worked for me. > On a fresh install of Gitea 1.20.0, removing those other sections (attachement, lfs, picture, storage.package) worked. It should either 1. be documented or fixed by either 2. not validating the domain and/or only check if it resolves or 3. throw a specific error that the sections have to be removed ### Gitea Version 1.21.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist https://gist.github.com/TristanWasTaken/4ba82356a03645af1ebc888772a1f2fa ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Docker ### How are you running Gitea? docker `gitea/gitea:1.21.3` ### Database None
GiteaMirror added the type/docs label 2025-11-02 10:22:23 -06:00
Author
Owner

@yp05327 commented on GitHub (Apr 12, 2024):

I think this is caused by #26441
When the section is [name] only the settings in this section has effect.

@yp05327 commented on GitHub (Apr 12, 2024): I think this is caused by #26441 When the section is `[name]` only the settings in this section has effect.
Author
Owner

@lunny commented on GitHub (Apr 12, 2024):

Please remove all STORAGE_TYPE = minio from sections except [storage] and try again.

@lunny commented on GitHub (Apr 12, 2024): Please remove all STORAGE_TYPE = minio from sections except [storage] and try again.
Author
Owner

@TristanWasTaken commented on GitHub (Apr 12, 2024):

Please remove all STORAGE_TYPE = minio from sections except [storage] and try again.

works
-> config gist
-> log gist

@TristanWasTaken commented on GitHub (Apr 12, 2024): > Please remove all STORAGE_TYPE = minio from sections except [storage] and try again. works -> [config gist](https://gist.github.com/TristanWasTaken/4ba82356a03645af1ebc888772a1f2fa#file-storage_type_removed-ini) -> [log gist](https://gist.github.com/TristanWasTaken/4ba82356a03645af1ebc888772a1f2fa#file-storage_type_removed-log)
Author
Owner

@yp05327 commented on GitHub (Apr 12, 2024):

maybe we need update docs or more descriptions in app.example.ini

@yp05327 commented on GitHub (Apr 12, 2024): maybe we need update docs or more descriptions in app.example.ini
Author
Owner

@GiteaBot commented on GitHub (May 15, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (May 15, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Author
Owner

@TristanWasTaken commented on GitHub (May 15, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@lunny -> https://github.com/go-gitea/gitea/issues/30441#issuecomment-2052002049

@TristanWasTaken commented on GitHub (May 15, 2024): > We close issues that need feedback from the author if there were no new comments for a month. 🍵 @lunny -> https://github.com/go-gitea/gitea/issues/30441#issuecomment-2052002049
Author
Owner

@lunny commented on GitHub (Aug 2, 2024):

Closed by https://gitea.com/gitea/docs/pulls/44

@lunny commented on GitHub (Aug 2, 2024): Closed by https://gitea.com/gitea/docs/pulls/44
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12833