Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline suddenly started to fail with Permission denied (public key)?

Anup Borde
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!
July 18, 2019

Hi I am new to setting up a pipeline using bitbucket.Working on a old code was able to deploy upuntil yesterday but it suddenly stopped working since today morning.

Unable to deploy code since morning I am getting the following error :-

+ ssh ${HOST_USERNAME}@${HOST_URL} " cd ${PROJECT_ROOT_STAGING} && echo ${BITBUCKET_COMMIT} > latest_deployment && git pull && yarn && yarn build && pm2 restart ${PM2_PROCESS_NAME_STAGING}"username@bitbucket.org: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.

I was able to deploy a day before but it suddenly stopped working today.

 

 

1 answer

0 votes
Alex Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 24, 2019

Just wondering if your pipeline is configured to use the SSH key of ${HOST_USERNAME}?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events