@When Jenkins deploys the project, GIT reports an error fatal: index file smaller than expectedtoc
Recently, when learning to deploy Jenkins, microservice construction has been reporting errors:
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://gitee.com/xxx +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: index file smaller than expected
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:994)
... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE
The GIT problem found on the Internet is solved as follows:
View links
Because Jenkins uses git deployed on the server to pull the remote warehouse, I handle it according to the above method and re push it. It still doesn’t work.
Later, it was found that the workspace in Jenkins should be cleaned up first, and Jenkins should be pulled from the remote warehouse again. The problem was solved. As shown in the figure:
Read More:
- Fatal: unable to create ‘project_ path/.git/ index.lock ‘: File exists.
- git clone appears fatal: index-pack failed problem solution
- Giterror: error cloning remote repo ‘origin’ hudson.plugins.git .GitException
- Solve the error error fetching remote repo origin problem in Git on Jenkins
- Jenkins git configuration error status code 128 ‘text file busy’
- When WebSphere deploys a project, an error is reported: error 500: javax.servlet.ServletException : SRVE0207E: Uncaught initialization
- bad index file sha1 signature fatal
- The file server reports an error of 413, and the file uploaded by nginx reports an error of 413 request entity too large
- Git error prompt: fatal: not a git repository (or any of the parent directories):. Git
- Vue reports an error sasserror: expected newline
- The web project removal server reports an error, and the web project in eclipse cannot be automatically deployed to Tomcat
- QT + MySQL generates an EXE file and reports an error “driver not loaded”. Solution steps
- Vs2019 + QT parses the XML file and reports an error at doc.setcontent (& file)
- The common module of idea Maven parent-child project packages and reports an error
- Pull the git warehouse code IDEA reports an error: Clone failed: Authentication failed for’http://10.xx.XXXXXXXXXXXXXXXXX’
- Error 404:SRVE0190E: File not found: index.action when websphere publishes the project war package
- JDK upgrade 17 project reports an error java.lang.reflect.inaccessibleobjectexception
- Junit4 unit test reports an error invalid project specified
- Java uses ZipFile to decompress the zip file and runs normally under Windows. Linux reports an error
- Git push “fatal: Authentication failed ”