upload docker image with HTTP 413 response #9240

Closed
opened 2025-11-02 08:33:03 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Gsonovb on GitHub (Jul 20, 2022).

Description

Hi

I used Docker-compose for deployment,

I received 413 error when trying to upload docker image, but I did not use reverse proxy.

error parsing HTTP 413 response body: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body>\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx/1.21.5</center>\r\n</body>\r\n</html>\r\n"

Gitea Version

1.17.0-rc2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.30.2

Operating System

with docker

How are you running Gitea?

docker-compose.yml

#https://docs.gitea.io/zh-cn/install-with-docker/

version: "3"

networks:
  gitea:
    external: false

services:
  server:
    image: gitea/gitea:1.17.0-rc2
    container_name: gitea
    environment:
      - USER_UID=1001
      - USER_GID=1001
    restart: always
    networks:
      - gitea
    volumes:
      - gitea:/data
      - ./backup:/backup
      - ./app.ini:/data/gitea/conf/app.ini
      - /home/git/.ssh/:/data/git/.ssh
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "2222:22"

volumes:
  gitea:

app.ini

APP_NAME = my home git
RUN_MODE = dev 
RUN_USER = git

[repository]
ROOT = /data/git/repositories

[repository.local]
LOCAL_COPY_PATH = /data/gitea/tmp/local-repo

[repository.upload]
TEMP_PATH = /data/gitea/uploads

[server]
APP_DATA_PATH    = /data/gitea
DOMAIN           = git.homework.local
SSH_DOMAIN       = git.homework.local
HTTP_PORT        = 3000
ROOT_URL         = http://git.homework.local/
DISABLE_SSH      = false
START_SSH_SERVER = false
SSH_PORT         = 22
SSH_LISTEN_PORT  = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = /data/git/lfs
LFS_JWT_SECRET   = ***
OFFLINE_MODE     = true

[database]
PATH     = /data/gitea/gitea.db
DB_TYPE  = sqlite3
HOST     = localhost:3306
NAME     = gitea
USER     = root
PASSWD   = 
LOG_SQL  = false
SCHEMA   = 
SSL_MODE = disable
CHARSET  = utf8

[indexer]
ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve

[session]
PROVIDER_CONFIG = /data/gitea/sessions
PROVIDER        = file

[picture]
AVATAR_UPLOAD_PATH            = /data/gitea/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
DISABLE_GRAVATAR              = true
ENABLE_FEDERATED_AVATAR       = false

[attachment]
PATH = /data/gitea/attachments
ENABLED        = true
ALLOWED_TYPES  = */*
MAX_SIZE       = 500
MAX_FILES      = 1000


[log]
MODE      = console
LEVEL     = info
ROUTER    = console
ROOT_PATH = /data/gitea/log

[security]
INSTALL_LOCK                  = true
SECRET_KEY                    = 
REVERSE_PROXY_LIMIT           = 1
REVERSE_PROXY_TRUSTED_PROXIES = *
INTERNAL_TOKEN                = 
PASSWORD_HASH_ALGO            = **

[service]
DISABLE_REGISTRATION              = false
REQUIRE_SIGNIN_VIEW               = false
REGISTER_EMAIL_CONFIRM            = false
ENABLE_NOTIFY_MAIL                = false
ALLOW_ONLY_EXTERNAL_REGISTRATION  = false
ENABLE_CAPTCHA                    = false
DEFAULT_KEEP_EMAIL_PRIVATE        = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING       = true
NO_REPLY_ADDRESS                  = noreply.localhost

[mailer]
ENABLED = false

[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true


[packages]
ENABLED = true


Database

SQLite

Originally created by @Gsonovb on GitHub (Jul 20, 2022). ### Description Hi I used Docker-compose for deployment, I received 413 error when trying to upload docker image, but I did not use reverse proxy. ``` error parsing HTTP 413 response body: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body>\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx/1.21.5</center>\r\n</body>\r\n</html>\r\n" ``` ### Gitea Version 1.17.0-rc2 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version 2.30.2 ### Operating System with docker ### How are you running Gitea? docker-compose.yml ```yaml #https://docs.gitea.io/zh-cn/install-with-docker/ version: "3" networks: gitea: external: false services: server: image: gitea/gitea:1.17.0-rc2 container_name: gitea environment: - USER_UID=1001 - USER_GID=1001 restart: always networks: - gitea volumes: - gitea:/data - ./backup:/backup - ./app.ini:/data/gitea/conf/app.ini - /home/git/.ssh/:/data/git/.ssh - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "2222:22" volumes: gitea: ``` app.ini ```ini APP_NAME = my home git RUN_MODE = dev RUN_USER = git [repository] ROOT = /data/git/repositories [repository.local] LOCAL_COPY_PATH = /data/gitea/tmp/local-repo [repository.upload] TEMP_PATH = /data/gitea/uploads [server] APP_DATA_PATH = /data/gitea DOMAIN = git.homework.local SSH_DOMAIN = git.homework.local HTTP_PORT = 3000 ROOT_URL = http://git.homework.local/ DISABLE_SSH = false START_SSH_SERVER = false SSH_PORT = 22 SSH_LISTEN_PORT = 22 LFS_START_SERVER = true LFS_CONTENT_PATH = /data/git/lfs LFS_JWT_SECRET = *** OFFLINE_MODE = true [database] PATH = /data/gitea/gitea.db DB_TYPE = sqlite3 HOST = localhost:3306 NAME = gitea USER = root PASSWD = LOG_SQL = false SCHEMA = SSL_MODE = disable CHARSET = utf8 [indexer] ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve [session] PROVIDER_CONFIG = /data/gitea/sessions PROVIDER = file [picture] AVATAR_UPLOAD_PATH = /data/gitea/avatars REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars DISABLE_GRAVATAR = true ENABLE_FEDERATED_AVATAR = false [attachment] PATH = /data/gitea/attachments ENABLED = true ALLOWED_TYPES = */* MAX_SIZE = 500 MAX_FILES = 1000 [log] MODE = console LEVEL = info ROUTER = console ROOT_PATH = /data/gitea/log [security] INSTALL_LOCK = true SECRET_KEY = REVERSE_PROXY_LIMIT = 1 REVERSE_PROXY_TRUSTED_PROXIES = * INTERNAL_TOKEN = PASSWORD_HASH_ALGO = ** [service] DISABLE_REGISTRATION = false REQUIRE_SIGNIN_VIEW = false REGISTER_EMAIL_CONFIRM = false ENABLE_NOTIFY_MAIL = false ALLOW_ONLY_EXTERNAL_REGISTRATION = false ENABLE_CAPTCHA = false DEFAULT_KEEP_EMAIL_PRIVATE = false DEFAULT_ALLOW_CREATE_ORGANIZATION = true DEFAULT_ENABLE_TIMETRACKING = true NO_REPLY_ADDRESS = noreply.localhost [mailer] ENABLED = false [openid] ENABLE_OPENID_SIGNIN = true ENABLE_OPENID_SIGNUP = true [packages] ENABLED = true ``` ### Database SQLite
GiteaMirror added the type/question label 2025-11-02 08:33:03 -06:00
Author
Owner

@Gsonovb commented on GitHub (Jul 20, 2022):

docker log

Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.
2022/07/20 10:38:06 cmd/web.go:106:runWeb() [I] Starting Gitea on PID: 16
2022/07/20 10:38:06 ...s/setting/setting.go:594:deprecatedSetting() [E] Deprecated fallback `[server]` `LFS_CONTENT_PATH` present. Use `[lfs]` `PATH` instead. This fallback will be removed in v1.18.0
2022/07/20 10:38:06 cmd/web.go:157:runWeb() [I] Global init
2022/07/20 10:38:06 ...s/setting/setting.go:594:deprecatedSetting() [E] Deprecated fallback `[server]` `LFS_CONTENT_PATH` present. Use `[lfs]` `PATH` instead. This fallback will be removed in v1.18.0
2022/07/20 10:38:06 routers/init.go:104:GlobalInitInstalled() [I] Git Version: 2.36.2, Wire Protocol Version 2 Enabled (home: /data/gitea/home)
2022/07/20 10:38:06 routers/init.go:107:GlobalInitInstalled() [I] AppPath: /usr/local/bin/gitea
2022/07/20 10:38:06 routers/init.go:108:GlobalInitInstalled() [I] AppWorkPath: /app/gitea
2022/07/20 10:38:06 routers/init.go:109:GlobalInitInstalled() [I] Custom path: /data/gitea
2022/07/20 10:38:06 routers/init.go:110:GlobalInitInstalled() [I] Log path: /data/gitea/log
2022/07/20 10:38:06 routers/init.go:111:GlobalInitInstalled() [I] Configuration file: /data/gitea/conf/app.ini
2022/07/20 10:38:06 routers/init.go:112:GlobalInitInstalled() [I] Run Mode: Dev
2022/07/20 10:38:06 ...dules/setting/log.go:288:newLogService() [I] Gitea v1.17.0+rc2 built with GNU Make 4.3, go1.18.4 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2022/07/20 10:38:06 ...dules/setting/log.go:335:newLogService() [I] Gitea Log Mode: Console(Console:info)
2022/07/20 10:38:06 ...dules/setting/log.go:249:generateNamedLogger() [I] Router Log: Console(console:info)
2022/07/20 10:38:06 ...les/setting/cache.go:76:newCacheService() [I] Cache Service Enabled
2022/07/20 10:38:06 ...les/setting/cache.go:91:newCacheService() [I] Last Commit Cache Service Enabled
2022/07/20 10:38:06 ...s/setting/session.go:73:newSessionService() [I] Session Service Enabled
2022/07/20 10:38:06 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: 
2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/attachments
2022/07/20 10:38:06 ...s/storage/storage.go:170:initAvatars() [I] Initialising Avatar storage with type: 
2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/avatars
2022/07/20 10:38:06 ...s/storage/storage.go:188:initRepoAvatars() [I] Initialising Repository Avatar storage with type: 
2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-avatars
2022/07/20 10:38:06 ...s/storage/storage.go:182:initLFS() [I] Initialising LFS storage with type: 
2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/git/lfs
2022/07/20 10:38:06 ...s/storage/storage.go:194:initRepoArchives() [I] Initialising Repository Archive storage with type: 
2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-archive
2022/07/20 10:38:06 ...s/storage/storage.go:200:initPackages() [I] Initialising Packages storage with type: 
2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/packages
2022/07/20 10:38:06 routers/init.go:130:GlobalInitInstalled() [I] SQLite3 support is enabled
2022/07/20 10:38:06 routers/common/db.go:20:InitDBEngine() [I] Beginning ORM engine initialization.
2022/07/20 10:38:06 routers/common/db.go:27:InitDBEngine() [I] ORM engine initialization attempt #1/10...
2022/07/20 10:38:06 cmd/web.go:160:runWeb() [I] PING DATABASE sqlite3
2022/07/20 10:38:06 routers/init.go:136:GlobalInitInstalled() [I] ORM engine initialization successful!
2022/07/20 10:38:06 ...er/issues/indexer.go:174:func2() [I] [62d76a8e-24] PID 16: Initializing Issue Indexer: bleve
2022/07/20 10:38:06 ...xer/stats/indexer.go:39:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories
2022/07/20 10:38:06 ...xer/stats/indexer.go:85:populateRepoIndexer() [I] Done (re)populating the repo stats indexer with existing repositories
2022/07/20 10:38:06 ...er/issues/indexer.go:270:func3() [I] [62d76a8e-24] Issue Indexer Initialization took 2.246248ms
2022/07/20 10:38:07 cmd/web.go:217:listen() [I] [62d76a8f] Listen: http://0.0.0.0:3000
2022/07/20 10:38:07 cmd/web.go:221:listen() [I] [62d76a8f] AppURL(ROOT_URL): http://git.homework.local/
2022/07/20 10:38:07 cmd/web.go:224:listen() [I] [62d76a8f] LFS server enabled
2022/07/20 10:38:07 ...s/graceful/server.go:61:NewServer() [I] [62d76a8f] Starting new Web server: tcp:0.0.0.0:3000 on PID: 16
2022/07/20 10:38:25 [62d76aa1] router: completed GET /admin for 192.168.2.61:0, 200 OK in 163.4ms @ admin/admin.go:126(admin.Dashboard)
2022/07/20 10:38:28 [62d76aa1-2] router: completed GET /user/events for 192.168.2.61:0, 200 OK in 2143.9ms @ events/events.go:19(events.Events)
2022/07/20 10:38:28 [62d76aa4] router: completed GET /admin/monitor for 192.168.2.61:0, 200 OK in 171.2ms @ admin/admin.go:326(admin.Monitor)
2022/07/20 10:38:29 [62d76aa4-2] router: completed GET /user/events for 192.168.2.61:0, 200 OK in 853.9ms @ events/events.go:19(events.Events)
2022/07/20 10:38:29 [62d76aa5] router: completed GET /admin/config for 192.168.2.61:0, 200 OK in 143.6ms @ admin/admin.go:238(admin.Config)
2022/07/20 10:38:33 [62d76a8e-46] router: polling   GET /user/events for 192.168.2.61:0, elapsed 3528.3ms @ events/events.go:19(events.Events)
2022/07/20 10:38:48 [62d76ab8] router: completed GET /v2/ for 192.168.2.61:0, 401 Unauthorized in 0.2ms @ container/container.go:113(container.ReqContainerAccess)
2022/07/20 10:38:48 [62d76ab8-2] router: completed GET /v2/token?account=guanyc&scope=repository:guanyc/motion-docker:push%2Cpull for 192.168.2.61:0, 200 OK in 13.4ms @ container/container.go:137(container.Authenticate)
2022/07/20 10:38:48 [62d76ab8-4] router: completed POST /v2/guanyc/motion-docker/blobs/uploads/ for 192.168.2.61:0, 202 Accepted in 20.9ms @ container/container.go:157(container.InitiateUploadBlob)
2022/07/20 10:38:48 [62d76ab8-3] router: completed HEAD /v2/guanyc/motion-docker/blobs/sha256:8dc58acf3e27c8a9b14333e3f68aa7e6a144572a94254f4bcb2fa1fc7a68ba68 for 192.168.2.61:0, 200 OK in 32.7ms @ container/container.go:339(container.HeadBlob)
2022/07/20 10:38:48 [62d76ab8-6] router: completed HEAD /v2/guanyc/motion-docker/blobs/sha256:a95643f343b34b7d64ecfa5900f23e3981d766de531036822254f082396e382e for 192.168.2.61:0, 200 OK in 31.7ms @ container/container.go:339(container.HeadBlob)
2022/07/20 10:38:48 [62d76ab8-7] router: completed POST /v2/guanyc/motion-docker/blobs/uploads/ for 192.168.2.61:0, 202 Accepted in 70.1ms @ container/container.go:157(container.InitiateUploadBlob)
2022/07/20 10:38:48 [62d76ab8-5] router: completed HEAD /v2/guanyc/motion-docker/blobs/sha256:bdbc95bea54dae98393931511ef72cf10a70b52ecb2131c6600641a36dd9cfe1 for 192.168.2.61:0, 200 OK in 76.1ms @ container/container.go:339(container.HeadBlob)
2022/07/20 10:38:48 [62d76ab8-9] router: completed HEAD /v2/guanyc/motion-docker/blobs/sha256:11637a6939992ae2b8abd8af337c8b57314f3814bdd334737e6bbdda56c1bf0e for 192.168.2.61:0, 200 OK in 21.6ms @ container/container.go:339(container.HeadBlob)
2022/07/20 10:38:48 [62d76ab8-8] router: completed HEAD /v2/guanyc/motion-docker/blobs/sha256:fc6b4ebd00ec540cd468b98e87b0bdfc47975cb8f76d4450056c322c2870f578 for 192.168.2.61:0, 200 OK in 22.9ms @ container/container.go:339(container.HeadBlob)
2022/07/20 10:38:48 [62d76ab8-10] router: completed POST /v2/guanyc/motion-docker/blobs/uploads/ for 192.168.2.61:0, 202 Accepted in 20.9ms @ container/container.go:157(container.InitiateUploadBlob)
2022/07/20 10:39:24 [62d76adc] router: completed POST /v2/guanyc/motion-docker/blobs/uploads/ for 192.168.2.61:0, 202 Accepted in 33.8ms @ container/container.go:157(container.InitiateUploadBlob)
2022/07/20 10:39:31 [62d76ae3] router: completed GET /guanyc/mywiki.git/info/refs?service=git-receive-pack for 172.20.0.1:0, 401 Unauthorized in 1.4ms @ repo/http.go:531(repo.GetInfoRefs)
2022/07/20 10:39:31 [62d76ae3-2] router: completed GET /guanyc/mywiki.git/info/refs?service=git-receive-pack for 172.20.0.1:0, 200 OK in 30.7ms @ repo/http.go:531(repo.GetInfoRefs)
Received signal 15; terminating.
2022/07/20 10:43:28 ...eful/manager_unix.go:150:handleSignals() [W] [62d76a8e-4] PID 16. Received SIGTERM. Shutting down...
2022/07/20 10:43:28 ...eue/queue_channel.go:154:func1() [W] ChannelQueue: task-channel Terminated before completed flushing
2022/07/20 10:43:28 ...eue/queue_channel.go:154:func1() [W] ChannelQueue: notification-service-channel Terminated before completed flushing
2022/07/20 10:43:28 ...eful/server_hooks.go:47:doShutdown() [I] [62d76a8f] PID: 16 Listener ([::]:3000) closed.
2022/07/20 10:43:28 cmd/web.go:270:listen() [I] [62d76a8f] HTTP Listener: 0.0.0.0:3000 Closed
2022/07/20 10:43:28 [62d76aa6] router: completed GET /user/events for 192.168.2.61:0, 200 OK in 298646.5ms @ events/events.go:19(events.Events)
2022/07/20 10:43:28 .../graceful/manager.go:205:doHammerTime() [W] Setting Hammer condition
2022/07/20 10:43:29 .../graceful/manager.go:224:doTerminate() [W] Terminating
2022/07/20 10:43:29 ...er/issues/indexer.go:202:2() [I] PID: 16 Issue Indexer closed
2022/07/20 10:43:29 ...eful/manager_unix.go:158:handleSignals() [W] PID: 16. Background context for manager closed - context canceled - Shutting down...
2022/07/20 10:43:29 cmd/web.go:180:runWeb() [I] PID: 16 Gitea Web Finished
@Gsonovb commented on GitHub (Jul 20, 2022): docker log ``` Server listening on :: port 22. Server listening on 0.0.0.0 port 22. 2022/07/20 10:38:06 cmd/web.go:106:runWeb() [I] Starting Gitea on PID: 16 2022/07/20 10:38:06 ...s/setting/setting.go:594:deprecatedSetting() [E] Deprecated fallback `[server]` `LFS_CONTENT_PATH` present. Use `[lfs]` `PATH` instead. This fallback will be removed in v1.18.0 2022/07/20 10:38:06 cmd/web.go:157:runWeb() [I] Global init 2022/07/20 10:38:06 ...s/setting/setting.go:594:deprecatedSetting() [E] Deprecated fallback `[server]` `LFS_CONTENT_PATH` present. Use `[lfs]` `PATH` instead. This fallback will be removed in v1.18.0 2022/07/20 10:38:06 routers/init.go:104:GlobalInitInstalled() [I] Git Version: 2.36.2, Wire Protocol Version 2 Enabled (home: /data/gitea/home) 2022/07/20 10:38:06 routers/init.go:107:GlobalInitInstalled() [I] AppPath: /usr/local/bin/gitea 2022/07/20 10:38:06 routers/init.go:108:GlobalInitInstalled() [I] AppWorkPath: /app/gitea 2022/07/20 10:38:06 routers/init.go:109:GlobalInitInstalled() [I] Custom path: /data/gitea 2022/07/20 10:38:06 routers/init.go:110:GlobalInitInstalled() [I] Log path: /data/gitea/log 2022/07/20 10:38:06 routers/init.go:111:GlobalInitInstalled() [I] Configuration file: /data/gitea/conf/app.ini 2022/07/20 10:38:06 routers/init.go:112:GlobalInitInstalled() [I] Run Mode: Dev 2022/07/20 10:38:06 ...dules/setting/log.go:288:newLogService() [I] Gitea v1.17.0+rc2 built with GNU Make 4.3, go1.18.4 : bindata, timetzdata, sqlite, sqlite_unlock_notify 2022/07/20 10:38:06 ...dules/setting/log.go:335:newLogService() [I] Gitea Log Mode: Console(Console:info) 2022/07/20 10:38:06 ...dules/setting/log.go:249:generateNamedLogger() [I] Router Log: Console(console:info) 2022/07/20 10:38:06 ...les/setting/cache.go:76:newCacheService() [I] Cache Service Enabled 2022/07/20 10:38:06 ...les/setting/cache.go:91:newCacheService() [I] Last Commit Cache Service Enabled 2022/07/20 10:38:06 ...s/setting/session.go:73:newSessionService() [I] Session Service Enabled 2022/07/20 10:38:06 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: 2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/attachments 2022/07/20 10:38:06 ...s/storage/storage.go:170:initAvatars() [I] Initialising Avatar storage with type: 2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/avatars 2022/07/20 10:38:06 ...s/storage/storage.go:188:initRepoAvatars() [I] Initialising Repository Avatar storage with type: 2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-avatars 2022/07/20 10:38:06 ...s/storage/storage.go:182:initLFS() [I] Initialising LFS storage with type: 2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/git/lfs 2022/07/20 10:38:06 ...s/storage/storage.go:194:initRepoArchives() [I] Initialising Repository Archive storage with type: 2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-archive 2022/07/20 10:38:06 ...s/storage/storage.go:200:initPackages() [I] Initialising Packages storage with type: 2022/07/20 10:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/packages 2022/07/20 10:38:06 routers/init.go:130:GlobalInitInstalled() [I] SQLite3 support is enabled 2022/07/20 10:38:06 routers/common/db.go:20:InitDBEngine() [I] Beginning ORM engine initialization. 2022/07/20 10:38:06 routers/common/db.go:27:InitDBEngine() [I] ORM engine initialization attempt #1/10... 2022/07/20 10:38:06 cmd/web.go:160:runWeb() [I] PING DATABASE sqlite3 2022/07/20 10:38:06 routers/init.go:136:GlobalInitInstalled() [I] ORM engine initialization successful! 2022/07/20 10:38:06 ...er/issues/indexer.go:174:func2() [I] [62d76a8e-24] PID 16: Initializing Issue Indexer: bleve 2022/07/20 10:38:06 ...xer/stats/indexer.go:39:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories 2022/07/20 10:38:06 ...xer/stats/indexer.go:85:populateRepoIndexer() [I] Done (re)populating the repo stats indexer with existing repositories 2022/07/20 10:38:06 ...er/issues/indexer.go:270:func3() [I] [62d76a8e-24] Issue Indexer Initialization took 2.246248ms 2022/07/20 10:38:07 cmd/web.go:217:listen() [I] [62d76a8f] Listen: http://0.0.0.0:3000 2022/07/20 10:38:07 cmd/web.go:221:listen() [I] [62d76a8f] AppURL(ROOT_URL): http://git.homework.local/ 2022/07/20 10:38:07 cmd/web.go:224:listen() [I] [62d76a8f] LFS server enabled 2022/07/20 10:38:07 ...s/graceful/server.go:61:NewServer() [I] [62d76a8f] Starting new Web server: tcp:0.0.0.0:3000 on PID: 16 2022/07/20 10:38:25 [62d76aa1] router: completed GET /admin for 192.168.2.61:0, 200 OK in 163.4ms @ admin/admin.go:126(admin.Dashboard) 2022/07/20 10:38:28 [62d76aa1-2] router: completed GET /user/events for 192.168.2.61:0, 200 OK in 2143.9ms @ events/events.go:19(events.Events) 2022/07/20 10:38:28 [62d76aa4] router: completed GET /admin/monitor for 192.168.2.61:0, 200 OK in 171.2ms @ admin/admin.go:326(admin.Monitor) 2022/07/20 10:38:29 [62d76aa4-2] router: completed GET /user/events for 192.168.2.61:0, 200 OK in 853.9ms @ events/events.go:19(events.Events) 2022/07/20 10:38:29 [62d76aa5] router: completed GET /admin/config for 192.168.2.61:0, 200 OK in 143.6ms @ admin/admin.go:238(admin.Config) 2022/07/20 10:38:33 [62d76a8e-46] router: polling GET /user/events for 192.168.2.61:0, elapsed 3528.3ms @ events/events.go:19(events.Events) 2022/07/20 10:38:48 [62d76ab8] router: completed GET /v2/ for 192.168.2.61:0, 401 Unauthorized in 0.2ms @ container/container.go:113(container.ReqContainerAccess) 2022/07/20 10:38:48 [62d76ab8-2] router: completed GET /v2/token?account=guanyc&scope=repository:guanyc/motion-docker:push%2Cpull for 192.168.2.61:0, 200 OK in 13.4ms @ container/container.go:137(container.Authenticate) 2022/07/20 10:38:48 [62d76ab8-4] router: completed POST /v2/guanyc/motion-docker/blobs/uploads/ for 192.168.2.61:0, 202 Accepted in 20.9ms @ container/container.go:157(container.InitiateUploadBlob) 2022/07/20 10:38:48 [62d76ab8-3] router: completed HEAD /v2/guanyc/motion-docker/blobs/sha256:8dc58acf3e27c8a9b14333e3f68aa7e6a144572a94254f4bcb2fa1fc7a68ba68 for 192.168.2.61:0, 200 OK in 32.7ms @ container/container.go:339(container.HeadBlob) 2022/07/20 10:38:48 [62d76ab8-6] router: completed HEAD /v2/guanyc/motion-docker/blobs/sha256:a95643f343b34b7d64ecfa5900f23e3981d766de531036822254f082396e382e for 192.168.2.61:0, 200 OK in 31.7ms @ container/container.go:339(container.HeadBlob) 2022/07/20 10:38:48 [62d76ab8-7] router: completed POST /v2/guanyc/motion-docker/blobs/uploads/ for 192.168.2.61:0, 202 Accepted in 70.1ms @ container/container.go:157(container.InitiateUploadBlob) 2022/07/20 10:38:48 [62d76ab8-5] router: completed HEAD /v2/guanyc/motion-docker/blobs/sha256:bdbc95bea54dae98393931511ef72cf10a70b52ecb2131c6600641a36dd9cfe1 for 192.168.2.61:0, 200 OK in 76.1ms @ container/container.go:339(container.HeadBlob) 2022/07/20 10:38:48 [62d76ab8-9] router: completed HEAD /v2/guanyc/motion-docker/blobs/sha256:11637a6939992ae2b8abd8af337c8b57314f3814bdd334737e6bbdda56c1bf0e for 192.168.2.61:0, 200 OK in 21.6ms @ container/container.go:339(container.HeadBlob) 2022/07/20 10:38:48 [62d76ab8-8] router: completed HEAD /v2/guanyc/motion-docker/blobs/sha256:fc6b4ebd00ec540cd468b98e87b0bdfc47975cb8f76d4450056c322c2870f578 for 192.168.2.61:0, 200 OK in 22.9ms @ container/container.go:339(container.HeadBlob) 2022/07/20 10:38:48 [62d76ab8-10] router: completed POST /v2/guanyc/motion-docker/blobs/uploads/ for 192.168.2.61:0, 202 Accepted in 20.9ms @ container/container.go:157(container.InitiateUploadBlob) 2022/07/20 10:39:24 [62d76adc] router: completed POST /v2/guanyc/motion-docker/blobs/uploads/ for 192.168.2.61:0, 202 Accepted in 33.8ms @ container/container.go:157(container.InitiateUploadBlob) 2022/07/20 10:39:31 [62d76ae3] router: completed GET /guanyc/mywiki.git/info/refs?service=git-receive-pack for 172.20.0.1:0, 401 Unauthorized in 1.4ms @ repo/http.go:531(repo.GetInfoRefs) 2022/07/20 10:39:31 [62d76ae3-2] router: completed GET /guanyc/mywiki.git/info/refs?service=git-receive-pack for 172.20.0.1:0, 200 OK in 30.7ms @ repo/http.go:531(repo.GetInfoRefs) Received signal 15; terminating. 2022/07/20 10:43:28 ...eful/manager_unix.go:150:handleSignals() [W] [62d76a8e-4] PID 16. Received SIGTERM. Shutting down... 2022/07/20 10:43:28 ...eue/queue_channel.go:154:func1() [W] ChannelQueue: task-channel Terminated before completed flushing 2022/07/20 10:43:28 ...eue/queue_channel.go:154:func1() [W] ChannelQueue: notification-service-channel Terminated before completed flushing 2022/07/20 10:43:28 ...eful/server_hooks.go:47:doShutdown() [I] [62d76a8f] PID: 16 Listener ([::]:3000) closed. 2022/07/20 10:43:28 cmd/web.go:270:listen() [I] [62d76a8f] HTTP Listener: 0.0.0.0:3000 Closed 2022/07/20 10:43:28 [62d76aa6] router: completed GET /user/events for 192.168.2.61:0, 200 OK in 298646.5ms @ events/events.go:19(events.Events) 2022/07/20 10:43:28 .../graceful/manager.go:205:doHammerTime() [W] Setting Hammer condition 2022/07/20 10:43:29 .../graceful/manager.go:224:doTerminate() [W] Terminating 2022/07/20 10:43:29 ...er/issues/indexer.go:202:2() [I] PID: 16 Issue Indexer closed 2022/07/20 10:43:29 ...eful/manager_unix.go:158:handleSignals() [W] PID: 16. Background context for manager closed - context canceled - Shutting down... 2022/07/20 10:43:29 cmd/web.go:180:runWeb() [I] PID: 16 Gitea Web Finished ```
Author
Owner

@algernon commented on GitHub (Jul 20, 2022):

The log line that says Entity Too Large does mention it is coming from nginx. There's no nginx within the gitea Docker image, so there's a reverse proxy involved somewhere, I'd think.

@algernon commented on GitHub (Jul 20, 2022): The log line that says Entity Too Large *does* mention it is coming from nginx. There's no nginx within the gitea Docker image, so there's a reverse proxy involved *somewhere*, I'd think.
Author
Owner

@lafriks commented on GitHub (Jul 20, 2022):

Yes, this is nginx configuration issue. See docs on how to resolve this: https://docs.gitea.io/en-us/reverse-proxies/#resolving-error-413-request-entity-too-large

@lafriks commented on GitHub (Jul 20, 2022): Yes, this is nginx configuration issue. See docs on how to resolve this: https://docs.gitea.io/en-us/reverse-proxies/#resolving-error-413-request-entity-too-large
Author
Owner

@Gsonovb commented on GitHub (Jul 21, 2022):

I do use nginx on other servers,

Forgot to check the other servers.

Thank you for reply.

@Gsonovb commented on GitHub (Jul 21, 2022): I do use nginx on other servers, Forgot to check the other servers. Thank you for reply.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9240