Sourcetree with Mercurial (Mac) auth problems. Can't push.

We have a Mercurial repository on kiln and I am able to see all the revisions in Sourcetree. However I am unable to push files. I keep getting:

ignoring invalid [auth] key 'username'

ignoring invalid [auth] key 'password'

Here is what I've tried. No matter what I do, I can not get these errors cleared and can't push files.

  • I have gone through all the settings but can't figure out what's going on. My keychain app doesn't have an entry for Sourcetree, but it does for kiln. Also I've included my username in the URL.
  • In the Sourcetree bookmarks settings, I edited the entries to include the password.
  • I had previously been using TortoiseHG for Mac and did not have those extensions checked. Tried checking them but no difference either way.
  • I deleted the keys from and was hopeful when Sourcetree then prompted me for username and password - and I had it re-save to the keychain. However still get errors when trying to push.

What am I missing?

1 answer

Sorry, figured it out. I hadn't scrolled down to see the rest of the error. There was a problem with a remote head and I hadn't merged. Once I did that I was able to push.

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

454 views 7 16
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot