Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 #31339

Open
MuhmdHsn313 opened this issue Jun 12, 2024 · 5 comments
Open
Labels

Comments

@MuhmdHsn313
Copy link

Description

I created a new Flutter project and I want to push the source to my Gitea instance. After committing the changes and trying to push them, the below issue is displayed in the terminal:

Enumerating objects: 177, done.
Counting objects: 100% (177/177), done.
Delta compression using up to 16 threads
Compressing objects: 100% (145/145), done.
Writing objects: 100% (176/176), 267.01 KiB | 2.24 MiB/s, done.
Total 176 (delta 21), reused 0 (delta 0), pack-reused 0
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

Gitea Version

1.22.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Screenshot 2024-06-12 143706

Git Version

2.39.3

Operating System

GNU/Linux

How are you running Gitea?

We have our self-hosted Gitea instance. We're using a Linux VM to install it.

Database

PostgreSQL

@lunny
Copy link
Member

lunny commented Jun 12, 2024

Can you get some logs from Gitea side?

@MuhmdHsn313
Copy link
Author

MuhmdHsn313 commented Jun 13, 2024

These are the logs that I found

logs from /var/lib/gitea/log/gitea.log:

2024/06/13 11:52:42 ...s/process/manager.go:188:Add() [T] Start 666ab35a: GET: /muhammad.hasan/a.git/info/refs?service=git-receive-pack (request)
2024/06/13 11:52:42 ...eb/routing/logger.go:47:func1() [T] router: started   GET /muhammad.hasan/a.git/info/refs?service=git-receive-pack for 10.10.10.20:0
2024/06/13 11:52:42 ...rvices/auth/basic.go:67:Verify() [T] Basic Authorization: Attempting login for: muhammad.hasan
2024/06/13 11:52:42 ...rvices/auth/basic.go:92:Verify() [T] Basic Authorization: Valid AccessToken for user[0]
2024/06/13 11:52:42 models/repo/repo.go:367:LoadUnits() [T] repo.Units, ID=98, Types: [TypeCode, TypeIssues, TypePullRequests, TypeReleases, TypeWiki, TypeProjects, TypePackages, TypeActions]
2024/06/13 11:52:42 ...s/repo_permission.go:199:func1() [T] Permission Loaded for user <User 1:muhammad.hasan> in repo <Repository 98:muhammad.hasan/a>, permissions: {AccessMode:4 units:[0xc006b5a5c0 0xc006b5a600 0xc006b5a680 0xc006b5a6c0 0xc006b5a700 0xc006b5a740 0xc006b5a780 0xc006b5a7c0] unitsMode:map[] everyoneAccessMode:map[]}
2024/06/13 11:52:42 ...dules/git/command.go:291:Run() [D] git.Command.RunDir(/var/lib/gitea/data/gitea-repositories/muhammad.hasan/a.git): /usr/bin/git -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= receive-pack --stateless-rpc --advertise-refs .
2024/06/13 11:52:42 ...s/process/manager.go:188:Add() [T] Start 666ab35a-2: git(dir:/var/lib/gitea/data/gitea-repositories/muhammad.hasan/a.git): /usr/bin/git -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= receive-pack --stateless-rpc --advertise-refs . (from 666ab35a) (normal)
2024/06/13 11:52:42 ...s/process/manager.go:231:remove() [T] Done 666ab35a-2: git(dir:/var/lib/gitea/data/gitea-repositories/muhammad.hasan/a.git): /usr/bin/git -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= receive-pack --stateless-rpc --advertise-refs .
2024/06/13 11:52:42 ...eb/routing/logger.go:102:func1() [I] router: completed GET /muhammad.hasan/a.git/info/refs?service=git-receive-pack for 10.10.10.20:0, 200 OK in 40.7ms @ repo/githttp.go:517(repo.GetInfoRefs)
2024/06/13 11:52:42 ...s/process/manager.go:231:remove() [T] Done 666ab35a: GET: /muhammad.hasan/a.git/info/refs?service=git-receive-pack

@MuhmdHsn313
Copy link
Author

Dear @lunny
any updates?

@techknowlogick
Copy link
Member

Hi @MuhmdHsn313, those logs provide a successful response. Are you able to provide the logs that give a 500 and the error surrounding it?

@MuhmdHsn313
Copy link
Author

How can I get these logs? I can give you the required logs you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants