Symptom
It's unable to build any branch in the Commerce Cloud which is working fine in the local. In Commerce Cloud portal build failure is showing.
Please find the attached error log from the build.
Error Details :
2024-09-16 05:56:42,833 INFO d.h.c.Builder [main] BUILD STARTED
2024-09-16 05:56:42,874 INFO d.h.c.Builder [main] Started task: checkCredentials
2024-09-16 05:56:42,876 INFO d.h.c.t.CheckCredentialsTask [main] Checking credentials to base image registry: modeltimagerepo.azurecr.io
2024-09-16 05:56:42,876 INFO d.h.c.i.r.DockerRegistryClient [main] Trying to authenticate in the registry modeltimagerepo.azurecr.io
2024-09-16 05:56:43,638 INFO d.h.c.i.r.DockerRegistryClient [main] Authentication to registry: modeltimagerepo.azurecr.io succeeded
2024-09-16 05:56:43,641 INFO d.h.c.t.CheckCredentialsTask [main] Checking credentials to project image registry: abc123.azurecr.io
2024-09-16 05:56:43,641 INFO d.h.c.i.r.DockerRegistryClient [main] Trying to authenticate in the registry abc123.azurecr.io
2024-09-16 05:56:43,834 INFO d.h.c.i.r.DockerRegistryClient [main] Authentication to registry: abc123.azurecr.io succeeded
2024-09-16 05:56:43,834 INFO d.h.c.Builder [main] Task finished: checkCredentials
2024-09-16 05:56:43,911 INFO d.h.c.t.ProgressAwareTask [main] Overall progress: 0
2024-09-16 05:56:43,912 INFO d.h.c.Builder [main] Started task: cloneCustomerProject
2024-09-16 05:56:43,916 INFO d.h.c.t.CloneCustomerProjectTask [main] Cloning the repository with project
2024-09-16 05:56:43,918 INFO d.h.c.r.g.GitCloner [main] Using ssh protocol
2024-09-16 05:56:43,918 INFO d.h.c.r.g.GitCloner [main] Private key provided, writing to disk
2024-09-16 05:56:43,919 INFO d.h.c.r.g.PrivateKeySaver [main] Key consists of 3 lines
2024-09-16 05:56:43,919 INFO d.h.c.r.g.PrivateKeySaver [main] Key header: -----BEGIN PRIVATE KEY-----
2024-09-16 05:56:43,921 WARN d.h.c.r.g.GitCloner [main] Known hosts are not provided
2024-09-16 05:56:43,926 INFO d.h.c.r.g.GitCloner [main] Git SSH command: ssh -o BatchMode=yes -i "/opt/workspace/build/private-key-directory/private-key-for-repository" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
2024-09-16 05:56:43,926 INFO d.h.c.r.g.GitCloner [main] Cloning repository ssh://git@github.com/abc/ERP-SAP-abc-123-Commerce.git, branch 000000_Image_Update
2024-09-16 05:56:43,926 INFO d.h.c.e.Executor [main] Executing [git, clone, --recursive, --single-branch, --depth, 1, --branch, 000000_Image_Update, ssh://git@github.com/abc/ERP-SAP-abc-123-Commerce.git, /opt/workspace/build/customer-project] in /opt/workspace/build, envs = {HOME=/opt/workspace/build/home-for-git, GIT_SSH_COMMAND=ssh -o BatchMode=yes -i "/opt/workspace/build/private-key-directory/private-key-for-repository" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no, GIT_CONFIG_NOSYSTEM=true}
2024-09-16 05:56:43,958 INFO d.h.c.h.PrintOutputHandler [Thread-1] sterr: Cloning into '/opt/workspace/build/customer-project'...
2024-09-16 05:56:44,295 INFO d.h.c.h.PrintOutputHandler [Thread-1] sterr: Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
2024-09-16 05:56:44,878 INFO d.h.c.h.PrintOutputHandler [Thread-1] sterr: ERROR: Repository not found.
2024-09-16 05:56:44,879 INFO d.h.c.h.PrintOutputHandler [Thread-1] sterr: fatal: Could not read from remote repository.
2024-09-16 05:56:44,880 INFO d.h.c.h.PrintOutputHandler [Thread-1] sterr:
2024-09-16 05:56:44,880 INFO d.h.c.h.PrintOutputHandler [Thread-1] sterr: Please make sure you have the correct access rights
2024-09-16 05:56:44,880 INFO d.h.c.h.PrintOutputHandler [Thread-1] sterr: and the repository exists.
2024-09-16 05:56:44,881 ERROR d.h.c.e.Executor [main] [FAILED] - Command git failed on retry 1 of 3, waiting 10 seconds before next attempt
de.hybris.ccv2.BuilderException: Executing of external command failed with exit code: 128
***Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.***
Read more...
Environment
SAP Commerce Cloud
Product
Keywords
build, git repo, ssh, sso , KBA , CEC-SCC-CLA-DEP , Deployments , 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.