# Installing Application Server

**URL:** <https://forum.servoy.com/t/installing-application-server/15941>\
**Category:** Classic Servoy\
**Created:** [May 17, 2012, 8:08am UTC](https://forum.servoy.com/t/installing-application-server/15941 "2012-05-17T08:08:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![produzione](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@produzione](https://forum.servoy.com/u/produzione)\
**Post date:** [May 17, 2012, 8:08am UTC](https://forum.servoy.com/t/installing-application-server/15941/1 "2012-05-17T08:08:20Z")

</div>

I have installed Servoy 6.0.6 Application Server on my company server…  
I have problems running it…after i start it (using the servoy\_server.bat not modified) the command window is opened and after few seconds it is closed…  
In the servoy\_log.txt i have this:

2012-05-17 10:04:42,836 ERROR [main] com.servoy.j2db.util.Debug - Cannot start repository:   
com.servoy.j2db.persistence.RepositoryException: Error checking repository  
at com.servoy.j2db.server.Za.Za.Zb(Za.java:832)  
at com.servoy.j2db.server.Za.Za.(Za.java:59)  
at com.servoy.j2db.server.Za.Za.(Za.java:1692)  
at com.servoy.j2db.server.Za.Zo.Za(Zo.java:669)  
at com.servoy.j2db.server.main.ApplicationServer.main(ApplicationServer.java:538)  
Caused by: org.postgresql.util.PSQLException: Connessione rifiutata. Controllare che il nome dell’host e la porta siano corretti, e che il server (postmaster) sia in esecuzione con l’opzione -i, che abilita le connessioni attraverso la rete TCP/IP.  
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:136)  
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)  
at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125)  
at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)  
at org.postgresql.jdbc3.Jdbc3Connection.(Jdbc3Connection.java:24)  
at org.postgresql.Driver.makeConnection(Driver.java:393)  
at org.postgresql.Driver.connect(Driver.java:267)  
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)  
at com.servoy.j2db.Za.Zp.createConnection(Zp.java:4)  
at com.servoy.j2db.Za.Ze.createConnection(Ze.java:4)  
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)  
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1158)  
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)  
at com.servoy.j2db.Za.Za.getConnection(Za.java:42)  
at com.servoy.j2db.server.Za.Zo.getRawConnection(Zo.java:295)  
at com.servoy.j2db.server.Za.Zo.Zf(Zo.java:652)  
at com.servoy.j2db.server.Za.Za.Zb(Za.java:998)  
… 4 more  
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:62)  
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)  
… 20 more  
2012-05-17 10:04:42,852 ERROR [main] com.servoy.j2db.util.Debug - Do note Servoy server does not start any database!

Where is the problem ?

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:** [May 17, 2012, 8:23am UTC](https://forum.servoy.com/t/installing-application-server/15941/2 "2012-05-17T08:23:09Z")

</div>

Hi,

Like the error says (at the bottom) Servoy Server (unlike Developer) does not start the database server for you.  
So is PostgreSQL already running ? If not you need to launch it yourself before launching Servoy Server.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![produzione](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@produzione](https://forum.servoy.com/u/produzione)\
**Post date:** [May 18, 2012, 8:08am UTC](https://forum.servoy.com/t/installing-application-server/15941/3 "2012-05-18T08:08:21Z")

</div>

If i modify the servoy\_server.bat to run postgres (there is an apposite note in the batch) adding this row  
postgres\_db\bin\pg\_ctl start -D database -l postgres\_db\postgres\_log.txt

when i run the bat i have in the command window:

Server is starting  
Cannot upgrade the repository: make a backup of your repository and start server with -upgradeRepository flag

and the command window is frozen

In the log file of postgres i have:

LOG: database system was interrupted; last known up at 2012-05-18 09:53:22 CEST  
LOG: database system was not properly shut down; automatic recovery in progress  
LOG: consistent recovery state reached at 0/15F4550  
LOG: record with zero length at 0/15F4550  
LOG: redo is not required  
LOG: database system is ready to accept connections  
LOG: autovacuum launcher started  
LOG: could not receive data from client: Unknown winsock error 10061  
LOG: unexpected EOF on client connection  
LOG: statistics collector process (PID 4888) was terminated by exception 0xC000013A  
HINT: See C include file “ntstatus.h” for a description of the hexadecimal value.  
LOG: autovacuum launcher process (PID 7712) was terminated by exception 0xC000013A  
HINT: See C include file “ntstatus.h” for a description of the hexadecimal value.  
LOG: terminating any other active server processes  
LOG: received fast shutdown request  
LOG: abnormal database system shutdown

Then i launch servoy\_server.bat -upgradeRepository and after one time i had errors, it runs correctly…

Now it works fine…
