Skip to content

LFS: cannot push #8021

@cadrian

Description

@cadrian

Gogs version

0.14-dev

Git version

  • Server: 2.39.5
  • Client: 2.47.2

Operating system

Debian GNU/Linux 12

Database

MySQL 5.8

Describe the bug

Hello,

I cannot use git lfs. I create the repository from scratch, do the git lfs track stuff and simple git commit .gitattributes, this works. The git push command also works.

Then I perform the git add that will add all the lfs files, commit, and try to push.
The git push command fails:

$ git push -u origin master
batch request: Gogs: Repository owner does not exist: exit status 1                                                                         
batch request: Gogs: Repository owner does not exist: exit status 1
batch request: Gogs: Repository owner does not exist: exit status 1
batch request: Gogs: Repository owner does not exist: exit status 1
batch request: Gogs: Repository owner does not exist: exit status 1
error: failed to push some refs to '<redacted>:/cadrian/ISRC.git'

What did I miss?

Note, I have other standard repos (without lfs) that work perfectly well on the same platform.

To reproduce

git lfs track *.mp3
git commit .gitattributes -m 'lfs init'
git add data.mp3
git commit -m 'data'
git push

Expected behavior

push successfully performed

Additional context

Extract from gogs.log (should be enough)

2025/08/27 20:59:09 [TRACE] Log mode: File (Trace)
2025/08/27 20:59:09 [ INFO] Gogs 0.14.0+dev
2025/08/27 20:59:09 [TRACE] Work directory: /home/git/src/gogs
2025/08/27 20:59:09 [TRACE] Custom path: /home/git/src/gogs/custom
2025/08/27 20:59:09 [TRACE] Custom config: /home/git/src/gogs/custom/conf/app.ini
2025/08/27 20:59:09 [TRACE] Log path: /home/git/src/gogs/log
2025/08/27 20:59:09 [TRACE] Build time: 
2025/08/27 20:59:09 [TRACE] Build commit: 
2025/08/27 20:59:09 [TRACE] Git version: 2.39.5
2025/08/27 20:59:09 [ INFO] Run mode: Production
2025/08/27 20:59:09 [TRACE] Doing: CheckRepoStats
2025/08/27 20:59:09 [ INFO] Available on https://<redacted>/gogs/
2025/08/27 20:59:20 [TRACE] Session ID: e2572a713bd79479
2025/08/27 20:59:20 [TRACE] CSRF Token: yrPbeODi4uUi7TQYA2b9zU75u306MTc1NjMwMzMyMTY2MTMxNzU2NQ
2025/08/27 20:59:20 [TRACE] Template: admin/dashboard
2025/08/27 20:59:23 [TRACE] Session ID: e2572a713bd79479
2025/08/27 20:59:23 [TRACE] CSRF Token: yrPbeODi4uUi7TQYA2b9zU75u306MTc1NjMwMzMyMTY2MTMxNzU2NQ
2025/08/27 20:59:23 [TRACE] Template: admin/dashboard
2025/08/27 20:59:33 [TRACE] Session ID: e2572a713bd79479
2025/08/27 20:59:33 [TRACE] CSRF Token: yrPbeODi4uUi7TQYA2b9zU75u306MTc1NjMwMzMyMTY2MTMxNzU2NQ
2025/08/27 20:59:33 [TRACE] Template: repo/create
2025/08/27 20:59:37 [TRACE] Session ID: e2572a713bd79479
2025/08/27 20:59:37 [TRACE] CSRF Token: yrPbeODi4uUi7TQYA2b9zU75u306MTc1NjMwMzMyMTY2MTMxNzU2NQ
2025/08/27 20:59:37 [TRACE] Template: repo/home
2025/08/27 20:59:41 [TRACE] Session ID: e2572a713bd79479
2025/08/27 20:59:41 [TRACE] CSRF Token: yrPbeODi4uUi7TQYA2b9zU75u306MTc1NjMwMzMyMTY2MTMxNzU2NQ
2025/08/27 20:59:41 [TRACE] Template: repo/pulls/compare
2025/08/27 21:09:09 [TRACE] Doing: MirrorUpdate

Extract from hooks/serv.log:

2025/08/27 21:09:58 [ERROR] [...it/src/gogs/internal/cmd/serv.go:48 fail()] Unregistered owner: 
2025/08/27 21:09:58 [ERROR] [...it/src/gogs/internal/cmd/serv.go:48 fail()] Unregistered owner: 
2025/08/27 21:09:58 [ERROR] [...it/src/gogs/internal/cmd/serv.go:48 fail()] Unregistered owner: 
2025/08/27 21:09:59 [ERROR] [...it/src/gogs/internal/cmd/serv.go:48 fail()] Unregistered owner: 
2025/08/27 21:09:59 [ERROR] [...it/src/gogs/internal/cmd/serv.go:48 fail()] Unregistered owner: 
2025/08/27 21:09:59 [ERROR] [...it/src/gogs/internal/cmd/serv.go:48 fail()] Unregistered owner: 
2025/08/27 21:10:00 [ERROR] [...it/src/gogs/internal/cmd/serv.go:48 fail()] Unregistered owner: 

(these are the last lines, but there are more than 200 lines)

Extract from hooks/xorm.log:

2025/08/27 21:09:58 /home/git/src/gogs/internal/database/users.go:752 record not found
[0.221ms] [rows:0] SELECT * FROM `user` WHERE lower_name = "" ORDER BY `user`.`id` LIMIT 1
2025/08/27 21:09:58 /home/git/src/gogs/internal/database/users.go:752 record not found
[0.264ms] [rows:0] SELECT * FROM `user` WHERE lower_name = "" ORDER BY `user`.`id` LIMIT 1
2025/08/27 21:09:58 /home/git/src/gogs/internal/database/users.go:752 record not found
[0.315ms] [rows:0] SELECT * FROM `user` WHERE lower_name = "" ORDER BY `user`.`id` LIMIT 1
2025/08/27 21:09:59 /home/git/src/gogs/internal/database/users.go:752 record not found
[0.288ms] [rows:0] SELECT * FROM `user` WHERE lower_name = "" ORDER BY `user`.`id` LIMIT 1
2025/08/27 21:09:59 /home/git/src/gogs/internal/database/users.go:752 record not found
[0.262ms] [rows:0] SELECT * FROM `user` WHERE lower_name = "" ORDER BY `user`.`id` LIMIT 1
2025/08/27 21:09:59 /home/git/src/gogs/internal/database/users.go:752 record not found
[0.281ms] [rows:0] SELECT * FROM `user` WHERE lower_name = "" ORDER BY `user`.`id` LIMIT 1
2025/08/27 21:10:00 /home/git/src/gogs/internal/database/users.go:752 record not found
[0.278ms] [rows:0] SELECT * FROM `user` WHERE lower_name = "" ORDER BY `user`.`id` LIMIT 1

(ditto: many lines, I just put the last ones)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    💊 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions