Git/Troubleshooting
From ScientificComputing
Contrary to the login nodes, the compute nodes can not access the Internet directly. Therefore git will display an error message when you try to download a git repository as part of a batch job:
[leonhard@e1130 ~]$ git clone https://github.com/astropy/astropy.git Initialized empty Git repository in /cluster/home/leonhard/astropy/.git/ error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/astropy/astropy.git/info/refs fatal: HTTP request failed [leonhard@e1130 ~]$
This problem can be solved by configuring your git proxy settings first:
[leonhard@e1130 ~]$ git config --global http.proxy http://proxy.ethz.ch:3128 [leonhard@e1130 ~]$ git config --global https.proxy http://proxy.ethz.ch:3128 [leonhard@e1130 ~]$ git clone https://github.com/astropy/astropy.git Initialized empty Git repository in /cluster/home/leonhard/astropy/.git/ remote: Counting objects: 111782, done. remote: Compressing objects: 100% (60/60), done. remote: Total 111782 (delta 34), reused 0 (delta 0), pack-reused 111722 Receiving objects: 100% (111782/111782), 49.05 MiB | 12.84 MiB/s, done. Resolving deltas: 100% (85075/85075), done. [leonhard@e1130 ~]$
The global proxy configuration of git can be unset by the following commands:
git config --global --unset http.proxy git config --global --unset https.proxy
Your current git settings are stored in the file $HOME/.gitconfig.