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 vote

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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

627 views 3 11
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