Skip to content

504 error when browsing directories in large repo #16211

Closed
@bagasme

Description

@bagasme
  • Gitea version (or commit ref): main (commit 8fa3bbc, built with Go 1.16.4)
  • Git version: 2.31.1
  • Operating system: Debian 10
  • 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: log

Description

I have a copy of GCC repo on my Gitea instance on LXD container.
I'm trying to browse gcc/ subdirectory, but it always returned 504 error, presumably because the subdirectory contained 946 entries (directories and files). I used to be able to access the subdirectory sometimes in the past.

Inspecting using Developer Tools on Firefox, I noticed that the HTTP request during the attempt was initiated by BrowserTabChild.jsm script, but slow response time from server (1 minute) might cause the error.

I'm running Gitea behind NGINX as reverse proxy, and the relevant NGINX config is:

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

Screenshots

[not relevant]

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailperformance/speedperformance issues with slow downstype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions