Jira 3.11 - Network error IOException: Connection refused: connect

Hi,

I appreciate that its an old version and its highly advisable to upgrade - i will do once i get this problem resolved.

I am trying to move my Jira installation from server a to server b. Jira was running fine and pulling its data from the default database. When i have tried to change it to the MS SQL database the following error occurs:

2012-08-15

2012-08-15 13:16:30,803 Thread-1 ERROR [jira.appconsistency.db.DatabaseConsistencyCheck] There was a SQL exception checking for database driver correctness. Skipping.
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Network error IOException: Connection refused: connect)

I know the connection string is correct as i have logged into it management studio, SQL is running on the default port and the user is not the owner but part of the owner group.

SQL is SQL Express 2005.

Connection string is:

<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false">
          <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
            username="user"
            password="password"
            driverClassName="net.sourceforge.jtds.jdbc.Driver"
            url="jdbc:jtds:sqlserver://localhost:1433/database"
            maxActive="20" />

I tried change sqlserver to sqlexpress, no joy

Any help would be greatly appreciated.

Andrew

1 answer

1 votes

Is TCP/IP enabled: http://blogs.msdn.com/b/sqlexpress/archive/2005/05/05/415084.aspx ?

From memory I thought 1433 was not the right port of sqlexpress, but could be wrong.

In my SQL Server days I used to use portqry, which can query the browser service if you have that running: http://support.microsoft.com/kb/832919

To test anything is listening on that port you can run "telnet localhost 1433"

Argh!

How frustrating, although SQL Configuration said it was enabled on 1433, when i drilled down into the IP Address settings in TCP/IP - it was blank. Populated with 1433 and restarted SQL and were good to go.

Thanks for triggering that sequence of events!

Andrew

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,095 views 13 18
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
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