Skip to content

Gitea 1.25: 413 Error on Large LFS Push & Incorrect Commit Author on Windows #35754

@ibeuel

Description

@ibeuel

Description

Environment:

Gitea version: 1.25 (upgraded from 1.24.6)

Git LFS enabled

Windows client

IIS used as reverse proxy

Description:
After upgrading Gitea from 1.24.6 to 1.25, we encountered the following issues:

413 Error on large LFS file push

Large files uploaded via LFS result in HTTP 413 errors.

Rolling back to 1.24.6 triggers database migration errors.

The issue persists after upgrading to 1.25.

Incorrect commit author

When pushing commits, the author is set to the Windows local account instead of the corresponding Gitea account.

Steps to Reproduce:

Configure IIS as a reverse proxy for Gitea 1.25.

Enable Git LFS.

Push a large file via LFS from a Windows client.

Observe the HTTP 413 error.

Check commit author information in Gitea after pushing.

Expected Behavior:

Large LFS files should push successfully without HTTP 413 errors.

Commit author should reflect the correct Gitea account, not the local Windows user.

Additional Notes:

Suspected cause may be related to file size limits in IIS or Gitea LFS handling.

Issue was not present in previous Gitea 1.24.6 version before upgrade.

Gitea Version

1.25

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

git version 2.51.1.windows.1

Operating System

No response

How are you running Gitea?

Gitea version: 1.25 (nightly, gitea-1.25-nightly-windows-4.0-amd64)

OS: Windows Server 2025

Git LFS enabled

IIS used as reverse proxy

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions