8000 500 when get commits info of submodule · Issue #6007 · gogs/gogs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

500 when get commits info of submodule #6007

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

Closed
evdenis opened this issue Mar 23, 2020 · 9 comments · Fixed by #6011
Closed

500 when get commits info of submodule #6007

evdenis opened this issue Mar 23, 2020 · 9 comments · Fixed by #6011
Labels
💊 bug Something isn't working
Milestone

Comments

@evdenis
Copy link
evdenis commented Mar 23, 2020

Describe the bug

Gogs fails to display repo in web interface and raises 500 error. This happens when gogs fails to fetch commits info from git submodules in bare repo. Gogs worked correctly two of three versions back on debian 10.

Gogs version or commit

Gogs: Go Git Service 0.12.0+dev

Git version

git version 2.20.1

Operating system

Debian GNU/Linux 10 (buster)

Additional context

2020/03/23 11:24:57 [ERROR] [...gogs/internal/route/repo/view.go:278 Home()] get commits info: get submodule "toolchain": revision does not exist
2020/03/23 11:24:57 [TRACE] Template: status/500
@unknwon
Copy link
Member
unknwon commented Mar 23, 2020

Can you reproduce the bug at try.gogs.io?

@unknwon unknwon added the status: needs feedback Tell me more about it label Mar 23, 2020
@evdenis
Copy link
Author
evdenis commented Mar 23, 2020

Yes. Look at the repo: https://try.gogs.io/dimorphus/test

@unknwon
Copy link
Member
unknwon commented Mar 23, 2020

Thanks 👍

8000

@unknwon unknwon added 💊 bug Something isn't working and removed status: needs feedback Tell me more about it labels Mar 23, 2020
@unknwon unknwon added this to the 0.12 milestone Mar 23, 2020
@unknwon
Copy link
Member
unknwon commented Mar 25, 2020

Interestingly... I couldn't reproduce locally with Git 2.25.2.

Which makes me wonder if it's a problem with old Git. The demo server is using git 1.8.3.1, which Git binary version do you have on your server?

@unknwon unknwon added status: needs feedback Tell me more about it status: needs reproduce Wait, how did that happen? labels Mar 25, 2020
@evdenis
Copy link
Author
evdenis commented Mar 25, 2020

Debian 10. git version 2.20.1

@unknwon
Copy link
Member
unknwon commented Mar 25, 2020

OK, problem found! You can open https://try.gogs.io/dimorphus/test now, waiting CI to merge.

@unknwon unknwon removed status: needs feedback Tell me more about it status: needs reproduce Wait, how did that happen? labels Mar 25, 2020
@unknwon unknwon changed the title 500 error when gogs fails to get commits info of submodule 500 when get commits info of submodule Mar 25, 2020
@ELForcer
Copy link
ELForcer commented Dec 2, 2020

The problem is not solved. The error is still included.

500: An error has occurred : get submodule "tcpdf": revision does not exist

Application Version: 0.12.3

git version 2.20.1
OS: Debian GNU/Linux 10 (buster)

@assist726
Copy link

Have the same issue here, but only on specific branches of the repo. I assume certain styles of commit histories break the system ?

@taellinglin
Copy link

I just added an existing git folder that had a submodule. I want to try to clone the submodule as well, but I get this 500 server error:
image

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💊 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
0