# No database connections

**URL:** <https://forum.servoy.com/t/no-database-connections/13229>\
**Category:** Classic Servoy\
**Created:** [November 24, 2010, 12:20pm UTC](https://forum.servoy.com/t/no-database-connections/13229 "2010-11-24T12:20:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yummy](https://avatars.discourse-cdn.com/v4/letter/y/7ba0ec/32.png) [@Yummy](https://forum.servoy.com/u/Yummy)\
**Post date:** [November 24, 2010, 12:20pm UTC](https://forum.servoy.com/t/no-database-connections/13229/1 "2010-11-24T12:20:12Z")

</div>

I’ve just done a new install of 5.2 and get the following error whenever I try and enable the repository server (all database servers after install show an error).

“Connection Refused chek that the hostname and port are correct and that the postmaster is accepting TCP/IP connections”

I’ve disabled the firewall and tried again but still get the same error. I’ve added a new Mysql database and that connects fine.

Any suggestions would be appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [November 24, 2010, 1:05pm UTC](https://forum.servoy.com/t/no-database-connections/13229/2 "2010-11-24T13:05:39Z")

</div>

Did you check if PostgreSQL is running ?

---

<div class="post-metadata">

**Author:** ![Yummy](https://avatars.discourse-cdn.com/v4/letter/y/7ba0ec/32.png) [@Yummy](https://forum.servoy.com/u/Yummy)\
**Post date:** [November 24, 2010, 1:08pm UTC](https://forum.servoy.com/t/no-database-connections/13229/3 "2010-11-24T13:08:34Z")

</div>

Heres the log … theres no firewall running,

org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:122)  
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)  
at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:116)  
at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)  
at org.postgresql.jdbc3.Jdbc3Connection.(Jdbc3Connection.java:24)  
at org.postgresql.Driver.makeConnection(Driver.java:369)  
at org.postgresql.Driver.connect(Driver.java:245)  
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)  
at com.servoy.j2db.Za.Za.Zd.createConnection(Zd.java:4)  
at com.servoy.j2db.Za.Za.Zo.makeObject(Zo.java:33)  
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:816)  
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)  
at com.servoy.j2db.Za.Za.Za.getConnection(Za.java:48)  
at com.servoy.j2db.server.Zc.Zo.Zg(Zo.java:1365)  
at com.servoy.j2db.server.Zc.Zo.testConnection(Zo.java:858)  
at com.servoy.j2db.server.ApplicationServer.initStandalone(ApplicationServer.java:437)  
at com.servoy.j2db.server.starter.StandaloneServerStarter.initFromDeveloper(StandaloneServerStarter.java:10)  
at com.servoy.j2db.server.starter.EclipseServerStarter.startApplicationServer(EclipseServerStarter.java:2)  
at com.servoy.eclipse.appserver.Activator.startAppServer(Activator.java:148)  
at com.servoy.eclipse.core.ServoyModel.startAppServer(ServoyModel.java:464)  
at com.servoy.eclipse.core.util.SplashHandler$1.run(SplashHandler.java:52)  
at java.lang.Thread.run(Unknown Source)  
Caused by: java.net.ConnectException: Connection refused: connect  
at java.net.PlainSocketImpl.socketConnect(Native Method)  
at java.net.PlainSocketImpl.doConnect(Unknown Source)  
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)  
at java.net.PlainSocketImpl.connect(Unknown Source)  
at java.net.SocksSocketImpl.connect(Unknown Source)  
at java.net.Socket.connect(Unknown Source)  
at java.net.Socket.connect(Unknown Source)  
at java.net.Socket.(Unknown Source)  
at java.net.Socket.(Unknown Source)  
at org.postgresql.core.PGStream.(PGStream.java:60)  
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)  
… 21 more  
2010-11-26 09:41:31,220 ERROR [main] com.servoy.j2db.server.Zc.Zo - org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
2010-11-26 09:41:32,204 ERROR [main] com.servoy.j2db.server.Zc.Zo - org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
2010-11-26 09:41:33,298 ERROR [main] com.servoy.j2db.server.Zc.Zo - org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
2010-11-26 09:41:34,392 ERROR [main] com.servoy.j2db.server.Zc.Zo - org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
2010-11-26 09:41:35,485 ERROR [main] com.servoy.j2db.server.Zc.Zo - org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
2010-11-26 09:41:36,579 ERROR [main] com.servoy.j2db.server.Zc.Zo - org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
2010-11-26 09:41:37,564 ERROR [main] com.servoy.j2db.server.Zc.Zo - org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
2010-11-26 09:41:41,282 ERROR [Worker-6] com.servoy.j2db.server.Zc.Zo - Final get connection failure for server repository\_server in 1 times  
2010-11-26 09:41:42,267 ERROR [Worker-6] com.servoy.j2db.server.Zc.Zo - Final get connection failure for server bug\_db in 1 times  
2010-11-26 09:41:43,251 ERROR [Worker-6] com.servoy.j2db.server.Zc.Zo - Final get connection failure for server example\_data in 1 times  
2010-11-26 09:41:44,345 ERROR [Worker-6] com.servoy.j2db.server.Zc.Zo - Final get connection failure for server log\_server in 1 times  
2010-11-26 09:41:45,439 ERROR [Worker-6] com.servoy.j2db.server.Zc.Zo - Final get connection failure for server pdf\_forms in 1 times  
2010-11-26 09:41:45,439 ERROR [main] com.servoy.j2db.server.Zc.Zo - org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
2010-11-26 09:41:46,532 ERROR [Worker-6] com.servoy.j2db.server.Zc.Zo - Final get connection failure for server udm in 1 times  
2010-11-26 09:41:47,517 ERROR [main] com.servoy.j2db.server.Zc.Zo - org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
2010-11-26 09:41:47,517 ERROR [Worker-6] com.servoy.j2db.server.Zc.Zo - Final get connection failure for server user\_data in 1 times  
2010-11-26 09:42:02,173 ERROR [Worker-0] com.servoy.j2db.server.Zc.Zo - Final get connection failure for server repository\_server in 6 times

---

<div class="post-metadata">

**Author:** ![Yummy](https://avatars.discourse-cdn.com/v4/letter/y/7ba0ec/32.png) [@Yummy](https://forum.servoy.com/u/Yummy)\
**Post date:** [November 26, 2010, 2:31pm UTC](https://forum.servoy.com/t/no-database-connections/13229/4 "2010-11-26T14:31:13Z")

</div>

Firewall switched off, any suggestions as to why Postgres is not starting or fix ?

Is there a way to start postgres manually?

I’ve had the same issue on new 2003 and 2008 VPS servers. Therefore I can only assume something is not running on the servers which is required for the install.

---

<div class="post-metadata">

**Author:** ![Yummy](https://avatars.discourse-cdn.com/v4/letter/y/7ba0ec/32.png) [@Yummy](https://forum.servoy.com/u/Yummy)\
**Post date:** [November 26, 2010, 3:03pm UTC](https://forum.servoy.com/t/no-database-connections/13229/5 "2010-11-26T15:03:27Z")

</div>

I’ve had a look and compared the failed installations with a 5.2 install on windows 7 system and I notice the folder E:\servoy\application\_server\database is empty on the the failing installs where as in the w7 install its full of files and folders. Is this related I’ve no idea what and how these folders are used in w7 and why on the w2003 an w2008 servers they are empty.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [November 26, 2010, 4:19pm UTC](https://forum.servoy.com/t/no-database-connections/13229/6 "2010-11-26T16:19:06Z")

</div>

check this thread:

[http://forum.servoy.com/viewtopic.php?f … 332#p81361](http://forum.servoy.com/viewtopic.php?f=34&t=15112&sid=18f08b643d6b7a0e41f3dd8115d9a64c&p=81332#p81361)

---

<div class="post-metadata">

**Author:** ![Yummy](https://avatars.discourse-cdn.com/v4/letter/y/7ba0ec/32.png) [@Yummy](https://forum.servoy.com/u/Yummy)\
**Post date:** [November 27, 2010, 5:22am UTC](https://forum.servoy.com/t/no-database-connections/13229/7 "2010-11-27T05:22:00Z")

</div>

Thanks that thread had the solution.

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [December 14, 2010, 4:27pm UTC](https://forum.servoy.com/t/no-database-connections/13229/8 "2010-12-14T16:27:53Z")

</div>

This issue will be fixed in Servoy 5.2.5 (installation will work in C:\Servoy).
