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

BitBucket Server Authentication/Service won't start due to logon error: 1069

Keri-Lyn Crovo September 21, 2018

Hello.

I have installed BitBucket Server trial and am trying to set up a repository. You'll have to forgive me, I have only been testing out Git for a week or so, my small company would like to move to a different SCM (Not hosted, need a "central repository", BitBucket seems perfect since we are now considering Git).

Anyway, I'm going through all the motions and set up my Admin account (so far, only account for this instance).  I went through the instructions on the "You have an empty repository" page:

My code is ready to be pushed

If you already have code ready to be pushed to this repository then run this in your terminal.

cd existing-project
git init
git add --all
git commit -m "Initial Commit"
git remote add origin http://localhost:7990/scm/bit/baselinebbtest1.git
git push -u origin master

I did exactly this but when I do the push, I initially got a window for authentication - so I entered my Admin username/password but I got this anyway, and every time I do a push I get it:

$ git push -u origin master

fatal: Authentication failed for 'http://localhost:7990/scm/bit/baselinebbtest1.git/'

Any help you can provide would be fantastic.

2 answers

1 accepted

1 vote
Answer accepted
Keri-Lyn Crovo October 3, 2018

I believe I have figured it out - There were two issues and both got resolved.

The first was the ./atlassian user created for running the service on Windows. My work/network/machine does not allow any user to have "log on as a service" rights, due to policies in place with network users. I changed the service to use the "Local System" user, and the service runs and restarts no problem.

The second was Git Credential Manager (Windows).  When I had first installed Git for Windows, I mostly took all the default settings. One was to use Git Credential Manager.  I uninstalled Git and re-installed DESELECTING Git Credential Manager. This time, when I did the push to the repository, I was prompted for the Bitbucket username/password and it worked! 

My suggestion for Windows/Git newbies is not to use this Git Credential Manager with BitBucket Server, UNLESS Bitbucket figures out a way around this (detecting and ignoring?) during install.... or comes up with a way to disable GCM.

Thanks again SO MUCH for all your help!  Ya nevah know, I could be back!

KL

0 votes
NotTheRealStephenSifersNOPENOPENOPENOPE
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 21, 2018

Hello Keri-Lyn, Welcome to the community.

Just to confirm a couple this, you do have GIT installed on the same server as BitBucket (Sounds silly to ask but just want to confirm)?

Ensure the user that you are attempting to use is not locked out and has not triggered a captcha test.

Also check these:

https://confluence.atlassian.com/bitbucketserverkb/git-commands-return-fatal-authentication-failed-779171809.html

Keri-Lyn Crovo September 21, 2018

I do have Git installed on the same machine. I was able to add the BitBucket server as a remote respository.  I think part of the problem is, the Git bash window is no longer asking for credentials, and I have logged into BitBucket with the same user on the server (just the Admin) and had to do the captcha. I tried changing my user.name in the config (git config...) but it still won't ask me for credentials. Is there a way to clear or re-enter these credentials? I tried searching for the "baselinebbtest1.git" but can't find it...  Thanks

NotTheRealStephenSifersNOPENOPENOPENOPE
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 21, 2018

Since you have cleared the captcha, I would suggest going back through the repo setup steps. See if that re-prompts for your login info.

Let us know if it's still failing after re-trying.

Keri-Lyn Crovo September 24, 2018

Hi there - back from the weekend.

Well, I went to go back to my Bitbucket server administration to redo the repo setup steps, but it couldn't find the local server. I had the browser open all weekend so I closed all instances and attempted to restart the service (windows 7).  Now I get the following error:

Windows could not start the Atlassian Bitbucket AtlassianBitbucket service on Local Computer.

Error 1069: The service did not start due to a logon failure.

In the service properties, under logon is this user:

.\atlbitbucket

I believe when I installed Bitbucket server it created this windows user. I do not know the password or understand why it would have changed?  Am I missing something?

Keri-Lyn Crovo September 24, 2018

Me again....

So, I'm totally stuck. I thought maybe if I reset the password for atlbitbucket I could reset it in the service.  When trying to do that I got the following message:

"Resetting this password might cause irreversible loss of information for this user account. For security reasons, Windows protects certain information by making it impossible to access if the user's password is reset...."

So I'm not trying that.  Then I think I could try to uninstall and re-install BitBucket Server.  It does not appear to be listed in "Add/Remove programs" in Windows! 

I will try rebooting my machine, maybe somehow the service will start since it's set to Automatic. 

NotTheRealStephenSifersNOPENOPENOPENOPE
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2018

Keri-Lyn,

Sorry to hear you're having a bad experience with bitbucket. Do you have any data present within Bitbucket so far?

If not, then I would suggest uninstall and re-install as you have already had to modify a few items and accounts which may cause upgrades in the future to be problematic.

If you do have data, I would suggest reading through there KBs:

https://confluence.atlassian.com/bitbucketserver/lockout-recovery-process-776640158.html

https://confluence.atlassian.com/bitbucketserver/running-bitbucket-server-as-a-windows-service-776640048.html

Keri-Lyn Crovo September 25, 2018

No changes made to BitBucket... I had only started a project and was trying to add a particular repo that already existed...

I have nothing in Add/Remove programs for Bitbucket.  How do I uninstall?

 

Thanks for helping me on this.

NotTheRealStephenSifersNOPENOPENOPENOPE
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2018

The official uninstall documentation:

https://confluence.atlassian.com/bitbucketserverkb/how-to-uninstall-bitbucket-server-828789036.html

Please keep us updated as you progress through this. We want to ensure you are able to get up and running.

Keri-Lyn Crovo September 26, 2018

I uninstalled and will be starting over this morning. Fingers crossed!

NotTheRealStephenSifersNOPENOPENOPENOPE
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2018

Awesome, let us know if you need further assistance.

Keri-Lyn Crovo September 26, 2018

Uninstalled and Re-installed from Scratch... Following the tutorial https://confluence.atlassian.com/bitbucketserver/creating-repositories-776639815.html

I did:

git config --global user.name "TCGAdmin"
git config --global user.email "keri-lyn.crovo@g2tcg.com"

This time I chose to "I just want to clone this repository"

git clone http://localhost:7990/scm/tis/teams-in-space.git

And this is what I get:

Keri-Lyn@TCG7210 MINGW64 /c/TIS
$ git clone http://localhost:7990/scm/tis/teams-in-space.git
Cloning into 'teams-in-space'...
fatal: Authentication failed for 'http://localhost:7990/scm/tis/teams-in-space.git/'

What am I doing wrong???

NotTheRealStephenSifersNOPENOPENOPENOPE
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2018

Hey Keri-Lyn,

This is rather frustrating. I am scrubbing around to see if I can find a cause.

Most everything comes back to bad password, captcha or user lockout. I am still looking though.

NotTheRealStephenSifersNOPENOPENOPENOPE
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2018

I just noticed something, please attempt the following:

git config --global user.name "keri-lyn"
git config --global user.email "keri-lyn.crovo@g2tcg.com"

You have a different username then what matched your email. This might have been causing the problem. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events