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

0 votes
Accepted answer

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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

439 views 6 9
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