Git checkout issue in Jenkins 2.440.2

I have installed and configured jenkins 2.440.2 on RHEL.

issue 1:- when i tried to git clone using git plugin getting below error.

SSL certificate problem: unable to get local issuer certificate

NOTE:- I have tried using access token and username password also i have added Git certificate in jdk and also tried with ssl verify false

issue 2:- when i tried to clone using git clone command (Execute shell) getting below error.

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 5432 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Build step ‘Execute shell’ marked build as failure

There may be a system configuration issue with your operating system. For example, you might need to update the operating system packages (with yum update) to assure that you have the most recent certificates from the certificate authorities.

There may be a network configuration problem due to a router or gateway between your computer and the remote git server. This could also indicate that you do not have the most recent CA package installed with the operating system.

If you are running RHEL 7 or earlier, then it may also be a problem that you are running an operating system that Jenkins does not support.

1 Like

I am using RHEL 8.8.

Sometime git clone is working fine and some i am facing below error.

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 5432 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet

NOTE:- Using git clone command getting this error.

I have upgraded O.S with RHEL 8.8 but still facing both issue.

Also check there is no issue with Network

Thanks for the feedback.
How did you check there was no issue with the network?

Hi
While doing the git checkout i have checked logs with infra team there is no network dropped.

1 Like

Hi Mark,
I have upgraded the O.S but still facing same issue regarding “SSL certificate problem: unable to get local issuer certificate”.
but git clone is working fine with the error. is there any way to remove this error please suggest.

A google search returned the “How to fix ‘ssl certificate problem unable to get local issuer certificate’ Git error” page that says

The unable to get local issuer certificate error is caused by the misconfiguration of the SSL certificate on your local machine. When pushing, pulling, or cloning, Git cannot verify your SSL certification, which leads to the error.

A valid HTTPS handshake requires both the client and the server to create a secure connection, allowing for safe communication between your local machine and where the source code is hosted. When the SSL certificate cannot be verified, for example because it is self-signed or issued by the corporate Certificate Authority (CA), Git cannot complete the HTTPS handshake with the server that hosts the repository.

That page includes several diagnostic suggestions that you can investigate. I think that yum update on the agent computer should be one of the first things that you investigate.