Murmele / Gittyup

Understand your Git history!
https://murmele.github.io/Gittyup
MIT License
1.51k stars 112 forks source link

Cant login into corporate repos at bitbucket #492

Open MikeKholomeev opened 1 year ago

MikeKholomeev commented 1 year ago

Hi. I can't login into corp repos at bibtbucket. https://myName@stash.corpName.com/scm/projectName/projectName.git

What info do you need to investigate this?

Murmele commented 1 year ago

Hi,

did you use the "Add Remote Account" dialog? Did you enter there the username or the mail address?

MikeKholomeev commented 1 year ago

Just tried both ways - email and username. Same results image

Murmele commented 1 year ago

Thanks! I tried just once connecting to a bitbucket server and there I used ssh maybe you can consider this in the meantime?

MikeKholomeev commented 1 year ago

Sorry, cant do ssh. Only https.

( Switched to Aurees. It logins swiftly )

Murmele commented 1 year ago

Sorry for the inconvinience, the problem is I am not able to test it right now.

Murmele commented 1 year ago

@MikeKholomeev can you try to change the bitbucket url?

MikeKholomeev commented 1 year ago

@MikeKholomeev can you try to change the bitbucket url?

What do you mean? Change how?

exactly-one-kas commented 1 year ago

BitBucket on prem and cloud have different APIs and are therefore incompatible with each other We'd have to implement support for BitBucket Server, which will take quite a bit of work

However, you can still clone, fetch and push using git remotes with HTTP URLs - just having a list of available repositories for your account won't be available

MikeKholomeev commented 1 year ago

BitBucket on prem and cloud have different APIs and are therefore incompatible with each other We'd have to implement support for BitBucket Server, which will take quite a bit of work

However, you can still clone, fetch and push using git remotes with HTTP URLs - just having a list of available repositories for your account won't be available

I tested dozen git clients with the same Bitbucket corp repos - all connected successfully....except Gittyup. It cant fetch, clone etc.

Murmele commented 1 year ago

What do you set in those applications?

Murmele commented 1 year ago

Just username and password?

MikeKholomeev commented 1 year ago

Just username and password?

Yes

exactly-one-kas commented 1 year ago

What messages show up in the log at the bottom of the window when trying to fetch?

MikeKholomeev commented 1 year ago

After 5-7 consequent attempts:

 Unable to fetch from 'origin' - remote error: CAPTCHA required

Your Bitbucket account has been locked. To unlock it and log in again you must solve a CAPTCHA. This is typically caused by too many attempts to login with an incorrect password. The account lock prevents your SCM client from accessing Bitbucket and its mirrors until it is solved, even if you enter your password correctly.

If you are currently logged in to Bitbucket via a browser you may need to logout and then log back in in order to solve the CAPTCHA.

Visit Bitbucket at https://stash.[censored].com for more details.

MikeKholomeev commented 1 year ago

During that unsuccessful attempts - no messages were at the bottom part of the app window

Just reopens login popup

exactly-one-kas commented 1 year ago

Could you start Gittyup with the command line parameter --debug-menu and enable the Options "Log Remote Connection" and "Log Credential Helper"

The fetch once with your account unlocked and send us the files %LOCALAPPDATA%\temp\Gittyup\remote.log and %LOCALAPPDATA%\temp\Gittyup\cred.log after censoring sensitive information

MikeKholomeev commented 1 year ago

Only one file there - cred.log

exactly-one-kas commented 1 year ago

Looks like it could be a problem with the credhelper

Since we're having holidays in germany, so i'll be able to look into this on tuesday

Murmele commented 1 year ago

@MikeKholomeev Can you try with the development build

MikeKholomeev commented 1 year ago

@MikeKholomeev Can you try with the development build

Downloading...

MikeKholomeev commented 1 year ago

Same behavior. And no log files at %LOCALAPPDATA%\temp\Gittyup\

exactly-one-kas commented 1 year ago

Is your credential helper set to manager?

MikeKholomeev commented 1 year ago

Is your credential helper set to manager?

Sorry, don't know what it is or how to check it.

MikeKholomeev commented 1 year ago

image

exactly-one-kas commented 1 year ago

Try setting it to manager, Microsoft renamed it from manager-core

MikeKholomeev commented 1 year ago

Try setting it to manager, Microsoft renamed it from manager-core

I don't have such an option in the dropdown menu. Only - cache, store, wincred

MikeKholomeev commented 1 year ago

Try setting it to manager, Microsoft renamed it from manager-core

Simply delete -core part - nothing changed

MikeKholomeev commented 1 year ago

Tried all other three options - nothing changed

exactly-one-kas commented 1 year ago

Can you tell me which authentication plugins are used with your BitBucket instance?

MikeKholomeev commented 1 year ago

Can you tell me which authentication plugins are used with your BitBucket instance?

How can I check it?

MikeKholomeev commented 1 year ago

This is a screenshot from Sourcetree. Does it suffice? image

exactly-one-kas commented 1 year ago

Sorry, I meant the server-side plugins. Could you ask your sysadmin?

exactly-one-kas commented 1 year ago

Also, the BitBucket and plugin versions would be good to know

MikeKholomeev commented 1 year ago

Sorry, I meant the server-side plugins. Could you ask your sysadmin?

No :(

MikeKholomeev commented 1 year ago

I've just downloaded GitAhead (v2.6.3 Jul 14, 2020) and tried to fetch - entered the password - All Worked!

exactly-one-kas commented 1 year ago

Does Gittyup v1.1.2 work?

MikeKholomeev commented 1 year ago

Does Gittyup v1.1.2 work?

WOW! YEA! Its work! Thanks!

I see you removed some settings from Options, and removed App Options from gear icon.....

upd: oh, I see, its an old version :)

exactly-one-kas commented 1 year ago

Could you also try if v1.2.0 works?

MikeKholomeev commented 1 year ago

Could you also try if v1.2.0 works?

It does!!

MikeKholomeev commented 1 year ago

v.1.3.0 also doesnt open the latest repos at startup (as 1.2.0 and older versions do)

exactly-one-kas commented 1 year ago

Does v1.2.1 work?

v.1.3.0 also doesnt open the latest repos at startup (as 1.2.0 and older versions do)

That would be #329

MikeKholomeev commented 1 year ago

Does v1.2.1 work?

It works!

MikeKholomeev commented 1 year ago

1.2.2 - also works......eeeeerrrr.... Let me do clean install/

exactly-one-kas commented 1 year ago

~what~

~The only difference between v1.2.1 and v1.2.2 is the updater, which shouldn't have any influence on Windows builds~

~Did you use the development build originally instead of v1.2.2 when you openend this ticket?~

yeah, do that

MikeKholomeev commented 1 year ago

uninstall 1.2.2 - install 1.2.2 - Fetch works without asking password

Did you use the development build originally instead of v1.2.2 when you openend this ticket?

Now I'm siting and wondering..... And I cant check my old downloads coz I deleted them :(

Sorry for troubles :(

exactly-one-kas commented 1 year ago

Alright since it works now I'll assume that you used the development version, I'll check the changes between 1.2.2 and 1.3.0

MikeKholomeev commented 1 year ago

I looked through Google download history and that what I found: image

So It really was 1.2.2 ....

How should I uninstall GittyUp in order to remove all records? .....I think after I entered password at 1.1.2 - app records it and all other version use that record

MikeKholomeev commented 1 year ago

v.1.2.2 - Yep - I unchecked "Store credentials in secure storage" - and error returns - I cant fetch

Now I try the same with older versions

exactly-one-kas commented 1 year ago

That could be the case - the password should be stored in the Windows vault (search for "manage credentials")

Also: do you have Git for Windows installed normally?

MikeKholomeev commented 1 year ago

Also: do you have Git for Windows installed normally?

image