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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

Robocopy problems

I am attempting to copy files from the build directory to another server, using Robocopy.

When Bamboo launches the Robocopy command, I am getting an Access Denied error on the destination path.

When I copy/paste the Robocopy command from the log file into the Powershell, it works fine.....therefore there does not appear to be any permissions/security issues between the two boxes.

I only have an Administrator account doing everything, so it does not look like Bamboo can be launching the Robocopy command via a different account.

Any ideas why I get Access Denied through Bamboo, but can run the Robocopy command just fine from the command line?  This is maddening...

Please help!  Thank you!

 

1 answer

0 votes
Jimmy Seddon Community Leader May 02, 2020

Hi @Jerry Moseley,

First, quick question, is this being from from a local or remote agent?  I ask because that is important as to which user is running the command.  Also, as you are mentioning Robocopy I'm going to assume this is likely two Windows boxes, but could you please confirm that?

Here's what I know from my own experience, if you are running this from a remote agent it doesn't matter what user account the remote agent service is running, the remote agent will run tasks as the user 'bamboo'.  To get around this I wrote a PowerShell wrapper where I would pass in the credentials of the admin user account I wanted it to run as and spawned a new Powershell session as that admin user before running the robocopy command.

If this is running from a local agent check to make sure the Bamboo Server service is running as the Admin user account (or another admin user with proper permissions on the destination box) as tasks will run as the logon user for the service.

I hope that helps!

-Jimmy

Hi Jimmy,

Thank you for your help with this! It was set as run from the default local account (which is administrator), but I changed it to explicitly run as administrator and now it seems to be working! Thanks for your help!

-Jerry

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

477 views 5 7
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