Skip to content

Instantly share code, notes, and snippets.

@TristanWasTaken
Last active April 12, 2024 15:39
Show Gist options
  • Save TristanWasTaken/4ba82356a03645af1ebc888772a1f2fa to your computer and use it in GitHub Desktop.
Save TristanWasTaken/4ba82356a03645af1ebc888772a1f2fa to your computer and use it in GitHub Desktop.
Gitea storage (s3) crash "Endpoint: does not follow ip address or domain name standards."
[storage]
STORAGE_TYPE = minio
MINIO_ENDPOINT = minio-node-1:9000
MINIO_ACCESS_KEY_ID = <key>
MINIO_SECRET_ACCESS_KEY = <key>
MINIO_BUCKET = git
MINIO_LOCATION = git-1
[attachment]
PATH = /data/gitea/attachments
STORAGE_TYPE = minio
[lfs]
STORAGE_TYPE = minio
[storage.repo-archive]
STORAGE_TYPE = minio
[storage.packages]
STORAGE_TYPE = minio
[storage.actions_artifacts]
STORAGE_TYPE = minio
[repo-archive]
STORAGE_TYPE = minio
2024/04/12 12:46:34 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 15
2024/04/12 12:46:34 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.3 built with GNU Make 4.4.1, go1.21.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2024/04/12 12:46:34 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
2024/04/12 12:46:34 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea
2024/04/12 12:46:34 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea
2024/04/12 12:46:34 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea
2024/04/12 12:46:34 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini
2024/04/12 12:46:34 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
2024/04/12 12:46:34 routers/init.go:112:InitWebInstalled() [I] Git version: 2.40.1, Wire Protocol Version 2 Enabled (home: /data/gitea/home)
2024/04/12 12:46:34 ...les/setting/cache.go:75:loadCacheFrom() [I] Cache Service Enabled
2024/04/12 12:46:34 ...les/setting/cache.go:90:loadCacheFrom() [I] Last Commit Cache Service Enabled
2024/04/12 12:46:34 ...s/setting/session.go:74:loadSessionFrom() [I] Session Service Enabled
2024/04/12 12:46:34 ...ules/setting/cors.go:34:loadCorsFrom() [I] CORS Service Enabled
2024/04/12 12:46:34 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: minio
2024/04/12 12:46:34 ...les/storage/minio.go:86:NewMinioStorage() [I] Creating Minio storage at : with base path attachments/
2024/04/12 12:46:34 routers/init.go:60:mustInit() [F] code.gitea.io/gitea/modules/storage.Init failed: Endpoint: does not follow ip address or domain name standards.
Received signal 15; terminating.
[storage]
# local
STORAGE_TYPE = minio
MINIO_ENDPOINT = minio-node-1:9000
MINIO_ACCESS_KEY_ID = <key>
MINIO_SECRET_ACCESS_KEY = <key>
MINIO_BUCKET = git
MINIO_LOCATION = git-1
[attachment]
[lfs]
[storage.repo-archive]
[storage.packages]
[storage.actions_artifacts]
[repo-archive]
gitea-1 | Server listening on :: port 22.
gitea-1 | Server listening on 0.0.0.0 port 22.
gitea-1 | 2024/04/12 15:36:09 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 15
gitea-1 | 2024/04/12 15:36:09 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.3 built with GNU Make 4.4.1, go1.21.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify
gitea-1 | 2024/04/12 15:36:09 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
gitea-1 | 2024/04/12 15:36:09 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea
gitea-1 | 2024/04/12 15:36:09 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea
gitea-1 | 2024/04/12 15:36:09 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea
gitea-1 | 2024/04/12 15:36:09 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini
gitea-1 | 2024/04/12 15:36:09 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
gitea-1 | 2024/04/12 15:36:09 routers/init.go:112:InitWebInstalled() [I] Git version: 2.40.1, Wire Protocol Version 2 Enabled (home: /data/gitea/home)
gitea-1 | 2024/04/12 15:36:09 ...les/setting/cache.go:75:loadCacheFrom() [I] Cache Service Enabled
gitea-1 | 2024/04/12 15:36:09 ...les/setting/cache.go:90:loadCacheFrom() [I] Last Commit Cache Service Enabled
gitea-1 | 2024/04/12 15:36:09 ...s/setting/session.go:74:loadSessionFrom() [I] Session Service Enabled
gitea-1 | 2024/04/12 15:36:09 ...ules/setting/cors.go:34:loadCorsFrom() [I] CORS Service Enabled
gitea-1 | 2024/04/12 15:36:09 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: minio
gitea-1 | 2024/04/12 15:36:09 ...les/storage/minio.go:86:NewMinioStorage() [I] Creating Minio storage at minio-node-1:9000:git with base path attachments/
gitea-1 | 2024/04/12 15:36:09 ...s/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: minio
gitea-1 | 2024/04/12 15:36:09 ...les/storage/minio.go:86:NewMinioStorage() [I] Creating Minio storage at minio-node-1:9000:git with base path avatars/
gitea-1 | 2024/04/12 15:36:09 ...s/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: minio
gitea-1 | 2024/04/12 15:36:09 ...les/storage/minio.go:86:NewMinioStorage() [I] Creating Minio storage at minio-node-1:9000:git with base path repo-avatars/
gitea-1 | 2024/04/12 15:36:09 ...s/storage/storage.go:186:initLFS() [I] Initialising LFS storage with type: minio
gitea-1 | 2024/04/12 15:36:09 ...les/storage/minio.go:86:NewMinioStorage() [I] Creating Minio storage at minio-node-1:9000:git with base path lfs/
gitea-1 | 2024/04/12 15:36:09 ...s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: minio
gitea-1 | 2024/04/12 15:36:09 ...les/storage/minio.go:86:NewMinioStorage() [I] Creating Minio storage at minio-node-1:9000:git with base path repo-archive/
gitea-1 | 2024/04/12 15:36:09 ...s/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: minio
gitea-1 | 2024/04/12 15:36:09 ...les/storage/minio.go:86:NewMinioStorage() [I] Creating Minio storage at minio-node-1:9000:git with base path packages/
gitea-1 | 2024/04/12 15:36:09 ...s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: minio
gitea-1 | 2024/04/12 15:36:09 ...les/storage/minio.go:86:NewMinioStorage() [I] Creating Minio storage at minio-node-1:9000:git with base path actions_log/
gitea-1 | 2024/04/12 15:36:09 ...s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: minio
gitea-1 | 2024/04/12 15:36:09 ...les/storage/minio.go:86:NewMinioStorage() [I] Creating Minio storage at minio-node-1:9000:git with base path actions_artifacts/
gitea-1 | 2024/04/12 15:36:09 routers/init.go:131:InitWebInstalled() [I] SQLite3 support is enabled
gitea-1 | 2024/04/12 15:36:09 routers/common/db.go:23:InitDBEngine() [I] Beginning ORM engine initialization.
gitea-1 | 2024/04/12 15:36:09 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #1/10...
gitea-1 | 2024/04/12 15:36:09 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres
gitea-1 | 2024/04/12 15:36:09 cmd/web.go:194:serveInstalled() [W] Table oauth2_application Column confidential_client db default is true, struct default is TRUE
gitea-1 | 2024/04/12 15:36:10 cmd/web.go:194:serveInstalled() [W] Table system_setting Column version db default is , struct default is 1
gitea-1 | 2024/04/12 15:36:10 cmd/web.go:194:serveInstalled() [W] Table user Column max_repo_creation db default is '-1', struct default is -1
gitea-1 | 2024/04/12 15:36:10 cmd/web.go:194:serveInstalled() [W] Table label Column archived_unix db default is , struct default is NULL
gitea-1 | 2024/04/12 15:36:10 routers/init.go:137:InitWebInstalled() [I] ORM engine initialization successful!
gitea-1 | 2024/04/12 15:36:10 ...er/issues/indexer.go:77:func1() [I] PID 15: Initializing Issue Indexer: bleve
gitea-1 | 2024/04/12 15:36:10 ...xer/stats/indexer.go:39:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories
gitea-1 | 2024/04/12 15:36:10 ...er/issues/indexer.go:154:func2() [I] Issue Indexer Initialization took 2.102701ms
gitea-1 | 2024/04/12 15:36:11 ...xer/stats/indexer.go:85:populateRepoIndexer() [I] Done (re)populating the repo stats indexer with existing repositories
gitea-1 | 2024/04/12 15:36:11 ...s/actions/cleanup.go:29:CleanupArtifacts() [I] Found 0 expired artifacts
gitea-1 | 2024/04/12 15:36:11 cmd/web.go:304:listen() [I] Listen: http://0.0.0.0:3001
gitea-1 | 2024/04/12 15:36:11 cmd/web.go:308:listen() [I] AppURL(ROOT_URL): https://git.example.com/
gitea-1 | 2024/04/12 15:36:11 cmd/web.go:311:listen() [I] LFS server enabled
gitea-1 | 2024/04/12 15:36:11 ...s/graceful/server.go:70:NewServer() [I] Starting new Web server: tcp:0.0.0.0:3001 on PID: 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment