SAP Knowledge Base Article - Preview

3205633 - Build failure. Could not read from remote repository.


You (userA) want to build from your repository (userA/repository.git), but the build fails with an error similar to this:

2022-05-19 19:32:35,603 INFO d.h.c.r.g.GitCloner [main] Cloning repository userB/repository.git, branch branchA
2022-05-19 19:32:35,603 INFO d.h.c.e.Executor [main] Executing [git, clone, --recursive, --single-branch, --depth, 1, --branch, branchAuserB/repository.git, /opt/workspace/build/customer-project] in /opt/workspace/build, envs = {GIT_CONFIG_NOSYSTEM=true, HOME=/opt/workspace/build/home, GIT_SSH_COMMAND=ssh -i /opt/workspace/build/private-key-for-repository -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o BatchMode=yes}
2022-05-19 19:32:35,615 INFO d.h.c.e.Executor [Thread-1] stderr: Cloning into '/opt/workspace/build/customer-project'...
2022-05-19 19:32:35,659 INFO d.h.c.e.Executor [Thread-1] stderr: Warning: Permanently added '...' (RSA) to the list of known hosts.
2022-05-19 19:32:35,715 INFO d.h.c.e.Executor [Thread-1] stderr: git@...: Permission denied (publickey).
2022-05-19 19:32:35,715 INFO d.h.c.e.Executor [Thread-1] stderr: fatal: Could not read from remote repository.
2022-05-19 19:32:35,715 INFO d.h.c.e.Executor [Thread-1] stderr:
2022-05-19 19:32:35,716 INFO d.h.c.e.Executor [Thread-1] stderr: Please make sure you have the correct access rights
2022-05-19 19:32:35,716 INFO d.h.c.e.Executor [Thread-1] stderr: and the repository exists.
2022-05-19 19:32:35,718 ERROR d.h.c.e.Executor [main] [FAILED] - Command [git] failed on retry 1 of 3, waiting 10 seconds before next attempt
2022-05-19 19:32:45,816 ERROR d.h.c.e.Executor [main] [FAILED] - Command [git] failed on retry 2 of 3, waiting 10 seconds before next attempt
Exception in thread "main" de.hybris.ccv2.BuilderException: Executing of external command failed with exit code: 128
at de.hybris.ccv2.executor.Executor.executeOperation(
at de.hybris.ccv2.executor.Executor.executeWithRetry(
at de.hybris.ccv2.executor.Executor.execute(
at de.hybris.ccv2.repository.git.GitCloner.clone(
at de.hybris.ccv2.task.CloneCustomerProjectTask.process(
at de.hybris.ccv2.Builder.runTask(
at de.hybris.ccv2.Builder.lambda$runTasks$5(
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(
at java.base/$Head.forEach(
at de.hybris.ccv2.Builder.runTasks(
at de.hybris.ccv2.Builder.main(



SAP Commerce Cloud


SAP Commerce Cloud all versions


build, failure, git, repository, remote, permission denied, publickey, could not read from repository, correct access rights , KBA , CEC-SCC-CLA-BUI , Build Process , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.