"Could not load database connection" when importing from JIRA

I am trying to import users from an existing JIRA setup to our Crowd server. The products are running on different servers.

According to the JIRA information, the database URL is jdbc:postgresql://localhost:5432/jira, so on the Crowd "Atlassian Product Importer", I've changed this to jdbc:postgresql://<FQDN>:5432/jira. I've set the database driver to org.postgresql.Driver and I've set the username/password to the values in dbconfig.xml on the JIRA server.

When I try to continue, Crowd reports "Could not load database connection". I have checked that I can ping the JIRA server from the Crowd server and that the JIRA server doesn't have any iptable rules running.

Both servers are running Ubuntu. Crowd is 2.5.3 and JIRA is 5.0.2.

Any suggestions on how I can troubleshoot/proceed with this, please?



2 answers

1 accepted

Postgres can be blocking external connections:

Check the /etc/postgresql/./main/pg_hba.conf
You may need to add a line here to allow external connections.

host all all md5

Also check /etc/postgresql/./main/postgresql.conf to make postgres work on all network interfaces:

A line here may need to be added allowing external connections - to allow the range, add the line

Hope it helps!

Brilliant! Thank you.

As an update to this, I've tried putting the Crowd logging on maximum whilst trying to proceed with the import and the log doesn't make *any* mention of the JIRA server, perhaps suggesting that Crowd isn't getting as far as trying to make a connection to JIRA.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

152 views 1 17
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