Content-Length: 538510 | pFad | https://github.com/gogs/gogs/issues/6436

9E 500: An error has occurred : get submodule "tcpdf": revision does not exist · Issue #6436 · gogs/gogs · GitHub
Skip to content

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

Closed
ELForcer opened this issue Dec 2, 2020 · 32 comments · Fixed by #7352
Closed

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

ELForcer opened this issue Dec 2, 2020 · 32 comments · Fixed by #7352
Assignees
Labels
💊 bug Something isn't working
Milestone

Comments

@ELForcer
Copy link

ELForcer commented Dec 2, 2020

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)

@ELForcer ELForcer changed the title The problem is not solved. The error is still included. 500: An error has occurred : get submodule "tcpdf": revision does not exist Dec 2, 2020
@unknwon
Copy link
Member

unknwon commented Dec 2, 2020

Thanks for the feedback!

How can I reproduce?

@unknwon unknwon added status: needs feedback Tell me more about it status: needs reproduce Wait, how did that happen? labels Dec 2, 2020
@ELForcer
Copy link
Author

ELForcer commented Dec 2, 2020

I got it like this:

  1. Downloaded update 0.12.3
  2. Turned off the web server
  3. Moved the folders from the old gogs directory to the new
  4. Enabled the web server
    ** The site is up, the contents of the repository opens **
  5. Made git commit and git push
  6. I go to the web server
    ** The site is working, the contents of the repository to which the push was made DO NOT open. Error 500. **
    The rest of the repositories on the same site are opened.

Moved content to old version 0.11.91.
Repository to open again on old version after git push.

@unknwon
Copy link
Member

unknwon commented Dec 2, 2020

Can you provide a sample repo that can cause 0.12.3 to 500?

@ELForcer
Copy link
Author

ELForcer commented Dec 2, 2020

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.

@unknwon
Copy link
Member

unknwon commented Dec 2, 2020

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?

@ELForcer
Copy link
Author

ELForcer commented Dec 5, 2020

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.

@unknwon
Copy link
Member

unknwon commented Dec 5, 2020

Can you upload a sample repository to try.gogs.io and reproduce the 500?

@ELForcer
Copy link
Author

ELForcer commented Dec 7, 2020

Unfortunately, I can't. This is a corporate project. The source code cannot be posted on the Internet. And I do not think that this is the case in the project code.

But I can lay out the project structure:
Снимок экрана от 2020-12-07 12-02-52

The last commit was added to the following line in .gitignore:
Снимок экрана от 2020-12-07 11-59-51

Сommit 90311bb706 contains the following change:
Снимок экрана от 2020-12-07 12-03-09

I can't go to the tspdf folder on the site.
Besides the master branch, there are no others.

@unknwon
Copy link
Member

unknwon commented Dec 13, 2020

@ELForcer Thanks! So when does the 500 happen exactly? When you click on the following?

CleanShot 2020-12-13 at 09 53 20@2x

@ELForcer
Copy link
Author

I recorded a video where you can see that the repository works on the old version and does not work after the update:
https://yadi.sk/i/1W2H5uYHQMuL2w

@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 ?

@mg64ve
Copy link

mg64ve commented Feb 28, 2021

I have same issue in a n home project:

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

git push and clone works apparently.
Any update on that?

@Demon1110
Copy link

image
help me ,I have same issue
How to solve this problem

@ELForcer
Copy link
Author

Workaround, use the old version (0.11). But her mail notification does not work, at least for me.

@xingxing122
Copy link

How did you solve this problem in the endHow did you solve this problem in the end

@lowking
Copy link

lowking commented Jun 22, 2021

image
help me ,I have same issue
How to solve this problem

I just created a repository and pushed

git init
git add *
git commit -m 'init'
git push

I delete scriptsfolder, and redo push, it's fine.
Why can't handle submodules?

@ELForcer
Copy link
Author

Use the old version (0.11). There is no such problem with submodule revisions, but notifications may not work.

@unknwon unknwon added 💊 bug Something isn't working and removed status: needs feedback Tell me more about it labels Jan 1, 2022
@ELForcer
Copy link
Author

On version 0.12.5 problem exists.

image

An error has occurred : get submodule "tcpdf": revision does not exist
Application Version: 0.12.5

However, the repository now opens without errors.
(I don’t know if this is the merit of Gogs or the owner of the current repository)
The problem only now remained in the old commit.

@hellorayza
Copy link

My colleague had this problem too.
Accoding to his description, he upload needless .git folder in second level folder.
Maybe the outer(the root directory) .git folder was breakdown also or his used wrong git command.

@homealim2012
Copy link

homealim2012 commented Apr 28, 2022

在根目录下添加.gitmodules
里面添加如下内容
[submodule "your_submodule_name"]
path = your_submodule_name
url = https://github.com/homealim2012/gcr.io_mirror.git
commit并push即可

@unknwon
Copy link
Member

unknwon commented Jun 25, 2022

My colleague had this problem too.
Accoding to his description, he upload needless .git folder in second level folder.
Maybe the outer(the root directory) .git folder was breakdown also or his used wrong git command.

I've successfully reproduced the behavior using this, looking into fix soon 🕵️ Though the error I got is a bit different:

get submodule "xxx": submodule does not exist

@unknwon unknwon moved this to Todo in Gogs Roadmap Jun 25, 2022
@unknwon unknwon added this to the 0.12.10 milestone Jun 25, 2022
@DingGuodong
Copy link

在根目录下添加.gitmodules 里面添加如下内容 [submodule "your_submodule_name"] path = your_submodule_name url = https://github.com/homealim2012/gcr.io_mirror.git commit并push即可

This is a solution which I tested and passed.

@unknwon unknwon modified the milestones: 0.12.10, 0.12.11 Jul 25, 2022
@esayre-um
Copy link

@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.

@unknwon
Copy link
Member

unknwon commented Sep 12, 2022

@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 😁 )

@swedan333
Copy link

image
version 0.13.0 dev running in a docker container
is there a solution or workaround for this

@al-heisner
Copy link

I have run into and was able to reproduce exact same error

  1. create new repository in gogs
  2. create another new repo in gogs (or github, etc)
  3. git clone repo#1
  4. within repo#1, git clone repo#2
  5. git add --all && git commit && git push
  6. 500 error when visiting repo#1 in gogs web UI

adding .gitmodules with repo#2 details into repo#1 removes the 500 error in this case

@windhamdavid
Copy link

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 ✌🏼

@unknwon unknwon self-assigned this Feb 12, 2023
@unknwon unknwon moved this from Todo to In Progress in Gogs Roadmap Feb 14, 2023
@unknwon
Copy link
Member

unknwon commented Feb 14, 2023

I have run into and was able to reproduce exact same error

  1. create new repository in gogs
  2. create another new repo in gogs (or github, etc)
  3. git clone repo#1
  4. within repo#1, git clone repo#2
  5. git add --all && git commit && git push
  6. 500 error when visiting repo#1 in gogs web UI

adding .gitmodules with repo#2 details into repo#1 removes the 500 error in this case

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.

@unknwon unknwon removed the status: needs reproduce Wait, how did that happen? label Feb 14, 2023
@unknwon unknwon moved this from In Progress to QA / In Review in Gogs Roadmap Feb 14, 2023
@github-project-automation github-project-automation bot moved this from QA / In Review to Done in Gogs Roadmap Feb 14, 2023
@unknwon
Copy link
Member

unknwon commented Feb 14, 2023

The patch has landed in 0.13.0+dev, and will be back-ported to 0.12.11 (no ETA).

@esayre-um
Copy link

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.

@unknwon
Copy link
Member

unknwon commented Feb 25, 2023

The 0.12.11 has been released that includes the patch of the reported issue.

@windhamdavid
Copy link

Thank you 👊🏼 updated to v0.12.11 and can confirm it fixes this issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💊 bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/gogs/gogs/issues/6436

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy