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

Device not configured error.

Sreelakshmi Dodderi April 5, 2018

I got the latest version of sourcetree yesterday. (April 4th 2018) I am unable to push my code changes to remote . I see the below error. How ever I have my password set up in sourcetree for my bitbucket account.

Please help. 

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags --set-upstream origin refs/heads/feature/branchName:refs/heads/feature/branchName

Pushing to https://sdodderi@bitbucket.org/domainName/projectname.git

fatal: could not read Password for 'https://sdodderi@bitbucket.org': Device not configured

Completed with errors, see above

21 answers

1 accepted

3 votes
Answer accepted
Ryan Sherman April 7, 2018

Downgrading to version 2.7 got me back and working until the issue can be sorted out. Check out the  Download Archive.

Guilherme Sol Duschenes May 17, 2019

For me only 2.7 worked  - 2.7.4 was no good

Tulleb November 10, 2020

This answer is not acceptable anymore. We are in 2020 and we should not have to downgrade to 2.7 as being in 4.0+.

Please upvote for visibility: https://community.atlassian.com/t5/Sourcetree-questions/REOPEN-Device-not-configured-error/qaq-p/1528957#M37492

Like # people like this
jamie November 10, 2020

My fix, which appears to be working on 2x Windows machines and 1x MacBook Pro, is to setup SSH and remove all password related things (such as keychain in MacOS). This has worked for me for a couple of months now.

8 votes
Marcel POLO February 21, 2019

Same issue in february 2019 !

Is there a chance to have an update that fix that pb ?

(3.1.3 v)

Thanks

Thorsten Schneider March 4, 2019

Same problem here with 3.1.1 (213) when I want to finish a feature.

BTW: How did you get 3.1.3? Update tells me I'm on the newest Version...

Deleted user March 11, 2019

Same problem here with 3.1.1 on a MAC, I also have the same problem on a windows 10.

slownet April 5, 2019

same problem 3.1.2 on MacOS

Ankit Kumar July 11, 2019

same problem with 3.2.1 on MacOS Mojave

Marcel POLO July 11, 2019

Is there anybody on atlassian ?

no answer !!!

Alfonso_Israel_Osorio_Avilez July 15, 2019

Same issue with 3.2.1 on MacOs Mojave 

Ashutosh Dave July 18, 2019

I'm having same issue with 3.2.1 on macOS Mojave.

frankvb July 25, 2019

I'm having the same issue (with 3.1.2 (216)). It seems to only happen when I've pushed the feature branch to the remote. I did found a workaround, though. Just set your HEAD to develop and use 'Merge' instead.

Tulleb September 29, 2020

We are now in 2020 and I still have to downgrade to 2.X version in order to fix this.

Atlassian come on...??

TrogWarZ November 10, 2020

Cmon! I'm in 2020 with version 4.0.1 (234) on macos 10.15.7 and still having same issue. Click on "Convert to ssh" just make "error-bump-sound" without any errors.

Tulleb November 10, 2020

This answer is not acceptable anymore. We are in 2020 and we should not have to downgrade to 2.7 as being in 4.0+.

Please upvote for visibility: https://community.atlassian.com/t5/Sourcetree-questions/REOPEN-Device-not-configured-error/qaq-p/1528957#M37492

4 votes
dorian_tudorache March 20, 2019

I've used to be having the same issue and fixed it by right-clicking the repo in the main window and selecting 'Convert to SSH' -> so was my Github account connected through, using SSH. Restarting the app is also encouraged after doing so.

Jungho March 22, 2019

It works!! Thank you so much

jeff September 13, 2019

Worked for me. Thank you Dorian!

rtovar_lactapp November 6, 2019

Thank you so much 🎉

harjit_sahota March 31, 2020

Worked for me too!

3 votes
PeterDev September 18, 2020

FIX IT (09/2020)

All the the answers here are wrong... You shouldn't NEVER do something like that:

https://username:PASSWORD@Bitbucket.org


SOLUTION
All you have to do is:

- Go to Sourcetree -> Preferences -> Git
- You will have the section "Git Version" with 2 options: Reset to ebedded Git and Use System Git

Sourcetree use the Ebedded git for default.
Click on "Use System Git" and.... Fixed!

---------------

Follow me on:
GIthub
Twitter

wlwlwl May 25, 2022

"Use System Git" works for me. sourcetree 4.1.6, macos 10.15.7

2 votes
davidopensolutions April 1, 2020

I tested many of the solutions that are explained here, but finally the only that really worked for me was this (for Mac users only):

https://gist.github.com/RockinPaul/6b012b106c4175469ee39bde12fb67f7

jamie August 12, 2020

Thank you!

I updated to 4.0.2 and presumed the issue would be fixed, but it wasn't.

Ran the terminal commands and boom! Instant fix.

Edwin Klesman October 15, 2020

I did the following steps to get my Mac OS Sourcetree working with a GitHub Private Repo:

  1. Run the console commands as indicated in the Gist
  2. Go to preferences, add account > Github, Basic (not oAuth!! << important), Username, Password, SSH
  3. Restart the application

 

Now creating, finishing features, pushing changes etc. work

1 vote
Deleted user November 30, 2020
1 vote
Alexander Joiseus September 20, 2018

@luckyclan @Virl I downgraded to 2.7.2 and I can now use the finish feature. I guess I will just stick to 2.7.2

Zoran Gavric November 18, 2018

Worked for me

1 vote
Brill_Pappin June 8, 2018

I just updated to version 2.7.5 (176) and its happening again.

I would really like to trust SourceTree not to interrupt my work day, but I'm getting pretty tired if having to back out the version

1 vote
Sreelakshmi Dodderi April 7, 2018

 

@Manju restarting Mac did not help me. 

@Ryan Sherman thanks, downgrading to version 2.7 fixed all the problems. 

@bitkid @Soumyadeep Ganguly You guys also might want to try downgrading sourcetree to version 2.7 

bitkid April 9, 2018

This worked for me.

I am not sure what is going on but I made sure everything was set to basic / https

the oauth / ssh VS basic / https WAR continues

Tommy Kye October 24, 2018

@Sreelakshmi DodderiThanks, upgrade to 3.0 resolved this issue.

1 vote
bitkid April 7, 2018

@Manju
same problem here, just suddenly started happening. can't push or fetch

1 vote
Soumyadeep Ganguly April 7, 2018

any update here? I am also facing the same problem in Macbook. Now am at a stage where i cant push anything

0 votes
gchaney May 15, 2019

Using Visual Studio Mac with Source Tree 3.1.2  My machine already has ssh keys, etc., for other projects on BitBucket

I had a local repo for a project that was mature enough to put in the cloud. So I created new bitbucket repo.  I could not get the instructions for Visual Studio Mac to add remote repo to work, so I opened Source Tree and opened the local repo. 

Then I went to Menu -> Repo Settings and then Remotes tab.  I added the URL of the newly created Repo.   But, here is the catch: 

The URL of the page you create will be something like: 

https://bitbucket.org/teamname/reponame/src/

That is not correct, but SourceTree will accept that URL. And then fail (with the error in this issue) when you try to push to it..

What you actually want is:

https://bitbucket.org/teamname/reponame.git

0 votes
Roni Leshes October 23, 2018

I encountered this issue when trying to use the "finish" action on a release branch.
For some reason, the same action works for a feature branch.

I tried some of the answers above.

I tried changing my account settings to SSH. There's a button there that says "connect your account". This opens a mini browser that simply does nothing but directing you to bitbucket's login.
Only other option for you beside surfing the web is clicking cancel, which obviously not connects the account to SourceTree.
Could only connect via basic method, but this didn't change anything.

I tried some other solutions from the threads provided by other people in this thread and nothing works.

Only solution worked for me was the last thing I wanted to do, and is downgrading to 2.7.2.
And to be honest? This is the exact same version as 2.7.6 but without bugs. There's  nothing new  that worth that headache so just downgrade to 2.7.2.

0 votes
luckyclan October 9, 2018

There is a separate thread, and somebody published working workaround:

Try change repository link format from "https://username@bitbucket.org" to "https://username:password@bitbucket.org"

Yes, it is not safe, but it is working!

 

Another thread is here:

https://community.atlassian.com/t5/Sourcetree-questions/Fatal-could-not-read-Password-for-https-username-bitbucket-org/qaq-p/768105

0 votes
luckyclan September 4, 2018

Bug is still not fixed.

But there is a workaround: go to Sourcetree>Preferences>Accounts, select account, tap Edit and change protocol from HTTPS to SSH. You have to generate SSH key and add it in bitbucket profile settings to make it work.

The interesting thing is that everything works fine on other computer in our office, no need to change to SSH there. It uses exactly the same repository settings, but different user profile.

0 votes
Virl August 22, 2018

Issue is still present in 2.7.6 (177) — git flow is broken because of it.

 

What the hell Atlassian?

0 votes
bitkid June 8, 2018
Hi do you guys test fresh installs of sourcetree from scratch?&nbsp;
I installed on clients mac and got the same error everyone is getting above.&nbsp;
We uninstalled and installed version 2.7 and everything was fine. The latest version available is broken
0 votes
Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 9, 2018

We identified the issue here and hot fixed it over the weekend. Please update the build to 2.7 (167) and you should be good with this version. Sincere apologies for the inconvenience and appreciate the patience. 

Thanks,
Manjunath
Sourcetree Mac Developer

Som Shahapurkar April 13, 2018

Hi Manju,

With build 2.7 (159) I got this error

Something went wrong. one or more parameters required to renew token is nil. 

With build 2.7 (165) I got this error...

Device not configured

With build 2.7 (167) I get this error...

The remote service said: 'The operation couldn’t be completed. (SDNetDomain error 7.)'

I tried the archive build to 2.7 (152) and got...

Something went wrong. one or more parameters required to renew token is nil. 

...

So command line it is!

Best,

Som.

Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 13, 2018

Hi @Som Shahapurkar

Can you confirm the remote host you were trying to connect and whether the account was added to Sourcetree?

Thanks,
Manjunath
Sourcetree Mac Developer

Som Shahapurkar April 14, 2018

Hi @Manju,

Thank you for your prompt response.

Seems like when the account was added to Sourcetree, it fails.

I deleted the account and used 'Clone in SourceTree' from bitbucket web, now it works fine.

Thanks,

Som.

Virl August 22, 2018

It is not fixed, it is still present in 2.7.6 (177) on Mac.

0 votes
Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 6, 2018

Hi @Sreelakshmi Dodderi

There seems to be some oddity with keychain and macOS that causes this issue. I faced the same a couple weeks back and just had to restart to my Mac to get it fixed. Give it a try and let me know If it works for you. If it doesn't, please remove the account and add it again. You can enable a debug menu from Preference window -> Advanced tab and set debug logging and enable auth logs to help us get all the logs in case of failures. 

Thanks,
Manjunath
Sourcetree Mac Developer 

Ryan Sherman April 6, 2018

I have tried everything you mentioned and can't get it to work again. I have the same exact issues after upgrading yesterday. I have disabled 2FA on GitHub, reset by personal access token, remove the account and added it again, remove my github keychains, reset my machine, tried basic, oAuth with SSH and HTTPS and nothing has worked. Please help I am starting to lose my mind!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events