# Connection to database servers refused

**URL:** <https://forum.servoy.com/t/connection-to-database-servers-refused/16733>\
**Category:** Classic Servoy\
**Created:** [November 13, 2012, 1:23am UTC](https://forum.servoy.com/t/connection-to-database-servers-refused/16733 "2012-11-13T01:23:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobm](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@bobm](https://forum.servoy.com/u/bobm)\
**Post date:** [November 13, 2012, 1:23am UTC](https://forum.servoy.com/t/connection-to-database-servers-refused/16733/1 "2012-11-13T01:23:35Z")

</div>

Servoy version 6.1.2 - build 1421 on Windows 8

yesterday all connections were fine, today I open server Developer and the database that are in PGAdmin are not available. When I try to enable the servers I get the following error message:

Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

Some forum messages indicate there may be an issue with the anti-virus software or fire wall. Neither have changed from yesterday, but I did uninstall anti-virus software and disabled firewaall just in case. Below is the Server log. Any help is much appreciated. Thank you in advance

com.servoy.j2db.persistence.RepositoryException: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.  
at com.servoy.j2db.server.Za.Zo.Za(Zo.java:747)  
at com.servoy.j2db.server.Za.Zo.Zk(Zo.java:1044)  
at com.servoy.j2db.server.Za.Zo.Za(Zo.java:869)  
at com.servoy.j2db.server.Za.Zo.getTableNames(Zo.java:1135)  
at com.servoy.eclipse.ui.views.solutionexplorer.actions.SynchronizeTableDataAction.selectionChanged(SynchronizeTableDataAction.java:114)  
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)  
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)  
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)  
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)  
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)  
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)  
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)  
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)  
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)  
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)  
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)  
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)  
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)  
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)  
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)  
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)  
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)  
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)  
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)  
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)  
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)  
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)  
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)  
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)  
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)  
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)  
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)  
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
at java.lang.reflect.Method.invoke(Unknown Source)  
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)  
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)  
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)  
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

---

<div class="post-metadata">

**Author:** ![Thomas\_Parry](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@Thomas\_Parry](https://forum.servoy.com/u/Thomas_Parry)\
**Post date:** [November 13, 2012, 1:56pm UTC](https://forum.servoy.com/t/connection-to-database-servers-refused/16733/2 "2012-11-13T13:56:36Z")

</div>

WAG: check that the PG service is running before starting developer

---

<div class="post-metadata">

**Author:** ![bobm](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@bobm](https://forum.servoy.com/u/bobm)\
**Post date:** [November 14, 2012, 4:13pm UTC](https://forum.servoy.com/t/connection-to-database-servers-refused/16733/3 "2012-11-14T16:13:39Z")

</div>

Thanks Tom - That was it - I needed to set the postgres service to run manually instead of automatically.
