Request timeout when upload a big attachment in web Releases feature #5555

Closed
opened 2025-11-02 06:28:48 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @zeroWin on GitHub (Jun 16, 2020).

  • Gitea version (or commit ref): 1.13.0+dev-199-g80a3745fc ( I use docker image:latest )(Digest: sha256:543a18d2e9988659a2a99d47c6f2e7c8a7719627c9b29df47f50e5d7704f1a3a)
  • Git version:
  • Operating system: Ubuntu 14.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I use the same setting in docker image:1.11.6 and image:latest. as following:

[attachment]
PATH = /data/gitea/attachments
ALLOWED_TYPES = */*
MAX_SIZE = 200
MAX_FILES = 3

When I upload a attachment , the size about 93MB , in release,the image:latest notify request timeout after 30000 , but the image:1.11.6 can upload success. Is this a bug in dev version?

Screenshots

image

Originally created by @zeroWin on GitHub (Jun 16, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.13.0+dev-199-g80a3745fc ( I use docker image:latest )(Digest: sha256:543a18d2e9988659a2a99d47c6f2e7c8a7719627c9b29df47f50e5d7704f1a3a) - Git version: - Operating system: Ubuntu 14.04 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description I use the same setting in docker image:1.11.6 and image:latest. as following: ``` [attachment] PATH = /data/gitea/attachments ALLOWED_TYPES = */* MAX_SIZE = 200 MAX_FILES = 3 ``` When I upload a attachment , the size about 93MB , in release,the image:latest notify ```request timeout after 30000 ```, but the image:1.11.6 can upload success. Is this a bug in dev version? ## Screenshots ![image](https://user-images.githubusercontent.com/7781870/84727049-d330e500-afc0-11ea-80ec-61a3d7d7e7e4.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/bug label 2025-11-02 06:28:48 -06:00
Author
Owner

@Jab2870 commented on GitHub (Jun 17, 2020):

I am also experiencing similar issues. In my case the uploaded files are much smaller, but I am still getting a timeout after 30 seconds.

I couldn't see in the documentation under timeouts one that would relate to this.

In my case I am hosting Gitea behind a Nginx reverse proxy which has

client_max_body_size 10G;

This is much larger than the file I am trying to upload and I have been able to upload the file to other instances behind the reverse proxy which leads me to believe it is gitea that is timing out.

The relevant part of my log file:

[Macaron] 2020-06-17 08:24:54: Started POST /attachments for <MYIP>
[Macaron] 2020-06-17 08:25:25: Completed POST /attachments 500 Internal Server Error in 30.851935903s
@Jab2870 commented on GitHub (Jun 17, 2020): I am also experiencing similar issues. In my case the uploaded files are much smaller, but I am still getting a timeout after 30 seconds. I couldn't see in the documentation under timeouts one that would relate to this. In my case I am hosting Gitea behind a Nginx reverse proxy which has ``` client_max_body_size 10G; ``` This is much larger than the file I am trying to upload and I have been able to upload the file to other instances behind the reverse proxy which leads me to believe it is gitea that is timing out. The relevant part of my log file: ``` [Macaron] 2020-06-17 08:24:54: Started POST /attachments for <MYIP> [Macaron] 2020-06-17 08:25:25: Completed POST /attachments 500 Internal Server Error in 30.851935903s ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5555