Unable to connect to github.com with a git:// protocol URL

While fetching a repository from GitHub, Jenkins connection times out and I get a following error message.

=============================
NOTE: recipe logrotate-3.12.3-r0: task do_fetch: Started
NOTE: recipe logrotate-3.12.3-r0: task do_fetch: Succeeded
NOTE: Running noexec task 2561 of 5013 (/var/lib/jenkins/workspace/yocto-rebound/meta-rebound/recipes-core/images/rebound-image.bb:do_fetch)
NOTE: Running task 2562 of 5013 (/var/lib/jenkins/workspace/yocto-rebound/meta-rebound/recipes-bsp/rebound-viewer/rebound-viewer.bb:do_fetch)
NOTE: recipe rebound-viewer-1.0-r0: task do_fetch: Started
ERROR: rebound-viewer-1.0-r0 do_fetch: Fetcher failure: Fetch command export PATH=“/var/lib/jenkins/workspace/yocto-rebound/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/var/lib/jenkins/workspace/yocto-rebound/scripts:/var/lib/jenkins/workspace/yocto-rebound/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/rebound-viewer/1.0-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/var/lib/jenkins/workspace/yocto-rebound/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/rebound-viewer/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/var/lib/jenkins/workspace/yocto-rebound/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/rebound-viewer/1.0-r0/recipe-sysroot-native/usr/sbin:/var/lib/jenkins/workspace/yocto-rebound/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/rebound-viewer/1.0-r0/recipe-sysroot-native/usr/bin:/var/lib/jenkins/workspace/yocto-rebound/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/rebound-viewer/1.0-r0/recipe-sysroot-native/sbin:/var/lib/jenkins/workspace/yocto-rebound/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/rebound-viewer/1.0-r0/recipe-sysroot-native/bin:/var/lib/jenkins/workspace/yocto-rebound/bitbake/bin:/var/lib/jenkins/workspace/yocto-rebound/build/tmp/hosttools”; export HOME=“/var/lib/jenkins”; git -c core.fsyncobjectfiles=0 ls-remote git://github.com/ajstarks/openvg failed with exit code 128, output:
fatal: unable to connect to github.com:
github.com[0: 140.82.114.4]: errno=Connection timed out

ERROR: rebound-viewer-1.0-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /var/lib/jenkins/workspace/yocto-rebound/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/rebound-viewer/1.0-r0/temp/log.do_fetch.26596
NOTE: recipe rebound-viewer-1.0-r0: task do_fetch: Failed
ERROR: Task (/var/lib/jenkins/workspace/yocto-rebound/meta-rebound/recipes-bsp/rebound-viewer/rebound-viewer.bb:do_fetch) failed with exit code ‘1’
NOTE: Running task 2563 of 5013 (/var/lib/jenkins/workspace/yocto-rebound/meta/recipes-extended/cronie/cronie_1.5.1.bb:do_fetch)
NOTE: recipe cronie-1.5.1-r0: task do_fetch: Started
NOTE: recipe cronie-1.5.1-r0: task do_fetch: Succeeded
NOTE: recipe opencv-3.3+gitAUTOINC+87c27a074d_2a9d1b22ed_a62e20676a_34e4206aef_fccf7cd6a4-r0: task do_fetch: Succeeded
NOTE: Tasks Summary: Attempted 2563 tasks of which 0 didn’t need to be rerun and 1 failed.

I was able ping the GitHub fine when Jenkins kicked off the build.

Any help is apprciated.

GitHub has ended support of the git:// protocol. Switch the repository URL from git:// to https://.

1 Like

I appreciate your prompt reply. I will keep you posted on how it goes.

I changed the URL to https:// but now I get following error. How do I add find the checksum of the openveg repository on the GiLab

WARNING: rebound-viewer-1.0-r0 do_fetch: Renaming /var/lib/jenkins/workspace/yocto-rebound/build/downloads/openvg to /var/lib/jenkins/workspace/yocto-rebound/build/downloads/openvg_bad-checksum_e6094ed116a4d31c15966428ef25e6fa
WARNING: rebound-viewer-1.0-r0 do_fetch: Checksum failure encountered with download of https://github.com/ajstarks/openvg;destsuffix=git/gl;name=openvg - will attempt other sources if available
ERROR: rebound-viewer-1.0-r0 do_fetch: Fetcher failure for URL: ‘https://github.com/ajstarks/openvg;destsuffix=git/gl;name=openvg’. Checksum mismatch!
File: ‘/var/lib/jenkins/workspace/yocto-rebound/build/downloads/openvg’ has md5 checksum e6094ed116a4d31c15966428ef25e6fa when 8d27337189c215d0f6d61b4e45a0c529 was expected
File: ‘/var/lib/jenkins/workspace/yocto-rebound/build/downloads/openvg’ has sha256 checksum 1bc097ef91b4bfdc4a6883714a39e04cf26e2984546c8b55de15229e56de3b45 when 55320b432ecbe7cd164da2e84769ed6c23f916f03925248ee2066dda8471a8b6 was expected
If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[openvg.md5sum] = “e6094ed116a4d31c15966428ef25e6fa”
SRC_URI[openvg.sha256sum] = “1bc097ef91b4bfdc4a6883714a39e04cf26e2984546c8b55de15229e56de3b45”
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.
.

You’ve now switched from asking a question about Jenkins to asking a question about your specific use of a particular tool in a specific repository. It seems likely that the only people who can help you with that question are the people who provided that tool.

It appears that the workspace name is yocto-rebound. I assume that means you’re working on something related to the Yocto development environment. One of the scripts in that environment is surprised by something in that workspace. You could try deleting the workspace to see if that resolves it. You could ask colleagues to see what they know about Yocto’s handling of something that Yocto calls a “Fetcher”.

Maybe :

https://www.yoctoproject.org/pipermail/yocto/2017-December/039418.html

Maybe:

Maybe:

https://yocto.yoctoproject.narkive.com/cpwZiyFN/fetcher-failure-for-url