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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Problem with mkstemp permission Edited


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/*...
rsync -rp --delete-after --no-perms --exclude=wp-content/object-cache.php --exclude=wp-content/uploads/* . bitbucket@serverIP:../../var/www/*
rsync: mkstemp /var/www/ 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

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,

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!


Like Theodora Boudale likes this

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
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,323 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you