concourse: Could not read from remote repository.
Summary
I upgraded from version 6.5.5 to version 7.0.0.
Since then, I am unable to clone a git resource. I use a private SSH key for repo authorization.
resources:
- icon: gitlab
name: concourse-ci-pipelines
source:
branch: develop
private_key: (("gitlab.xyz.com.ssh_private_key))
uri: git@gitlab.xyz.com:summit/common/tools/concourse-ci-pipelines.git
I redeployed Concourse v6.5.5 with the same deployment scripts. It works very well. I start the procedure again by changing only the version number to v7.0.0 and I still get this result:
selected worker: prd-concourse-worker-67449cbb77-ct77j Identity added: /tmp/git-resource-private-key Cloning into ‘/tmp/git-resource-repo-cache’… fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Do you have an idea how to diagnose this problem?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 22 (8 by maintainers)
Maybe I should go out for lunch more often 😉
The issue started with release 7.0.0 with default runtime.
Exactly
Default values will reproduce the issue
Maybe try this:
I followed the recommendation to enable containerd:
CONCOURSE_RUNTIME=containerdthen I remembered I need to force the DNS, which was previously done in garden-config.ini, but the release notes suggest doing this now:
CONCOURSE_CONTAINERD_DNS_SERVER=192.168.1.1so I think my sequence was:for clarity, the reason I’m setting the DNS server this way is because of what’s mentioned in https://concourse-ci.org/concourse-worker.html#troubleshooting-and-fixing-dns-resolution (which might need to be updated for containerd now?)
@taylorsilva With the tag set to 1.12.0, it does not work. It may be related to one of the following two :
SSH_ASKPASS_REQUIRE=force
alpine:3 to alpine:latest
This has been introduced in version 1.12.0
@taylorsilva Thank you for your reply. I think we’re starting to narrow down the problem. It works fine with the following:
Version 1.11.0 works well. It seems that something was introduced in version 1.12.0 that creates a problem.