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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

673 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot