Git LFS uploads are broken on try.gitea.io #10002

Closed
opened 2025-11-02 08:55:24 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @kousu on GitHub (Dec 21, 2022).

Description

The current deployment on try.gitea.io doesn't seem to accept any LFS uploads. It fails with

batch request: Gitea: Unknown git command: exit status 1

or

batch response: Repository or object not found: https://try.gitea.io/$USER/$REPO.git/info/lfs/objects/batch

So, something to do with batch requests?

The logs I have are short, hopefully it's okay if I inline them:

SSH
$ cd $(mktemp -d)
$ mkdir test && cd test
$ git init
Initialized empty Git repository in /tmp/tmp.GCTMQXLKfx/test/.git/
$ git checkout -b main
Switched to a new branch 'main'
$ git lfs install
Updated Git hooks.
Git LFS initialized.
$ git lfs track "*.md"
Tracking "*.md"
$ echo '# Testing READMEs in LFS' > README.md
$ echo '# Testing documents in LFS' > CONTRIBUTING.md
$ git add .
$ git commit -m "first commit"
$ git remote add origin git@try.gitea.io:kousu1/test-lfs-rendering.git
[main (root-commit) a869fdc] first commit
 3 files changed, 7 insertions(+)
 create mode 100644 .gitattributes
 create mode 100644 CONTRIBUTING.md
 create mode 100644 README.md
$ git push -u origin main
The authenticity of host 'try.gitea.io (167.99.148.217)' can't be established.
ED25519 key fingerprint is SHA256:mDBx/XdOw4ZLaq0JKQXVy6SpXuGOoeHheyBdFH9W9ig.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'try.gitea.io' (ED25519) to the list of known hosts.
Remote "origin" does not support the Git LFS locking API. Consider disabling it with:
  $ git config lfs.https://try.gitea.io/kousu1/test-lfs-rendering.git/info/lfs.locksverify false
batch request: Gitea: Unknown git command: exit status 1                                                                                              
error: failed to push some refs to 'try.gitea.io:kousu1/test-lfs-rendering.git'
HTTP
$ cd $(mktemp -d)
$ mkdir test && cd test
$ git init
Initialized empty Git repository in /tmp/tmp.iVv7CorWbY/test/.git/
$ git checkout -b main
Switched to a new branch 'main'
$ git lfs install
Git LFS initialized.
Updated Git hooks.
$ git lfs track "*.md"
Tracking "*.md"
$ echo '# Testing READMEs in LFS' > README.md
$ echo '# Testing documents in LFS' > CONTRIBUTING.md
$ git add .
$ git commit -m "first commit"
[main (root-commit) 394c712] first commit
 3 files changed, 7 insertions(+)
 create mode 100644 .gitattributes
 create mode 100644 CONTRIBUTING.md
 create mode 100644 README.md
$ git remote add origin https://try.gitea.io/kousu1/test-lfs-rendering.git
$ git push -u origin main
Username for 'https://try.gitea.io': kousu1
Password for 'https://kousu1@try.gitea.io': 
batch response: Repository or object not found: https://try.gitea.io/kousu1/test-lfs-rendering.git/info/lfs/objects/batch                             
Check that it exists and that you have proper access to it
error: failed to push some refs to 'https://try.gitea.io/kousu1/test-lfs-rendering.git'

If I build and run locally, at the current HEAD (70d15e7785), I get version 1.19.0+dev-173-g68704532c, but I cannot reproduce locally.

Gitea Version

1.19.0+dev-207-g70d15e778

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

try.gitea.io

Database

None

Originally created by @kousu on GitHub (Dec 21, 2022). ### Description The current deployment on try.gitea.io doesn't seem to accept any LFS uploads. It fails with > batch request: Gitea: Unknown git command: exit status 1 or > batch response: Repository or object not found: https://try.gitea.io/$USER/$REPO.git/info/lfs/objects/batch So, something to do with batch requests? The logs I have are short, hopefully it's okay if I inline them: <details><summary>SSH</summary> ``` $ cd $(mktemp -d) $ mkdir test && cd test $ git init Initialized empty Git repository in /tmp/tmp.GCTMQXLKfx/test/.git/ $ git checkout -b main Switched to a new branch 'main' $ git lfs install Updated Git hooks. Git LFS initialized. $ git lfs track "*.md" Tracking "*.md" $ echo '# Testing READMEs in LFS' > README.md $ echo '# Testing documents in LFS' > CONTRIBUTING.md $ git add . $ git commit -m "first commit" $ git remote add origin git@try.gitea.io:kousu1/test-lfs-rendering.git [main (root-commit) a869fdc] first commit 3 files changed, 7 insertions(+) create mode 100644 .gitattributes create mode 100644 CONTRIBUTING.md create mode 100644 README.md $ git push -u origin main The authenticity of host 'try.gitea.io (167.99.148.217)' can't be established. ED25519 key fingerprint is SHA256:mDBx/XdOw4ZLaq0JKQXVy6SpXuGOoeHheyBdFH9W9ig. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'try.gitea.io' (ED25519) to the list of known hosts. Remote "origin" does not support the Git LFS locking API. Consider disabling it with: $ git config lfs.https://try.gitea.io/kousu1/test-lfs-rendering.git/info/lfs.locksverify false batch request: Gitea: Unknown git command: exit status 1 error: failed to push some refs to 'try.gitea.io:kousu1/test-lfs-rendering.git' ``` </details> <details><summary>HTTP</summary> ``` $ cd $(mktemp -d) $ mkdir test && cd test $ git init Initialized empty Git repository in /tmp/tmp.iVv7CorWbY/test/.git/ $ git checkout -b main Switched to a new branch 'main' $ git lfs install Git LFS initialized. Updated Git hooks. $ git lfs track "*.md" Tracking "*.md" $ echo '# Testing READMEs in LFS' > README.md $ echo '# Testing documents in LFS' > CONTRIBUTING.md $ git add . $ git commit -m "first commit" [main (root-commit) 394c712] first commit 3 files changed, 7 insertions(+) create mode 100644 .gitattributes create mode 100644 CONTRIBUTING.md create mode 100644 README.md $ git remote add origin https://try.gitea.io/kousu1/test-lfs-rendering.git $ git push -u origin main Username for 'https://try.gitea.io': kousu1 Password for 'https://kousu1@try.gitea.io': batch response: Repository or object not found: https://try.gitea.io/kousu1/test-lfs-rendering.git/info/lfs/objects/batch Check that it exists and that you have proper access to it error: failed to push some refs to 'https://try.gitea.io/kousu1/test-lfs-rendering.git' ``` </details> If I build and run locally, at the current HEAD (70d15e77851a437384de018ffebcf4fb3c5af789), I get version 1.19.0+dev-173-g68704532c, but I _cannot reproduce locally_. ### Gitea Version 1.19.0+dev-207-g70d15e778 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? try.gitea.io ### Database None
GiteaMirror added the type/question label 2025-11-02 08:55:24 -06:00
Author
Owner

@lunny commented on GitHub (May 9, 2023):

I think this is because try site has a limited disk so LFS has been disabled.

@lunny commented on GitHub (May 9, 2023): I think this is because try site has a limited disk so LFS has been disabled.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10002