Upgrade error with postgres driver

Hi all,

I had a 5.0 TeamCity installation and I upgraded it to 5.1.2 by simply replacing the TeamCity folder with new one and changing database.properties files to match new example.

However this is the problem I am getting when going to TeamCity page:

Error on step: Waiting for a database server...
Database driver not found:
Unexpected error calling  DriverManager.getDriver("jdbc:postgresql://localhost:5432/teamcity"): No  suitable driver
SQL exception: No suitable driver

Database is certanly up and running, so not really sure what that can be.

Any sugestion how to fix greatly appreciated!

Thanks.

PS Below is config file

connectionUrl=jdbc:postgresql://localhost:5432/teamcity
connectionProperties.user=[username]
connectionProperties.password=[password]
maxConnections=50
testOnBorrow=false

3 comments

Ok, I've fixed it by downloading a jdbc driver from postgres here http://jdbc.postgresql.org/download.html

Now I have different problem:

Error on step: Maintaining the database schema...

Database version mismatch:
Database version mismatch: Configuration version is 378 but Database  version is 343.


Any ideas on how to upgrade the database schema?


Thanks!
0

Please make sure you've followed our upgrade instructions: http://confluence.jetbrains.net/display/TCD5/Upgrade
If not, try to restore from backup (I hope you have one) and try again.

0

Ok It may be due to Driver capability try another JDBC Driver Download from Data direct.

0

Please sign in to leave a comment.