So just trying out stash. Used one machine, everything was fine. But now installed it on a second machine, created a project, repository, cloned the repository on local workspace, made a change, commited and while trying to push the change from local repository to the stash, getting error like

remote: Could not create socket to ping Stash: Connection refused

Full output

$ git push --all

Password for 'http://mmia@localhost:7990':

Counting objects: 3, done.

Writing objects: 100% (3/3), 204 bytes | 0 bytes/s, done.

Total 3 (delta 0), reused 0 (delta 0)

remote: Could not create socket to ping Stash: Connection refused

To http://mmia@localhost:7990/scm/test/test.git  

   ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'http://mmia@localhost:7990/scm/test/test.git '

 

Any clue?

3 answers

This widget could not be displayed.

The log file

C:\Atlassian\ApplicationData\Stash\log\audit\atlassian-stash-audit.txt 

produces the following everytime push fails

0:0:0:0:0:0:0:1 | AuthenticationFailureEvent | mmia | 1421860866355 | mmia | {"authentication-method":"basic","error":"Invalid username or password."} | @19Y829Tx1041x99x0 | -

 

mmia is my username and the password is correct.

Adam Ahmed Atlassian Team Jan 21, 2015

That's probably irrelevant. As I understand it, Git tries a few different protocols before actually using the right credentials. One of those might be causing this. Disclaimer: Git internals is not my forte and I could be very wrong.

This widget could not be displayed.
Adam Ahmed Atlassian Team Jan 21, 2015

I would suggest you open a support ticket for this at support.atlassian.com. I've not personally seen this before and I suspect wed need to dig in a bit deeper to figure it out. Best of luck!

This widget could not be displayed.
Daniel Wester Community Champion Jan 21, 2015

Check the repository's hook configuration:

   ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'http://mmia@localhost:7990/scm/test/test.git '

That seems to suggest that you're actually able to connect to stash through git but a pre-receive hook is declining. Do you have any add ons installed that might be interfering?

Thanks for replying. I haven't added any add ons. This was a vanilla installation. I have tried the installation on a different Windows Installation and doesn't seem to have the problem.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

270 views 14 2
Join discussion

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