-
Notifications
You must be signed in to change notification settings - Fork 5k
500: An error has occurred : get submodule "tcpdf": revision does not exist #6436
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
Comments
Thanks for the feedback! How can I reproduce? |
I got it like this:
Moved content to old version 0.11.91. |
Can you provide a sample repo that can cause 0.12.3 to 500? |
I will try to update my home repository to version 0.12.3 and report the results. But Linux Mint 20 is installed there, not Debian 10. But it is visible on the Internet. |
I appreciate your replies but I still have no idea how to reproduce the problem. I'll ask this instead, are you able to reproduce the 500 on https://try.gogs.io? |
I checked it on my home PC (Linux Mint 20). It was also updated to 0.12.3 and made a push. The repository opens fine. Problem only means Debian 10 or installed packages. I will look for the problem further. |
Can you upload a sample repository to try.gogs.io and reproduce the 500? |
@ELForcer Thanks! So when does the 500 happen exactly? When you click on the following? |
I recorded a video where you can see that the repository works on the old version and does not work after the update: |
Have the same issue here, but only on specific branches of the repo. I assume certain styles of commit histories break the system ? |
I have same issue in a n home project:
git push and clone works apparently. |
Workaround, use the old version (0.11). But her mail notification does not work, at least for me. |
How did you solve this problem in the endHow did you solve this problem in the end |
Use the old version (0.11). There is no such problem with submodule revisions, but notifications may not work. |
On version 0.12.5 problem exists. An error has occurred : get submodule "tcpdf": revision does not exist However, the repository now opens without errors. |
My colleague had this problem too. |
在根目录下添加.gitmodules |
I've successfully reproduced the behavior using this, looking into fix soon 🕵️ Though the error I got is a bit different:
|
This is a solution which I tested and passed. |
@unknwon since you added this issue to the 0.12.11 milestone, does that mean it is still not resolved in 0.12.10? I'm having this issue on my local gogs install, but was unable to reproduce using try.gogs.io. |
@esayre-um - Unfortunately no, that only means I'll attempt to fix it as part of 0.12.11 (which means the attempt could be a failure 😁 ) |
I have run into and was able to reproduce exact same error
adding .gitmodules with repo#2 details into repo#1 removes the 500 error in this case |
gogs.log - 2023/02/11 16:18:05 [ERROR] [...gogs/internal/route/repo/view.go:57 renderDirectory()] get commits info: get submodule "wp": revision does not exist. -> gogs v0.12.9 git v2.34.1 go1.18.1 -> just related to submodules... best of luck on the fix. Thank you for your effort ✌🏼 |
Thank you @al-heisner! I successfully reproduced with these steps ❤️ On the surface looks like this happens when there is for whatever reason an undeclared submodule in the repository, will update Gogs to be more lenient about this. |
The patch has landed in 0.13.0+dev, and will be back-ported to 0.12.11 (no ETA). |
Great to hear… I too was having trouble reproducing this on this test server… curiously my repos seem to have the correct info in .gitmodules but still were giving me 500 errors. |
The 0.12.11 has been released that includes the patch of the reported issue. |
Thank you 👊🏼 updated to v0.12.11 and can confirm it fixes this issue. |
An update was made from version 0.11.91 to version 0.12.3 according to the instructions: https://gogs.io/docs/upgrade/upgrade_from_binary
After committing, it is not possible to view the contents of the repository through the web interface.
Old repositories open fine.
Application Version: 0.12.3
git version 2.20.1
OS: Debian GNU/Linux 10 (buster)
Originally posted by @ELForcer in #6007 (comment)
The text was updated successfully, but these errors were encountered: