Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Problem with mkstemp permission

Georg Baur December 28, 2020

Hi,

facing some problems with bringing my code per atlassian/rsync-deploy on my ubuntu server.

INFO: Executing the pipe..
INFO: Starting RSYNC deployment to serverIP:../../var/www/domain.com/*...
rsync -rp --delete-after --no-perms --exclude=wp-content/object-cache.php --exclude=wp-content/uploads/* . bitbucket@serverIP:../../var/www/domain.com/*
rsync: mkstemp /var/www/domain.com/htdocs/.git/.HEAD.zduRbf failed: Permission denied (13)

On staging with the same settings there is no problem.

My bitbucket-pipelines.yml is original with these changes:

EXTRA_ARGS: '--no-perms --exclude=wp-content/object-cache.php --exclude=wp-content/uploads/*'

Any idea, how I prevent generating this fault?

 

Thank you!

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 29, 2020

Hi @Georg Baur ,

Based on the output, it looks that rsync is trying to create a temporary file but fails due to permission errors.

When you define the pipe atlassian/rsync-deploy in your bitbucket-pipelines.yml file, you specify the user on the remote host to connect as.

Could you please check if this user has write permissions on the directory you are deploying to on your server?

Kind regards,
Theodora

Georg Baur December 29, 2020

Hi Theodora,

Thank you so much for your answer!

Yes, I've figured out the same in the meantime.

I don't know why, but the permissions were broke for some reason!
I added the user again, and now it seems to work as it should!

Thank you again!

Best,
Georg

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 5, 2021

You are very welcome, I'm glad to hear that you managed to sort this out!

Like Georg Baur likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events