RPC failed; curl 56 GnuTLS recv error (-9) when running git clone #134430
-
I use to use git pull just for updating a repository (https://github.com/jekhokie/raspberry-noaa-v2.git) but recently I started to have problems withe the process (fatal: refusing to merge unrelated histories) so I decided to ejecute a git clone for starting from scratch I am using Raspberri Pi 3B+ with bullseye Now when I run git clone it complains with the messages: Cloning into 'raspberry-noaa-v2'... I have been searching in internet but not clear the solution as it is quite generic. I spoke with the developer of the repository and he told me that git fails from time to time, however, I ran the same git clone in my Macbook: BigSur 11.7.10 and it works fine all the time so I suspect that RPi have something that does not work fine now (some months ago it did it ok ) Any tip or recommendation? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
This issue can be caused by several factors, including network instability, issues with the Git version on your Raspberry Pi, or even the configuration of the SSL/TLS library. Here are some steps you can take to troubleshoot and potentially resolve the issue:
Try these steps one by one and see if any of them resolve the issue. If the problem persists, it might be worth looking into more detailed network diagnostics or even considering a fresh installation of the operating system on your Raspberry Pi. |
Beta Was this translation helpful? Give feedback.
-
if you clone a repo using HTTP then is error may be shown. i was also facing but i found the solution. switch to SSH it will work fine with large projects and seems very relaible. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
This means the SSH key isn't being accepted by GitHub. The below steps should definitely solve your problem:
1. Check for Existing SSH Keys:
ls -al ~/.ssh
There should be files named
id_rsa
(private key) andid_rsa.pub
(public key) or similarly named key pairs.If there is no SSH key available you will receive a message like:
ls: cannot access '/c/Users/dell/.ssh': No such file or directory
2. Generate a New SSH Key (if there is no SSH available else skip No. 2)
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Follow the prompts properly to save the key, and you can press Enter to accept the default file location. When prompted for a passphrase, you can choose to set one or leave it …