Stash backup client - 401 Unauthorized

I have been unable to get the backup client working. I get the error "A backup could not be created. Reason: The Stash version could not be verified; the server returned 401 Unauthorized.".

This is odd because /rest/api/latest/application-properties is available to un-authenticated requests, returning {"version":"2.8.2","buildNumber":"2008002","buildDate":"1381752258426","displayName":"Stash"}

I have stash.user set to a dedicated user with ownership of the installation & home dir's.

What am I doing wrong?

Please advise.

-Rich.

2 answers

1 accepted

Hi Brent,

Thanks for your response.

I had tried both a stash user & a system user in backup-config.properties, but I had been enclosing the password in quotes which caused the the same issue regardless - oops.

It's all working now.

Cheers,

-Rich

1 vote
Brent Plump Atlassian Team Nov 06, 2013

Hi Rich,

There are two users involved in the backup:

  1. The OS user that runs the backup client - This user needs to have ownership of the Stash home directory.
  2. A user in Stash with system admin privileges - The backup client uses this user's credentials to lock Stash and request a database backup.

It sounds like you've put the OS user in the backup-config.properties file instead of the Stash system admin user.

If that doesn't help or I've misunderstood you, please raise a support request and we'll help figure this out: https://support.atlassian.com/browse/SSP

-- Brent

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,014 views 1 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you