Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Atlassian Database Check Utility - No suitable driver found for jdbc:postgres

Andrew Samokish April 18, 2019

Hello, 

I`m trying to install Confluence 5.1.5 with custom PostgreSQL database to restore the existing database and then upgrade to a newer one.

I`m not able to connect to PostgreSQL server at the setup step, can you help me, please?

I did manage to setup testdatabase.jsp and got this result (https://confluence.atlassian.com/conf63/troubleshooting-external-database-connections-929729726.html):

Found driver (org.postgresql.Driver) on classpath Connection failed to open on the JDBC URL: java.sql.SQLException: No suitable driver found for jdbc:postgres://localhost:5492/test

I have PostgreSQL 9.2 installed on my PC (found, that Confluence 5.1.5 contains a driver for PostgreSQL 9.2) 

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 23, 2019

Hello Andrew,

Thank you for reaching out! Happy to help.

I believe your error might be due to a misconfiguration in the database URL, due to what I read from the article PostgreSQL: "java.sql.SQLException: No suitable driver found".

Have a look at our article on Database Setup for Postgresql for details:

The database URL is entered in this format:

jdbc:postgresql://<server>:<port>/<database>

For example:  
jdbc:postgresql://localhost:5432/confluence

If you need to connect to an SSL database, add the ssl=true parameter in the database URL. For example: 
jdbc:postgresql://localhost:5432/confluence?ssl=true

Your URL is using postgres rather than postgresql. I would recommend updating that and let me know if you're able to connect. 

In addition, due to the two recent security advisories, (Confluence Security Advisory - 2019-03-20 and Confluence Security Advisory - 2019-04-17), you will want to upgrade to the latest Confluence versions.

My recommended changes would be:

  1. Make sure your Postgres server is on version 9.4, 9.5, or 9.6. Create a new database for Confluence.
  2. Create a clean install of the latest Confluence version.
  3. Connect your new Confluence instance to the new database.
  4. Restore your Confluence site XML backup at this step. Note we do not recommend restoring from a database dump, the XML backup is the way to go.

Let me know if you have any questions about this.

Regards,

Shannon

Andrew Samokish April 23, 2019

Hello Shannon,

As I understand, to perform the XML backup I need to have a workable Counfluence (we have only database backup). 

And also I need to restore the old confluence before and perform the upgrade then.

I did manage to install the Confluence 5.1.5, the problem was related to JRE - the version #7 (not supported for now) was required to make it work.

Now we can perform XML backup and migrate to a newer Confluence.

I think the best possibility for us is to use Cloud Confluence instead of the local server.

Sincerely yours, Andrew

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 24, 2019

Andrew,

My apologies, as your message indicated you were migrating from 5.1.5, I was not aware that your previous installation was also not in working order. In addition, when migrating the initial step is to create the XML backup so I was not aware that you hadn't had a chance to do that yet.

If you wish to migrate from Server to Cloud, then you will want to upgrade first to 5.10 or higher so you can use the Server to Cloud migration tool.

Please review Plan your Confluence Server to Cloud Migration for full details on how to migrate to Cloud. Let us know if you have any question or get stuck along the way.

Regards,
Shannon

Like Andrew Samokish likes this
Andrew Samokish April 25, 2019

Thank you Shannon, those links and information are useful to me

Regards, 

Andrew

Like Shannon S likes this
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2019

You're welcome, Andrew!

Just let us know if you have any trouble during your migration.

Regards,

Shannon

Like Andrew Samokish likes this
Andrew Samokish April 26, 2019

I have another question about Attachments:

I have Confluence 5.1.5 working and i need to recover attachments form my old install (backup is broken :( )

i want to understand the Confluence storage system

found this:

https://confluence.atlassian.com/doc/hierarchical-file-system-attachment-storage-704578486.html

but when i did upload my file - i don`t have it in this structure and don`t have it in 'AttachmentsData' table.. where it could be (file is accessible)?

Andrew Samokish April 26, 2019

sorry, did check wrong folder

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2019

Hi Andrew,

Were you able to obtain the attachments when you discovered you were checking the wrong folder? 

Regards,

Shannon

Like Andrew Samokish likes this
Andrew Samokish April 26, 2019

Hello Shannon,

I have several Confluence installations, 64 and 32 bit (were looking for the solution of the first reported problem  - about the JRE). So i missed between two Program Files foldres - for 64 and 32 bit applications.

Regards, Andrew

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 30, 2019

Hi Andrew,

Thank you for letting me know! Could you let us know if you were able to complete the installation? Are you still having any issues?

Regards,

Shannon

Like Andrew Samokish likes this
Andrew Samokish May 15, 2019

now everything ok except the license. I would like to set the old license key but can`t find the way

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 16, 2019

Andrew,

What error are you getting about the license? Are you trying to change from an older license to a new one, or just add the license for the first time?

I'll share some documentation here that can help you, but we'll need to the exact issue you're having with the license.

Looking forward to hearing from you.

Regards,

Shannon

Andrew Samokish May 16, 2019

Hello Shannon,

Maybe I misunderstood something:

we have an old server with a very old expired license (expired on 2011).

but this license allows us to work on this server without Confluence updates and support.

Now we do investigate migration possibilities, so we did install a totally new server with the evaluation license. But when I do try to set the old (expired) license key instead of 'evaluation' one - I see the error 'Confluence support and upgrades for this license ended on 19 Oct 2011. This license is not valid.' , yet the installed Confluence version is also 'old' and satisfies the period of time when confluence license was OK

seems using this case is not possible and we need to purchase new one, right?

Sincerely yours, Andrew 

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2019

Andrew,

That's correct; you can use a license for as long as it's valid and that includes any updates released within that time period. 

If you want to install a version of Confluence that came out after the license expired, then you will need to renew it. You can go to https://my.atlassian.com to take care of that, or contact our Customer Advocates team directly at support.atlassian.com.

I hope that helps get you in the right directly, but let me know if you have any trouble.

Once you have your new license, you can update it with the information I provided you yesterday.

Take care!

Regards,

Shannon

Like Andrew Samokish likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events