Unauthorized fatal: Could not read from remote repository.

Muhammad Hassan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2024

Hi everyone!
I am working on a bitbucket pipeline. I have a workspace with multiple repositories. Previously, I was able to fetch and clone all the repos from the workspace. But now, I don't know whats happening, it is clonning some repositories from the workspace while giving this error on other repositories in workspace


Warning: Permanently added the ECDSA host key for IP address 'XXX.XX:XX:XXX' to the list of known hosts.
Unauthorized
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.


A little background of my work, 
I am creating a custom user in container and shifting the private ssh-key from /opt/atlassian/pipelines/agent/ssh/ /home/customuser/.ssh/ folder. I previosuly fixed all issues and it was working fine too. But after playing a little bit with pipeline, I am not able to fix it up again. Even when I run pipeline on the commit which was working, it is givinge me above error for some repos while easily clonning some repos from the same workspace.

Any indication of this error from the community will be highly regarded.

1 answer

1 vote
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 21, 2024

Hey @Muhammad Hassan 

Welcome to the community!

Can you check our blog on cloning from another repository via pipeline and see if that helps you figure out the issue?

Cloning another Bitbucket repository in Bitbucket Pipelines 

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events