sonar4stash: connection refused

I installed sonar4stash using a trial license.  When I attempt to configure it, I get the error "An error occurred while connecting Sonar: Connect to 127.0.0.1:8500 failed: [/127.0.0.1] Connection refused.

I am running sonar on port 8500 locally.  It doesn't matter whether or not I put in the sonar username and password, it always gives the same error.

2 answers

0 votes

Hi Brian, 

Can you check if do you have some firewall blocking the access or if there is another application running on port 8500? If instead of you use the 127.0.0.1 and put your network addres e.g. 192.168.x.x is this work?

 

Also, doing a telnet on 127.0.0.1 on port 8500 you can establish the connection?

 

Regards, 
Renato Rudnicki 

If it says "connection refused", that means that something is running on that port, which may or may not be Sonar, that does not let you connect.

First you need to figure out what is listening on that port (on Windows: netstat -a -b) and then:

  • If it is not Sonar, change Sonar's port number to an unused one
  • If it is Sonar, check Sonar's logs/config to figure out why it refuses the connection.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

453 views 5 9
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