SAP Knowledge Base Article - Preview

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

Symptom

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(Executor.java:86)
at de.hybris.ccv2.executor.Executor.executeWithRetry(Executor.java:113)
at de.hybris.ccv2.executor.Executor.execute(Executor.java:59)
at de.hybris.ccv2.repository.git.GitCloner.clone(GitCloner.java:97)
at de.hybris.ccv2.task.CloneCustomerProjectTask.process(CloneCustomerProjectTask.java:72)
at de.hybris.ccv2.Builder.runTask(Builder.java:256)
at de.hybris.ccv2.Builder.lambda$runTasks$5(Builder.java:223)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
at de.hybris.ccv2.Builder.runTasks(Builder.java:218)
at de.hybris.ccv2.Builder.run(Builder.java:100)
at de.hybris.ccv2.Builder.main(Builder.java:56)


Read more...

Environment

SAP Commerce Cloud in the Public Cloud

Product

SAP Commerce Cloud 1808 ; SAP Commerce Cloud 1811 ; SAP Commerce Cloud 1905 ; SAP Commerce Cloud 2005 ; SAP Commerce Cloud 2011 ; SAP Commerce Cloud 2105 ; SAP Commerce Cloud 6.7

Keywords

KBA , CEC-HCS-CCAZ-BUILD , Environment builds , 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.